Here for your use, is my code that creates a mesh from a CSG. Be warned it
is only an approximate mesh.
The attached file is set up to generate a mesh of a Cylinder-Sphere CSG.
When you run it, it generates a "Result.pov" file on your disk. If you run
the "result.pov" file it will show the resulting Mesh.
There are a few parameters you can alter, and I hope I've detailed them
enough for you to understand.
Post a reply to this message
Attachments:
Download 'ObjectToMesh.pov.txt' (7 KB)
|