From: eap Date: Wed, 3 Dec 2014 14:28:30 +0000 (+0300) Subject: Bug: unable to create LocalLength hyp for a sub-mesh on a shape with a degenerated... X-Git-Tag: V7_5_1rc1~1^2~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3cc259fbef721661f3f3f0e5731d61e2689212fe;p=modules%2Fsmesh.git Bug: unable to create LocalLength hyp for a sub-mesh on a shape with a degenerated edge --- diff --git a/src/StdMeshers/StdMeshers_LocalLength.cxx b/src/StdMeshers/StdMeshers_LocalLength.cxx index 6546c4492..a5712bdb0 100644 --- a/src/StdMeshers/StdMeshers_LocalLength.cxx +++ b/src/StdMeshers/StdMeshers_LocalLength.cxx @@ -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;