Measurement on a plane

is it possible to snap drawing points / measurements on a plane made in markups?

if not any suggestion

Here’s one way to do that, there may be simpler ways.

Reformat a slice view to the plane, i.e., the slice view and the plane have the same normal.

You can get the first control point of the plane with GetNthControlPointPositionWorld(), and the plane’s normal with GetNormalWorld(). Next is to get a tangent for this normal, you can use vtkMath::Perpendiculars() for that. With these information, you can reformat a slice view using SetSliceToRASByNTP().

The slice view will reorient itself such that it contains the plane. It’s then trivial to place points in the slice view for whatever purpose.

You can then script all these for future needs. Such a script lies here.

1 Like

Thank you for feedback . I’m working with stl model only . No Dicom . Trying to measurement some pre post surgery. Because nature of the models I needed to measure on a plane but point won’t snap to it