Plane and model intersection

Hello,
I have cropped a surface model using the four planes. Now, I need to get curves or lines that correspond with the coroped model and the plane touch. So the model’s boundary edge is divided into four curves by the planes. Or, at least four corner points.

thank you
Ladislav

Hello @soukup.la. To do this you probably are going to need your own python script that:

  1. Retrieves the markups planes and the model
  2. Generates new models (corresponding to the sliced contours)
  3. Use vtkCutter with the geometry of the planes to generate the contours and populate your new models

If you want this to be interactive, the script will be only a little more complicated as you would need to observe the markups planes and update your contour modules accordingly.

Hello,
I have one more question related to this. When I applied vtkPoissonDiskSampler to the corpped model, it included points related to the original model too. How is it possible?

Check carefully that you are applying the sampler to a cropped model. Could you provide more details about how yo do the cropping and apply the Poisson sampler? Are you using any script or a combination of script and the Slicer gui?

Maybe a good test could be to save the cropped model in a .vtk file then load it in a clean scene and see the effect of the Poisson sampler.