Examples

Several examples are available as rendered IPython notebooks.

curvature.ipynb

An example of the discrete gaussian curvature measure.

nearest.ipynb

An example showing nearest point queries, sampling the volume of box primitives generated from the oriented bounds and using PointCloud objects for visualization.

section.ipynb

A demonstration of mesh-plane cross-sections, commonly referred to as “slicing” in the context of 3D printing.

colors.ipynb

A simple example of loading and displaying a mesh with face colors.

texture.ipynb

Load and display a mesh with UV coordinates and texture images.

ray.ipynb

An example showing simple ray-mesh queries.

shortest.ipynb

Given a mesh and two vertex indices find the shortest path between the two vertices while only traveling along edges of the mesh using a distance-weighted graph search.

quick_start.ipynb

A simple example showing various properties of Trimesh objects.

integrate.ipynb

An example of running integration on a mesh surface.