openalea.phenomenal.mesh.algorithms.marching_cubes

openalea.phenomenal.mesh.algorithms.marching_cubes(vtk_image_data, iso_value=0.5, verbose=False)[source]

Call of vtkMarchingCubes on a vtk_image_data with iso_value

vtkMarchingCubes is a filter that takes as input a volume (e.g., 3D structured point set) and generates on output one or more isosurfaces.

One or more contour values must be specified to generate the isosurfaces. Alternatively, you can specify a min/max scalar range and the number of contours to generate a series of evenly spaced contour values.

Parameters:
  • vtk_image_data (vtkImageData) – vtkImageData is a data object that is a concrete implementation of vtkDataSet. vtkImageData represents a geometric structure that is a topological and geometrical regular array of points. Examples include volumes (voxel data) and pixmaps.
  • iso_value (float, optional) – Contour value to search for isosurfaces in volume.
  • verbose (bool, optional) – If True, print for some information of each part of the algorithms
Returns:

put – vtkPolyData is a data object that is a concrete implementation of vtkDataSet. vtkPolyData represents a geometric structure consisting of vertices, lines, polygons, and/or triangle strips. Point and cell attribute values (e.g., scalars, vectors, etc.)

Return type:

vtkPolyData