orientation_cube

orientation_cube()

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
>>> from pyvista import demos
>>> ocube = demos.orientation_cube()
>>> pl = pyvista.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