-      if ( helper.IsSubShape( *e, F ) && BRep_Tool::Curve( *e, loc,f,l))
+      if ( helper.IsSubShape( *e, F ) && !BRep_Tool::Curve( *e, loc,f,l).IsNull() )
This commit is contained in:
eap 2011-10-13 13:08:51 +00:00
parent f95be2abe0
commit 4df44f5a1e

View File

@ -694,7 +694,7 @@ namespace
while ( eIt->more())
{
const TopoDS_Edge* e = static_cast<const TopoDS_Edge*>( eIt->next() );
if ( helper.IsSubShape( *e, F ) && BRep_Tool::Curve( *e, loc,f,l))
if ( helper.IsSubShape( *e, F ) && !BRep_Tool::Curve( *e, loc,f,l).IsNull() )
edges.push_back( *e );
}
gp_XYZ dir(0,0,0);