I’d like to make a widget like the ImageCroppingWidget but for geometry.
These models are generally vtkjs scenes made up of multiple datasets like the one below:
I was considering a way to use the vtkCutter filter but I’m not sure how to adapt it to cut the scene globally.
I’m thinking something like the following:
const plane = vtkPlane.newInstance()
const cutter = vtkCutter.newInstance()
cutter.setCutFunction(plane)
renderer.getActors().forEach((actor) => {
cutter.setInputConnections(actor.getMapper().getInputData().getOutputPort())
})
Do you have any tips as to how to implement this feature?
Thanks in advance!