mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-28 02:10:35 +05:00
Fix ID shift for testing export
This commit is contained in:
parent
bfa9ca6ac6
commit
293adaddb5
@ -172,12 +172,12 @@ smIdType SMDS_ElementFactory::GetMinID()
|
||||
|
||||
SMDS_MeshElement* SMDS_ElementFactory::NewElement( const smIdType ID )
|
||||
{
|
||||
smIdType id = ID - idShift;
|
||||
smIdType id = ID > idShift ? ID - idShift : ID;
|
||||
smIdType iChunk = ( id - 1 ) / theChunkSize;
|
||||
smIdType index = ( id - 1 ) % theChunkSize;
|
||||
while ((smIdType) myChunks.size() <= iChunk )
|
||||
{
|
||||
smIdType id0 = myChunks.size() * theChunkSize + 1;
|
||||
smIdType id0 = myChunks.size() * theChunkSize + 1 + idShift;
|
||||
myChunks.push_back( new SMDS_ElementChunk( this, id0 ));
|
||||
}
|
||||
SMDS_MeshElement* e = myChunks[iChunk].Element( FromIdType<int>(index) );
|
||||
|
Loading…
Reference in New Issue
Block a user