Computer Assisted Medical Intervention Tool Kit version 6.0
 
Loading...
Searching...
No Matches
test_vtk Namespace Reference

Variables

 actual_points_size = len(points.tolist())
 
 actual_polys_size = len(polys.tolist())
 
int expected_points_size = 962
 
int expected_polys_size = 1920
 
 msh = camitk.newMeshComponentFromNumpy("Sphere from VTK", points, polys)
 
 msh_points_size = len(msh.getPointSetAsNumpy())
 
 points = numpy_support.vtk_to_numpy(polydata.GetPoints().GetData())
 
 polydata = sphere.GetOutput()
 
 polys = numpy_support.vtk_to_numpy(polydata.GetPolys().GetData()).reshape(-1, 4)
 
 sphere = vtk.vtkSphereSource()
 

Variable Documentation

◆ actual_points_size

test_vtk.actual_points_size = len(points.tolist())

◆ actual_polys_size

test_vtk.actual_polys_size = len(polys.tolist())

◆ expected_points_size

int test_vtk.expected_points_size = 962

◆ expected_polys_size

int test_vtk.expected_polys_size = 1920

◆ msh

test_vtk.msh = camitk.newMeshComponentFromNumpy("Sphere from VTK", points, polys)

◆ msh_points_size

test_vtk.msh_points_size = len(msh.getPointSetAsNumpy())

◆ points

test_vtk.points = numpy_support.vtk_to_numpy(polydata.GetPoints().GetData())

◆ polydata

test_vtk.polydata = sphere.GetOutput()

◆ polys

test_vtk.polys = numpy_support.vtk_to_numpy(polydata.GetPolys().GetData()).reshape(-1, 4)

◆ sphere

test_vtk.sphere = vtk.vtkSphereSource()