Regression of 21397: a quadrangle face mesh can't be projected to a cylinder

This commit is contained in:
eap 2014-10-17 20:26:57 +04:00
parent 333b8ff2fb
commit f34d4ca343
2 changed files with 5 additions and 3 deletions

View File

@ -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 )