sksurgerytrackervisualisation.shapes.dynamic_point_cloud module

Class to represent a point cloud via a vtkPolyData, with the ability to dynamically add points

class sksurgerytrackervisualisation.shapes.dynamic_point_cloud.VTKDynamicPointCloud(colour, visibility=True, opacity=1.0)[source]

Bases: sksurgeryvtk.models.vtk_base_model.VTKBaseModel

Class to represent a point cloud via a vtkPolyData, with the ability to dynamically add points

add_point(point)[source]

Adds a point to the point cloud and updates the vtk actor to show the complete point cloud

Param:A 3 tuple representing the point coordinate
get_polydata()[source]

Returns a polydata consisting of the poind cloud