mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-16 03:40:32 +05:00
0020982: EDF 1547 SMESH: Creation of non-conformal quadratic pyramids
Fix pb of intersecting triangles * re-check all adjacent pyramids if at least one merge occures * increase threshold of merge of adjacent pyramids up to 15 degrees to avoid bad (flat) tetrahedrons created by NETEGN
This commit is contained in:
parent
263ccfa485
commit
1057b2c9fc
@ -228,7 +228,7 @@ namespace
|
|||||||
|
|
||||||
// Check angle between normals
|
// Check angle between normals
|
||||||
double angle = nI.Angle( nJ );
|
double angle = nI.Angle( nJ );
|
||||||
bool tooClose = ( angle < 10 * PI180 );
|
bool tooClose = ( angle < 15 * PI180 );
|
||||||
|
|
||||||
// Check if pyramids collide
|
// Check if pyramids collide
|
||||||
bool isOutI, isOutJ;
|
bool isOutI, isOutJ;
|
||||||
@ -315,10 +315,16 @@ namespace
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ( !mergedPyrams.empty() )
|
if ( !mergedPyrams.empty() )
|
||||||
for (TIDSortedElemSet::iterator prm = mergedPyrams.begin(); prm != mergedPyrams.end(); ++prm)
|
{
|
||||||
|
TIDSortedElemSet::iterator prm;
|
||||||
|
// for (prm = mergedPyrams.begin(); prm != mergedPyrams.end(); ++prm)
|
||||||
|
// MergeAdjacent( *prm, mesh, nodesToMove );
|
||||||
|
|
||||||
|
for (prm = adjacentPyrams.begin(); prm != adjacentPyrams.end(); ++prm)
|
||||||
MergeAdjacent( *prm, mesh, nodesToMove );
|
MergeAdjacent( *prm, mesh, nodesToMove );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//================================================================================
|
//================================================================================
|
||||||
/*!
|
/*!
|
||||||
|
Loading…
Reference in New Issue
Block a user