Commit ddd9a585 authored by Jan Möbius's avatar Jan Möbius

Check only when size is relevant



git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@14479 383ad7c9-94d9-4d36-a494-682f7c89f535
parent f293d09f
......@@ -197,12 +197,8 @@ void IsotropicRemesher< MeshT >::collapseShortEdges( MeshT& _mesh, const double
const double edgeLength = vec.sqrnorm();
// don't try to collapse edges that have length 0
if ( edgeLength < DBL_EPSILON )
continue;
//edge too short?
if ( edgeLength < _minEdgeLengthSqr ){
// edge too short but don't try to collapse edges that have length 0
if ( (edgeLength < _minEdgeLengthSqr) && (edgeLength > DBL_EPSILON) ){
//check if the collapse is ok
const typename MeshT::Point & B = _mesh.point(v1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment