gkjohnson / three-bvh-csg

A flexible, memory compact, fast and dynamic CSG implementation on top of three-mesh-bvh
MIT License
602 stars 46 forks source link

brush geometry not expected after save/load #63

Closed winman closed 2 years ago

winman commented 2 years ago

image after save/load the brush geometry as json format, it appears some weird black lines. i wonder how to get rid of this?

thanks for any help!

winman commented 2 years ago

maybe this is the cause? when i evaluate/operate these brushes, errmsg occurs a lot like this:

ExtendedTriangle.js:222 ExtendedTriangle.intersectsTriangle: Triangles are coplanar which does not support an output edge. Setting edge to 0, 0, 0.

gkjohnson commented 2 years ago

This looks like an issue with the threejs json format which is out of my control. I'd recommend looking into the serialized version of the geometry to make sure it all looks right, first. A live example of the issue would help.

gkjohnson commented 2 years ago

Closing this for now - feel free to reopen once you've determined whether this is a three.js or csg issue.