pyvista.BinaryMarchingCubesReader

class BinaryMarchingCubesReader(filename)

BinaryMarchingCubes Reader for .tri files.

Examples

>>> import pyvista
>>> from pyvista import examples
>>> filename = examples.download_pine_roots(load=False)
>>> filename.split("/")[-1]  # omit the path
'pine_root.tri'
>>> reader = pyvista.get_reader(filename)
>>> mesh = reader.read()
>>> mesh.plot(color="brown")
../../../_images/pyvista-BinaryMarchingCubesReader-1_00_00.png

Methods

BinaryMarchingCubesReader.read()

Read data in file.

Attributes

BinaryMarchingCubesReader.reader

Return the vtk Reader object.