mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-28 18:30:35 +05:00
0022183: EDF SMESH: Error with ConvertToQuadratic
In getMediumNodeOnComposedWire(), prevent an exception at setting a medium node, already added to a sub-mesh in AddNode() due to mySetElemOnShape==true, to another EDGE.
This commit is contained in:
parent
b017154701
commit
7daf8d6589
@ -1378,8 +1378,12 @@ const SMDS_MeshNode* SMESH_MesherHelper::getMediumNodeOnComposedWire(const SMDS_
|
||||
}
|
||||
|
||||
//if ( mySetElemOnShape ) node is not elem!
|
||||
GetMeshDS()->SetNodeOnEdge(n12, edges[iOkEdge], u);
|
||||
|
||||
{
|
||||
int edgeID = GetMeshDS()->ShapeToIndex( edges[iOkEdge] );
|
||||
if ( edgeID != n12->getshapeId() )
|
||||
GetMeshDS()->UnSetNodeOnShape( n12 );
|
||||
GetMeshDS()->SetNodeOnEdge(n12, edgeID, u);
|
||||
}
|
||||
myTLinkNodeMap.insert( make_pair( SMESH_TLink(n1,n2), n12 ));
|
||||
|
||||
return n12;
|
||||
|
Loading…
Reference in New Issue
Block a user