Contour(contour_points)
The Contour class provides an interface for creating a contour
segmentation. A contur segmentation is defined by a set of 3D points.
Args:
contour_points (list([float,float,float])): The list of 3D points
defining the contour.
get_center()
Get the center of the polygon segmentation.
Returns (list([float,float,float]): The polygon segmentation center.
get_id()
Get the contour ID.
Returns int: The contour ID.
get_normal()
Get the normal of the polygon segmentation.
Returns (list([float,float,float]): The polygon segmentation normal.
get_path_point()
Get the contour path point.
Returns dict(pos:[x,y,z], tangent:[x,y,z], rotation:[x,y,z]): The contour path point.
get_points()
Get the segmentation contour points.
Returns list([x,y,z]): The list of contour points.
get_vtk_polydata()
Get the contour type.
Returns (str): contour type.
get_type()
Get the contour type.
Returns (str): contour type.
set_contour_points(contour_points)
Set the contour points for a contour segmentation.
Args:
points (list(list([float,float,float])): The list of contour points.