mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-28 02:10:35 +05:00
Regression of 21397: a quadrangle face mesh can't be projected to a cylinder
This commit is contained in:
parent
333b8ff2fb
commit
f34d4ca343
@ -2574,11 +2574,13 @@ bool SMESH_MesherHelper::IsDistorted2D( SMESH_subMesh* faceSM )
|
|||||||
}
|
}
|
||||||
// prepare to getting UVs
|
// prepare to getting UVs
|
||||||
const SMDS_MeshNode* inFaceNode = 0;
|
const SMDS_MeshNode* inFaceNode = 0;
|
||||||
if ( helper.HasSeam() )
|
if ( helper.HasSeam() ) {
|
||||||
for ( size_t i = 0; ( i < nodes.size() && !inFaceNode ); ++i )
|
for ( size_t i = 0; ( i < nodes.size() && !inFaceNode ); ++i )
|
||||||
if ( !helper.IsSeamShape( nodes[ i ]->getshapeId() ))
|
if ( !helper.IsSeamShape( nodes[ i ]->getshapeId() ))
|
||||||
inFaceNode = nodes[ i ];
|
inFaceNode = nodes[ i ];
|
||||||
|
if ( !inFaceNode )
|
||||||
|
continue;
|
||||||
|
}
|
||||||
// get UVs
|
// get UVs
|
||||||
uv.resize( nodes.size() );
|
uv.resize( nodes.size() );
|
||||||
for ( size_t i = 0; i < nodes.size(); ++i )
|
for ( size_t i = 0; i < nodes.size(); ++i )
|
||||||
|
Loading…
Reference in New Issue
Block a user