mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-26 17:30: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
|
||||
const SMDS_MeshNode* inFaceNode = 0;
|
||||
if ( helper.HasSeam() )
|
||||
if ( helper.HasSeam() ) {
|
||||
for ( size_t i = 0; ( i < nodes.size() && !inFaceNode ); ++i )
|
||||
if ( !helper.IsSeamShape( nodes[ i ]->getshapeId() ))
|
||||
inFaceNode = nodes[ i ];
|
||||
|
||||
if ( !inFaceNode )
|
||||
continue;
|
||||
}
|
||||
// get UVs
|
||||
uv.resize( nodes.size() );
|
||||
for ( size_t i = 0; i < nodes.size(); ++i )
|
||||
|
@ -1047,7 +1047,7 @@ bool StdMeshers_Projection_2D::Compute(SMESH_Mesh& theMesh, const TopoDS_Shape&
|
||||
|
||||
bool done = false;
|
||||
|
||||
if ( !done )
|
||||
if ( !done )
|
||||
{
|
||||
// try to project from the same face with different location
|
||||
done = projectPartner( tgtFace, srcFace, tgtWires, srcWires,
|
||||
|
Loading…
Reference in New Issue
Block a user