Threecsg Flat Sides When Expecting Volumetric Result
The issue: Subtracting a cube from a sphere provides a result where the z axis retains volume, but the y and x axis produce flat disks, as show in the image. I am not sure why the
Solution 1:
@manthrax posted his code here as an answer but then deleted it. It is available here: https://github.com/manthrax/THREE-CSGMesh
Forked at https://github.com/radio412/THREE-CSGMesh/ with export token removed.
Meshes need updateMatrix() called before the operation if any transformations are applied.
This code works well. I do not know why the legacy ThreeCSG code was not working however, and it would be good to have some insight.
Post a Comment for "Threecsg Flat Sides When Expecting Volumetric Result"