From 3cc259fbef721661f3f3f0e5731d61e2689212fe Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 3 Dec 2014 17:28:30 +0300 Subject: [PATCH] Bug: unable to create LocalLength hyp for a sub-mesh on a shape with a degenerated edge --- src/StdMeshers/StdMeshers_LocalLength.cxx | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.39.2