You would have to regenerate it would be the easiest way to get a new type.
That method is just generating the mesh data for you, after it’s created you can treat it like any other mesh object.
There are documents on creating custom geometry you can use that as a model if you want to edit it after it’s created with the method you are using. I’m on my phone or I’d pull up the link for you.
I am thinking about poly.dispose() and making it again… It does not seem to be the optimum way to do it, but maybe the only way. This is what you mean by regenerating it?
I have seen the custom polyhedron stuff. Thanks for the idea on updating its points, it might be faster than disposing and crating a new one…
depends on user settings, but a reasonable context involves 500 calls/second. I believe it would benefit from being updated instead of disposed and created. Am I wrong?