mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-12 17:50:35 +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 <BRep_Builder.hxx>
|
||||||
#include <BRepAdaptor_Curve.hxx>
|
#include <BRepAdaptor_Curve.hxx>
|
||||||
|
#include <BRepBuilderAPI_Copy.hxx>
|
||||||
#include <BRepTools_WireExplorer.hxx>
|
#include <BRepTools_WireExplorer.hxx>
|
||||||
|
|
||||||
#include <TopExp.hxx>
|
#include <TopExp.hxx>
|
||||||
@ -645,9 +646,15 @@ void GEOMImpl_HealingDriver::LimitTolerance (GEOMImpl_IHealing* theHI,
|
|||||||
// 1. Make a copy to prevent the original shape changes.
|
// 1. Make a copy to prevent the original shape changes.
|
||||||
TopoDS_Shape aShapeCopy;
|
TopoDS_Shape aShapeCopy;
|
||||||
{
|
{
|
||||||
|
BRepBuilderAPI_Copy aMC (theOriginalShape);
|
||||||
|
if (aMC.IsDone()) {
|
||||||
|
aShapeCopy = aMC.Shape();
|
||||||
|
}
|
||||||
|
else {
|
||||||
TColStd_IndexedDataMapOfTransientTransient aMapTShapes;
|
TColStd_IndexedDataMapOfTransientTransient aMapTShapes;
|
||||||
TNaming_CopyShape::CopyTool(theOriginalShape, aMapTShapes, aShapeCopy);
|
TNaming_CopyShape::CopyTool(theOriginalShape, aMapTShapes, aShapeCopy);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// 2. Limit tolerance.
|
// 2. Limit tolerance.
|
||||||
if (!GEOMUtils::FixShapeTolerance(aShapeCopy, aType, aTol))
|
if (!GEOMUtils::FixShapeTolerance(aShapeCopy, aType, aTol))
|
||||||
|
Loading…
Reference in New Issue
Block a user