pyvista.demos.demos.orientation_cube#

orientation_cube()[source]#

Return a dictionary containing the meshes composing an orientation cube.

Returns:
dict

Dictionary containing the meshes composing an orientation cube.

Examples

Load the cube mesh and plot it

>>> import pyvista as pv
>>> from pyvista import demos
>>> ocube = demos.orientation_cube()
>>> pl = pv.Plotter()
>>> _ = pl.add_mesh(ocube['cube'], show_edges=True)
>>> _ = pl.add_mesh(ocube['x_p'], color='blue')
>>> _ = pl.add_mesh(ocube['x_n'], color='blue')
>>> _ = pl.add_mesh(ocube['y_p'], color='green')
>>> _ = pl.add_mesh(ocube['y_n'], color='green')
>>> _ = pl.add_mesh(ocube['z_p'], color='red')
>>> _ = pl.add_mesh(ocube['z_n'], color='red')
>>> pl.show_axes()
>>> pl.show()
../../../_images/pyvista-demos-demos-orientation_cube-1_00_00.png