Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
736b667
)
0020801: EDF 1343 SMESH : Segmentation violation during compound od Mesh with 0D...
author
vsr
<vsr@opencascade.com>
Mon, 22 Mar 2010 14:30:36 +0000
(14:30 +0000)
committer
vsr
<vsr@opencascade.com>
Mon, 22 Mar 2010 14:30:36 +0000
(14:30 +0000)
src/SMESH/SMESH_MeshEditor.cxx
patch
|
blob
|
history
diff --git
a/src/SMESH/SMESH_MeshEditor.cxx
b/src/SMESH/SMESH_MeshEditor.cxx
index 3f496e87fd06bf75dab5081b6b5c711c83d0df5b..5b07e4dad0005c88d111f9b59dce473697a0526f 100644
(file)
--- a/
src/SMESH/SMESH_MeshEditor.cxx
+++ b/
src/SMESH/SMESH_MeshEditor.cxx
@@
-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);