mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-18 08:50:33 +05:00
Fix for the issue 21127: EDF 1290 SMESH: A user script fails in versions more than 512
This commit is contained in:
parent
1f31a70219
commit
0c1947cfe5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user