remove useless dump of vertices of failed shape

This commit is contained in:
eap 2011-01-25 14:45:01 +00:00
parent f36c4b1044
commit bc4ff5ff6c

View File

@ -1717,20 +1717,8 @@ bool SMESH_subMesh::CheckComputeError(SMESH_Algo* theAlgo, const TopoDS_Shape& t
if ( _computeError->myComment.size() > 0 ) if ( _computeError->myComment.size() > 0 )
text << " \"" << _computeError->myComment << "\""; text << " \"" << _computeError->myComment << "\"";
#ifdef _DEBUG_
MESSAGE_BEGIN ( text );
// Show vertices location of a failed shape
TopTools_IndexedMapOfShape vMap;
TopExp::MapShapes( _subShape, TopAbs_VERTEX, vMap );
MESSAGE_ADD ( "Subshape vertices " << ( vMap.Extent()>10 ? "(first 10):" : ":") );
for ( int iv = 1; iv <= vMap.Extent() && iv < 11; ++iv ) {
gp_Pnt P( BRep_Tool::Pnt( TopoDS::Vertex( vMap( iv ) )));
MESSAGE_ADD ( "#" << _father->GetMeshDS()->ShapeToIndex( vMap( iv )) << " "
<< P.X() << " " << P.Y() << " " << P.Z() << " " );
}
#else
INFOS( text ); INFOS( text );
#endif
_computeState = FAILED_TO_COMPUTE; _computeState = FAILED_TO_COMPUTE;
noErrors = false; noErrors = false;
} }