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() | |
| test_vtk.actual_points_size = len(points.tolist()) |
| test_vtk.actual_polys_size = len(polys.tolist()) |
| int test_vtk.expected_points_size = 962 |
| int test_vtk.expected_polys_size = 1920 |
| test_vtk.msh_points_size = len(msh.getPointSetAsNumpy()) |
| test_vtk.points = numpy_support.vtk_to_numpy(polydata.GetPoints().GetData()) |
| test_vtk.polydata = sphere.GetOutput() |
| test_vtk.polys = numpy_support.vtk_to_numpy(polydata.GetPolys().GetData()).reshape(-1, 4) |
| test_vtk.sphere = vtk.vtkSphereSource() |