mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-16 10:08:36 +03:00
0032261: Mesh - some trivial improvements for mesher
BRepMesh_ModelHealer::amplifyEdges use a single instance of EdgeAmplifier
This commit is contained in:
parent
ccb3502a56
commit
3326f9238c
@ -175,11 +175,13 @@ void BRepMesh_ModelHealer::amplifyEdges()
|
|||||||
Standard_Integer aAmpIt = 0;
|
Standard_Integer aAmpIt = 0;
|
||||||
const Standard_Real aIterNb = 5;
|
const Standard_Real aIterNb = 5;
|
||||||
IMeshData::MapOfIEdgePtr aEdgesToUpdate(1, aTmpAlloc);
|
IMeshData::MapOfIEdgePtr aEdgesToUpdate(1, aTmpAlloc);
|
||||||
|
EdgeAmplifier anEdgeAmplifier (myParameters);
|
||||||
|
|
||||||
while (aAmpIt++ < aIterNb && popEdgesToUpdate(aEdgesToUpdate))
|
while (aAmpIt++ < aIterNb && popEdgesToUpdate(aEdgesToUpdate))
|
||||||
{
|
{
|
||||||
// Try to update discretization by decreasing deflection of problematic edges.
|
// Try to update discretization by decreasing deflection of problematic edges.
|
||||||
OSD_Parallel::ForEach(aEdgesToUpdate.cbegin(), aEdgesToUpdate.cend(),
|
OSD_Parallel::ForEach(aEdgesToUpdate.cbegin(), aEdgesToUpdate.cend(),
|
||||||
EdgeAmplifier(myParameters),
|
anEdgeAmplifier,
|
||||||
!(myParameters.InParallel && aEdgesToUpdate.Size() > 1),
|
!(myParameters.InParallel && aEdgesToUpdate.Size() > 1),
|
||||||
aEdgesToUpdate.Size());
|
aEdgesToUpdate.Size());
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user