mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-03-06 23:05:37 +05:00
TC5.1.2: fatal error on 2D Mesh preview
This commit is contained in:
parent
1503787ed9
commit
bd84f5e2cd
@ -1510,10 +1510,10 @@ SMESH::MeshPreviewStruct* SMESH_Gen_i::Precompute( SMESH::SMESH_Mesh_ptr theMesh
|
||||
if ( aNbNode > 4 )
|
||||
aNbNode /= 2; // do not take into account additional middle nodes
|
||||
|
||||
SMDS_MeshNode* node1 = (SMDS_MeshNode*)face->GetNode( 1 );
|
||||
for ( int nIndx = 1; nIndx <= aNbNode; nIndx++ )
|
||||
SMDS_MeshNode* node1 = (SMDS_MeshNode*)face->GetNode( 0 );
|
||||
for ( int nIndx = 0; nIndx < aNbNode; nIndx++ )
|
||||
{
|
||||
SMDS_MeshNode* node2 = (SMDS_MeshNode*)face->GetNode( nIndx < aNbNode ? nIndx+1 : 1 );
|
||||
SMDS_MeshNode* node2 = (SMDS_MeshNode*)face->GetNode( nIndx+1 < aNbNode ? nIndx+1 : 0 );
|
||||
if ( setOfEdge.insert( SMESH_TLink ( node1, node2 ) ).second )
|
||||
{
|
||||
listOfElemType.push_back( SMDSAbs_Edge );
|
||||
|
Loading…
Reference in New Issue
Block a user