Helper functions for easy visualization of point clouds
Get the vtk control currently used by the plot3d functions
Returns whether hold is enabled
Plot hedge hog (points w/ normals) from given NumPy array of Nx6 values
Plot a supplied point cloud (NumPy array of Nxd values where d>=3)
The supplied array may have an additional column with scalars, which will be used to color the points (0=black, 1=white)
Plot a supplied point cloud w/ color (NumPy array of Nx6 values)
Toggle whether new objects will replace previous objects in the visualizer
Class for easy visualization of point clouds and geometric primitives
Add a supplied vtkActor object to the visualizer
Add coordinate system axes with specified length
Add a box witih the given bounds=[xmin,xmax,ymin,ymax,zmin,zmax]
Add a point cloud with colors from a given NumPy array
The NumPy array should have dimension Nx6 where the first three dimensions correspond to X, Y and Z and the last three dimensions correspond to R, G and B values (between 0 and 255)
Add a cylinder with given origin (x,y,z), radius r and height h
Add shaded points with surface normals to the visualizer
The input is a NumPy array with dimension Nx6 with (x,y,z) and (nx,ny,nz) values for the points and associated surface normals
The normals will be scaled according to given scale factor
Add shaded points with surface normals and scalars to the visualizer
The input is a NumPy array with dimension Nx7 with (x,y,z), (nx,ny,nz) and scalar (the last dimension contains the scalars)
The normals will be scaled according to given scale factor
Add a set of surface normals to the visualizer
The input is a NumPy array with dimension Nx6 with (x,y,z) and (nx,ny,nz) values for the points and associated surface normals
The normals will be scaled according to given scale factor
Load a mesh from a PLY file and add it to the visualizer
Add a plane (optionally with a given normal vector and origin)
Note: SetActorScale can be used to scale the extent of the plane
Add a point cloud from a given NumPy array
The NumPy array should have dimension Nxd where d >= 3
If d>3, the points will be colored according to the last column in the supplied array (values should be between 0 and 1, where 0 is black and 1 is white)
Add a supplied vtkPolyData object to the visualizer
Load a mesh from an STL file and add it to the visualizer
Add a point cloud with shaded points based on supplied normal vectors
The NumPy array should have dimension Nx6 where the first three dimensions correspond to x, y and z and the last three dimensions correspond to surface normals (nx, ny, nz)
Add a sphere with given origin (x,y,z) and radius r
Close the visualization widget
Get the actor add the specified location
Get the actor last added to the visualizer
Get the ID of the last actor added to the visualizer
Get the number of actors added to visualizer
Remove all actors from the visualizer
Remove the last added actor from the visualizer
Render all objects
Reset the camera to fit contents
Create a screenshot of the visualizer in BMP format
Set the color of the specified actor index
rgb is a tuple of (r,g,b) values in the range 0..1
Set the opacity (0..1) of the specified actor index
Set the scale of supplied actor index (tuple of 3 values)
Set the pose (location and orientation) of the specified actor index
T is a 4x4 NumPy array containing rotation matrix and translation vector
Toggle visibility of the specified actor index on or of
Set the background color of the visualizer to given R, G and B color