]> OCCT Git - occt-copy.git/commit
Provide possibility to get the modified faces from the BRepOffsetAPI_PatchFaces algor...
authoremv <emv@opencascade.com>
Thu, 26 Oct 2017 11:51:13 +0000 (14:51 +0300)
committeremv <emv@opencascade.com>
Thu, 26 Oct 2017 11:51:13 +0000 (14:51 +0300)
commitd6edc8f54dcb6de20d87aa4c64be332e70b31aeb
treee4d155930bfc035ee9983a8acbc556bf314ec734
parentc1ca6a033415f9b045889c707a4a6a4594096e09
Provide possibility to get the modified faces from the BRepOffsetAPI_PatchFaces algorithm.
Two new methods have been added:
- to get the new replaced face - TopoDS_Face GetPatchFace(const TopoDS_Face& theFace) const
- to get the neighboring faces of the replacing face - void GetAdjacentFaces(const TopoDS_Face& theFace, TopTools_ListOfShape& theNeighbors) const

Both methods take as an IN parameter the original face which was intended to be replaced.
First method returns the new face, on which the original one was replaced, updated to fit the resulting model.
Second method returns the faces adjacent to the original one also updated to fit the resulting model.

The new draw commands have been implemented to test these new methods:
- pfgetpatchface
- pfgetadjacentfaces
src/BRepOffsetAPI/BRepOffsetAPI_PatchFaces.cxx
src/BRepOffsetAPI/BRepOffsetAPI_PatchFaces.hxx
src/BRepTest/BRepTest_FeatureCommands.cxx