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:
1f31a70
)
Fix for the issue 21127: EDF 1290 SMESH: A user script fails in versions more than 512
author
rnv
<rnv@opencascade.com>
Tue, 18 Jan 2011 08:46:10 +0000
(08:46 +0000)
committer
rnv
<rnv@opencascade.com>
Tue, 18 Jan 2011 08:46:10 +0000
(08:46 +0000)
src/SMDS/SMDS_Mesh.cxx
patch
|
blob
|
history
diff --git
a/src/SMDS/SMDS_Mesh.cxx
b/src/SMDS/SMDS_Mesh.cxx
index ab63d6280e82c5d930b83f2c01aee45e4d61988a..5ef4e2763086cb710cc865dff42c7f893fa92536 100644
(file)
--- a/
src/SMDS/SMDS_Mesh.cxx
+++ b/
src/SMDS/SMDS_Mesh.cxx
@@
-222,6
+222,11
@@
SMDS_MeshNode * SMDS_Mesh::AddNodeWithID(double x, double y, double z, int ID)
myNodeIDFactory->adjustMaxId(ID);
SMDS_MeshNode * node = myNodePool->getNew();
node->init(ID, myMeshId, 0, x, y, z);
+
+ //rnv: Set SMDS_SpacePosition for node if need
+ if( node->GetPosition()->GetTypeOfPosition() != SMDS_TOP_3DSPACE)
+ node->SetPosition(SMDS_SpacePosition::originSpacePosition());
+
if (ID >= myNodes.size())
{
myNodes.resize(ID+SMDS_Mesh::chunkSize, 0);