to_contours#

contour_positions(contours, origin, direction)

Positions of the planes a contour list lies on, in mm along the image k axis.

mesh_to_contours(poly, origin, spacing, ...)

Cut a closed mesh into contours with exact planes normal to the image k axis.

mask_to_contours(mask, origin, spacing, ...)

Trace a mask into world-space contours with marching squares on each slice.