Note
Functions for working with vtk
Module author: Adam Gagorik <adam.gagorik@gmail.com>
Construct an empty vtkImageData. This data structure is a regular grid with constant spacing.
Parameters: |
|
---|
>>> image_data = create_image_data(32, 32, 32)
Construct an empty vtkImageData and fill it with the array’s values.
Parameters: | array (numpy.ndarray) – data with 3 dimensions. |
---|
>>> image_data = create_image_data_from_array(surf)
See also
Save vtkImageData to XML file.
Parameters: |
|
---|
>>> image_data = create_image_data(32, 32, 32)
>>> save_image_data('test.vit', image_data)
Load vtkImageData from XML file.
Parameters: | handle (str) – file name |
---|
Pipes one vtkObject into another.
Parameters: |
|
---|
>>> vtkImageData = create_image_data(32, 32, 32)
>>> vtkMarchingCubes = vtk.vtkMarchingCubes()
>>> pipe(vtkImageData, vtkMarchingCubes)
Create vtkMarchingCubes filter on vtkObject.
Parameters: |
|
---|
>>> image_data = create_image_data_from_array(surf)
>>> cubes = filter_marching_cubes(image_data)
>>> show(cubes)
Create vtkMarchingSquares filter on vtkObject.
Parameters: |
|
---|
>>> image_data = create_image_data_from_array(surf)
>>> squares = filter_marching_cubes(image_data)
>>> show(squares)
Applies marching cubes or squares based on number of dimensions.
Parameters: |
|
---|
Create vtkCurvatures filter on vtkObject.
Parameters: |
|
---|
>>> image_data = create_image_data_from_array(surf)
>>> cubes = filter_marching_cubes(image_data)
>>> curve = filter_curvature(cubes)
>>> show(curve)