mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-13 18:20:34 +05:00
PAL11958. Prevent SIGSEGV on edgenerated edges when mesh is quadratic
This commit is contained in:
parent
afca720dc4
commit
396e9a4c5c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user