From: eap Date: Thu, 29 Apr 2010 07:08:00 +0000 (+0000) Subject: 0020852: [CEA] V5_1_4_BR - script fails X-Git-Tag: V5_1_4rc1~17 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c1f92a41043824ffe52370787adac5f252afb7c0;p=modules%2Fsmesh.git 0020852: [CEA] V5_1_4_BR - script fails * correctly initialize fields used for non-uniformally parametrized edges in the case of degenerated edges --- diff --git a/src/StdMeshers/StdMeshers_FaceSide.cxx b/src/StdMeshers/StdMeshers_FaceSide.cxx index 32f798dee..85acfda3f 100644 --- a/src/StdMeshers/StdMeshers_FaceSide.cxx +++ b/src/StdMeshers/StdMeshers_FaceSide.cxx @@ -97,7 +97,7 @@ StdMeshers_FaceSide::StdMeshers_FaceSide(const TopoDS_Face& theFace, myLast.resize( nbEdges ); myNormPar.resize( nbEdges ); myEdgeLength.resize( nbEdges ); - myIsUniform.resize( nbEdges ); + myIsUniform.resize( nbEdges, true ); myLength = 0; myNbPonits = myNbSegments = 0; myMesh = theMesh; @@ -146,7 +146,7 @@ StdMeshers_FaceSide::StdMeshers_FaceSide(const TopoDS_Face& theFace, myMissingVertexNodes = true; // check if edge has non-uniform parametrization (issue 0020705) - if ( !myC2d[i].IsNull() ) + if ( !myC2d[i].IsNull() && myEdgeLength[i] > DBL_MIN) { Geom2dAdaptor_Curve A2dC( myC2d[i] ); double p2 = myFirst[i]+(myLast[i]-myFirst[i])/2., p4 = myFirst[i]+(myLast[i]-myFirst[i])/4.;