mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-06-26 23:07:01 +08:00
0032261: Mesh - some trivial improvements for mesher
BRepMesh_ModelHealer::amplifyEdges use a single instance of EdgeAmplifier
This commit is contained in:
committed by
bugmaster
parent
ccb3502a56
commit
3326f9238c
@@ -175,11 +175,13 @@ void BRepMesh_ModelHealer::amplifyEdges()
|
||||
Standard_Integer aAmpIt = 0;
|
||||
const Standard_Real aIterNb = 5;
|
||||
IMeshData::MapOfIEdgePtr aEdgesToUpdate(1, aTmpAlloc);
|
||||
EdgeAmplifier anEdgeAmplifier (myParameters);
|
||||
|
||||
while (aAmpIt++ < aIterNb && popEdgesToUpdate(aEdgesToUpdate))
|
||||
{
|
||||
// Try to update discretization by decreasing deflection of problematic edges.
|
||||
OSD_Parallel::ForEach(aEdgesToUpdate.cbegin(), aEdgesToUpdate.cend(),
|
||||
EdgeAmplifier(myParameters),
|
||||
anEdgeAmplifier,
|
||||
!(myParameters.InParallel && aEdgesToUpdate.Size() > 1),
|
||||
aEdgesToUpdate.Size());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user