mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-31 00:30:33 +05:00
0020801: EDF 1343 SMESH : Segmentation violation during compound od Mesh with 0D elements
This commit is contained in:
parent
736b66759f
commit
db9ba2e978
@ -124,6 +124,11 @@ SMESH_MeshEditor::AddElement(const vector<const SMDS_MeshNode*> & node,
|
||||
int nbnode = node.size();
|
||||
SMESHDS_Mesh* mesh = GetMeshDS();
|
||||
switch ( type ) {
|
||||
case SMDSAbs_0DElement:
|
||||
if ( nbnode == 1 )
|
||||
if ( ID ) e = mesh->Add0DElementWithID(node[0], ID);
|
||||
else e = mesh->Add0DElement (node[0] );
|
||||
break;
|
||||
case SMDSAbs_Edge:
|
||||
if ( nbnode == 2 )
|
||||
if ( ID ) e = mesh->AddEdgeWithID(node[0], node[1], ID);
|
||||
|
Loading…
Reference in New Issue
Block a user