What I have made is a function to smooth/adjust a Brep through mouse movement. When I call the function a dialog will be shown with Dialog.Show (not ShowDialog). This way the function will continue to the end and the dialog will stay open. I can hold my left mouse button and move it around for adjustments. Because the function has already ended after after Dialog.Show it will not track the adjustments to the object.
How can I add this Brep to the undo/redo list or maybe add a custom Undo/Redo?
Thanks for reading.
I am using RhinoCommon in vb.NET