evanw / csg.js

Constructive solid geometry on meshes using BSP trees in JavaScript
http://evanw.github.com/csg.js/
MIT License
1.79k stars 264 forks source link

Don't recompute plane when splitting and cloning #14

Open caedmon opened 9 years ago

caedmon commented 9 years ago

If very small shards are split from a polygon the plane computed for them can be inaccurate. Reusing the plane from the parent polygon also saves work.