1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-04 13:13:25 +03:00

0028709: Extend type 'BRepTools_ReShape' to support 'BRepTools_History' history

Type 'BRepTools_ReShape' was extended to:
- support the 'BRepTools_History' history;
- merge several shapes to a single shape that
  the history of the merged shapes is presented by equal ways.

Type 'ShapeBuild_ReShape' was changed to support 'BRepTools_History' history.
This commit is contained in:
abk
2017-04-25 15:32:51 +03:00
committed by bugmaster
parent a3762901a6
commit 98ffe9dfdf
4 changed files with 222 additions and 32 deletions

View File

@@ -224,7 +224,9 @@ TopoDS_Shape ShapeBuild_ReShape::Apply (const TopoDS_Shape& shape,
result.Closed (BRep_Tool::IsClosed (result));
result.Orientation(orient);
myStatus = locStatus;
Replace ( shape, result );
replace(shape, result,
result.IsNull() ? TReplacementKind_Remove : TReplacementKind_Modify);
return result;
}