Переглянути джерело
Update babylon.meshSimplification.js
Hey,
I noticed a small bug in the porting of this code from C++. It's mentioned and fixed in this blog post - http://voxels.blogspot.co.il/2014/05/quadric-mesh-simplification-with-source.html?_sm_au_=iVVSRHnRQ0SW0JFT.
In case a mesh is not two-manifold, it's possible for both vertices of an edge to be "borders", and this is an edge that should not be collapsed.
Testing for !== instead of || is ignoring this case and so naked edges are collapsed when they shouldn't.