Examples
Several examples are available as rendered IPython notebooks.
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.
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.
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.
ray.ipynb
An example showing simple ray-mesh queries.
integrate.ipynb
An example of running integration on a mesh surface.
texture.ipynb
Load and display a mesh with UV coordinates and texture images.