Bug: unable to create LocalLength hyp for a sub-mesh on a shape with a degenerated edge

This commit is contained in:
eap 2014-12-03 17:28:30 +03:00
parent cc9d179c9f
commit 3cc259fbef

View File

@ -216,6 +216,8 @@ bool StdMeshers_LocalLength::SetParametersByMesh(const SMESH_Mesh* theMesh,
{
const TopoDS_Edge& edge = TopoDS::Edge( edgeMap( iE ));
Handle(Geom_Curve) C = BRep_Tool::Curve( edge, L, UMin, UMax );
if ( C.IsNull() )
continue;
GeomAdaptor_Curve AdaptCurve(C, UMin, UMax);
vector< double > params;