openalea.phenomenal.mesh.algorithms.voxelization

openalea.phenomenal.mesh.algorithms.voxelization(vtk_poly_data, voxels_size=1)[source]

Transform a mesh vtk poly data mesh representation objet to a list of voxels position, according to a voxels size float.

Parameters:
  • vtk_poly_data (vtkPolyData) – 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.) also are represented.

  • voxels_size (float, optional) – Size of the voxels

  • verbose (bool, optional) – If True, print for some information of each part of the algorithms

Returns:

vtk_image_data – Topologically and geometrically regular array of data

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

Return type:

vtkImageData