Ignore degenerated EDGEs when counting computed sub-meshes
This commit is contained in:
eap 2013-08-23 16:23:57 +00:00
parent a1c755a149
commit b14fd3f9bd

View File

@ -227,6 +227,8 @@ namespace // INTERNAL STUFF
switch ( sm->GetSubShape().ShapeType() ) switch ( sm->GetSubShape().ShapeType() )
{ {
case TopAbs_EDGE: case TopAbs_EDGE:
if ( SMESH_Algo::isDegenerated( TopoDS::Edge( sm->GetSubShape() )))
continue;
case TopAbs_FACE: case TopAbs_FACE:
_subM.insert( sm ); _subM.insert( sm );
if ( !sm->IsEmpty() ) if ( !sm->IsEmpty() )