From: eap Date: Tue, 18 Apr 2006 12:54:08 +0000 (+0000) Subject: PAL11958. Prevent SIGSEGV on edgenerated edges when mesh is quadratic X-Git-Tag: T3_2_0b1_pre1~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=396e9a4c5c538dd6f8efa2b22f8fb140ba3a1038;p=modules%2Fsmesh.git PAL11958. Prevent SIGSEGV on edgenerated edges when mesh is quadratic --- diff --git a/src/StdMeshers/StdMeshers_Regular_1D.cxx b/src/StdMeshers/StdMeshers_Regular_1D.cxx index 28ddd2bdd..78519c861 100644 --- a/src/StdMeshers/StdMeshers_Regular_1D.cxx +++ b/src/StdMeshers/StdMeshers_Regular_1D.cxx @@ -648,8 +648,7 @@ bool StdMeshers_Regular_1D::Compute(SMESH_Mesh & aMesh, const TopoDS_Shape & aSh if(_quadraticMesh) { // create medium node double prm = param - du/2.; - gp_Pnt PM = Curve->Value(prm); - SMDS_MeshNode * NM = meshDS->AddNode(PM.X(), PM.Y(), PM.Z()); + SMDS_MeshNode * NM = meshDS->AddNode(P.X(), P.Y(), P.Z()); meshDS->SetNodeOnEdge(NM, shapeID, prm); SMDS_MeshEdge * edge = meshDS->AddEdge(idPrev, node, NM); meshDS->SetMeshElementOnShape(edge, shapeID); @@ -664,8 +663,7 @@ bool StdMeshers_Regular_1D::Compute(SMESH_Mesh & aMesh, const TopoDS_Shape & aSh if(_quadraticMesh) { // create medium node double prm = l - du/2.; - gp_Pnt PM = Curve->Value(prm); - SMDS_MeshNode * NM = meshDS->AddNode(PM.X(), PM.Y(), PM.Z()); + SMDS_MeshNode * NM = meshDS->AddNode(P.X(), P.Y(), P.Z()); meshDS->SetNodeOnEdge(NM, shapeID, prm); SMDS_MeshEdge * edge = meshDS->AddEdge(idPrev, idLast, NM); meshDS->SetMeshElementOnShape(edge, shapeID);