mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-26 17:30:35 +05:00
Fix pyramids orientation in GMF import/export
This commit is contained in:
parent
164f564028
commit
5bca5c56b4
@ -299,7 +299,7 @@ Driver_Mesh::Status DriverGMF_Read::Perform()
|
||||
for ( int i = 1; i <= nbPyr; ++i )
|
||||
{
|
||||
GmfGetLin(meshID, GmfPyramids, &iN[0], &iN[1], &iN[2], &iN[3], &iN[4], &ref);
|
||||
if ( !myMesh->AddVolumeWithID( iN[0], iN[2], iN[1], iN[3], iN[4], pyrIDShift + i ))
|
||||
if ( !myMesh->AddVolumeWithID( iN[3], iN[2], iN[1], iN[0], iN[4], pyrIDShift + i ))
|
||||
status = storeBadNodeIds( "GmfPyramids",i, 5, iN[0], iN[1],iN[2], iN[3], iN[4] );
|
||||
}
|
||||
}
|
||||
|
@ -204,10 +204,10 @@ Driver_Mesh::Status DriverGMF_Write::Perform()
|
||||
|
||||
// pyramids
|
||||
BEGIN_ELEM_WRITE( SMDSEntity_Pyramid, GmfPyramids, pyra )
|
||||
node2IdMap[ pyra->GetNode( 0 )],
|
||||
node2IdMap[ pyra->GetNode( 3 )],
|
||||
node2IdMap[ pyra->GetNode( 2 )],
|
||||
node2IdMap[ pyra->GetNode( 1 )],
|
||||
node2IdMap[ pyra->GetNode( 3 )],
|
||||
node2IdMap[ pyra->GetNode( 0 )],
|
||||
node2IdMap[ pyra->GetNode( 4 )],
|
||||
END_ELEM_WRITE( pyra );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user