hello donāt worryćPG is very simple. Babylon.js Playground (babylonjs.com),open this website and click the āsaveā button,you will get a new website address.When you modify the code, save it again.
Do you want to change the sphere segments? I canāt understand what 's the subdivisions of the sphere. SomeTimes mesh canāt be changed,you can dispose the old mesh,and create a new mesh in the same position.
From what I know the options like diameter and segments of Mesh are discarded after creating. Instead you could use getBoundingInfo() on your mesh, with the properties:
Hi and Welcome to our Community,
First, you donāt have to apologize for asking questions. Asking is never stupid and we all had to start with something new (and continue to learn new every day).
Your approach would work fine. Just donāt forget to dispose of the old primitive when the user creates the new one.
As for the trick of retrieving the values from the mesh creation kindly shared by @Happy0Ending it will work for any primitive mesh created in BJS. It will not work on custom or imported meshes. For this, you should use the technique shared by @Takemura .
Again, welcome to the community and I hope you are enjoying your discovery of BJS.
Meanwhile, have a great day