Henry00IS / ShapeEditor

2D Shape Editor for Unity Editor to create complex 3D meshes out of 2D shapes with RealtimeCSG support.
MIT License
99 stars 9 forks source link

Create CSG brushes near zero for added precision #15

Open Henry00IS opened 2 years ago

Henry00IS commented 2 years ago

Brushes are built in 3D at their destination position (local space of the extrude target). The further you move away from zero the worse the floating point accuracy gets. This will eventually cause small faces to appear between brushes:

Faces in a subtractive hole made by multiple brushes

Building brushes near zero and then moving them to their destination could improve the stability.