pyvista.BinaryMarchingCubesReader#

class BinaryMarchingCubesReader(filename)[source]#

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.hide_progress()

Hide the progress bar.

BinaryMarchingCubesReader.read()

Read data in file.

BinaryMarchingCubesReader.show_progress([msg])

Show a progress bar.

Attributes

BinaryMarchingCubesReader.reader

Return the vtk Reader object.