HI Everyone, I would like to ask "How to get history of shapes, especially for "TopoDS_Shape"?
In detail, I'm a beginner of OCCT/VTK studies, and I used TopoDS_Shape->IVtkTools_ShapeDataSource->vtkPolyDataMapper->vtkActor this pipeline to render an OCCT source in QVtkOpenglNativeWidget.
I am struggling to implement an "Undo-Redo" function, I don't know is there a method which is able to "record" states of TopoDS_Shape?
For example,
When I try to Undo a boolean operation above, I had to get TopoDS_Shape of shape1 and shape2 and render them in widget once again
I also try to search for "BRepTools_History", but it looks like a tree of relationships of shapes, instead of changes for shapes.
I had confused on this problem for weeks, hope for your kindly help.
Thank you very much,
Best regards,
In detail, I'm a beginner of OCCT/VTK studies, and I used TopoDS_Shape->IVtkTools_ShapeDataSource->vtkPolyDataMapper->vtkActor this pipeline to render an OCCT source in QVtkOpenglNativeWidget.
I am struggling to implement an "Undo-Redo" function, I don't know is there a method which is able to "record" states of TopoDS_Shape?
For example,
When I try to Undo a boolean operation above, I had to get TopoDS_Shape of shape1 and shape2 and render them in widget once again
auto aShape = TopoDS_Shape(BRepAlgoAPI_Fuse(shape1, shape2)); aRenderer->render(aShape, DEAUFLT_RENDER_TYPE);
I also try to search for "BRepTools_History", but it looks like a tree of relationships of shapes, instead of changes for shapes.
I had confused on this problem for weeks, hope for your kindly help.
Thank you very much,
Best regards,