From: rnv Date: Tue, 18 Jan 2011 08:46:10 +0000 (+0000) Subject: Fix for the issue 21127: EDF 1290 SMESH: A user script fails in versions more than 512 X-Git-Tag: StartingPortingMED3~166 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0c1947cfe57238233f2579cd2a24326090af7c06;p=modules%2Fsmesh.git Fix for the issue 21127: EDF 1290 SMESH: A user script fails in versions more than 512 --- diff --git a/src/SMDS/SMDS_Mesh.cxx b/src/SMDS/SMDS_Mesh.cxx index ab63d6280..5ef4e2763 100644 --- 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);