mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-11 16:19:17 +05:00
[bos #29103] EDF 24802 - limitation of tolerance
This commit is contained in:
parent
79d9367898
commit
c6dad39806
@ -44,6 +44,7 @@
|
||||
|
||||
#include <BRep_Builder.hxx>
|
||||
#include <BRepAdaptor_Curve.hxx>
|
||||
#include <BRepBuilderAPI_Copy.hxx>
|
||||
#include <BRepTools_WireExplorer.hxx>
|
||||
|
||||
#include <TopExp.hxx>
|
||||
@ -645,8 +646,14 @@ void GEOMImpl_HealingDriver::LimitTolerance (GEOMImpl_IHealing* theHI,
|
||||
// 1. Make a copy to prevent the original shape changes.
|
||||
TopoDS_Shape aShapeCopy;
|
||||
{
|
||||
TColStd_IndexedDataMapOfTransientTransient aMapTShapes;
|
||||
TNaming_CopyShape::CopyTool(theOriginalShape, aMapTShapes, aShapeCopy);
|
||||
BRepBuilderAPI_Copy aMC (theOriginalShape);
|
||||
if (aMC.IsDone()) {
|
||||
aShapeCopy = aMC.Shape();
|
||||
}
|
||||
else {
|
||||
TColStd_IndexedDataMapOfTransientTransient aMapTShapes;
|
||||
TNaming_CopyShape::CopyTool(theOriginalShape, aMapTShapes, aShapeCopy);
|
||||
}
|
||||
}
|
||||
|
||||
// 2. Limit tolerance.
|
||||
|
Loading…
Reference in New Issue
Block a user