Overview of trimesh features
maintrimesh is a pure Python 3.10+ library for loading and using triangular meshes, with an emphasis on watertight surfaces.
Key capabilities include:
- Import/Export: Supports STL, OBJ, PLY, GLTF/GLB, 3MF, XAML, 3DXML, and more.
- Analysis: Calculate volume, center of mass, moment of inertia, watertightness, and convexity.
- Geometry Operations: Convex hulls, slicing, boolean operations (via Manifold3D or Blender), voxelization, and smoothing.
- Queries: Ray-mesh queries and nearest point calculations.
- Primitives: Built-in support for Box, Cylinder, Sphere, and Extrusion objects.
- Visualization: OpenGL preview via
pygletor in-line in Jupyter/marimo notebooks viathree.js.