1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-29 14:00:49 +03:00

Modeling - Removing surface after transformation #374

Old surface is not removed after translation or rotation with geometry copying
Removed unnecessary condition that was added by an earlier fix.
Added a test case.
Original issue: 0033591
This commit is contained in:
astromko
2024-04-01 13:34:16 +00:00
committed by dpasukhi
parent ed6005b75a
commit 4c5f9c77cb
3 changed files with 19 additions and 8 deletions

View File

@@ -280,10 +280,6 @@ Standard_Boolean BRepTools_TrsfModification::NewCurve(const TopoDS_Edge& E,
{
Standard_Real f, l;
C = BRep_Tool::Curve(E, L, f, l);
if (C.IsNull())
{
return Standard_False;
}
Tol = BRep_Tool::Tolerance(E);
Tol *= Abs(myTrsf.ScaleFactor());

View File

@@ -89,13 +89,10 @@ public:
Handle(Poly_PolygonOnTriangulation)& P)
Standard_OVERRIDE;
//! Returns true if the edge E has been modified.
//! If the edge has been modified:
//! Always returns true indicating that the edge E is always modified.
//! - C is the new geometric support of the edge,
//! - L is the new location, and
//! - Tol is the new tolerance.
//! If the edge has not been modified, this function
//! returns false, and the values of C, L and Tol are not significant.
Standard_EXPORT Standard_Boolean NewCurve(const TopoDS_Edge& E,
Handle(Geom_Curve)& C,
TopLoc_Location& L,