Expand description
Python geometry bindings.
Provides Python-friendly geometry primitives, mesh operations, spatial data
structures, and CSG operations using plain f64 arrays — no nalgebra.
Structs§
- PyAabb
- An axis-aligned bounding box used in the BVH.
- PyBvh
- A BVH (Bounding Volume Hierarchy) over AABBs.
- PyBvh
Node - A node in the BVH tree.
- PyConvex
Hull - A convex hull computed from a point cloud.
- PyCsg
- Result type for CSG operations between two meshes.
- PyGeometry
Transform - A rigid-body + scale transform for geometry operations.
- PyHeightfield
- A heightfield terrain represented as a regular grid.
- PyMesh
Quality - Mesh quality metrics for a triangle mesh.
- PyPoint
Cloud - A point cloud with optional per-point normals.
- PySpatial
Hash - A spatial hash map for fast point proximity queries.
- PyTriangle
Mesh - A triangle mesh with vertices, indices, and optional per-vertex normals.
Enums§
- PyShape
- Primitive geometry shape used for collision detection and rendering.
Functions§
- compute_
aabb - Compute the axis-aligned bounding box of a point set.
- convex_
hull_ from_ mesh - Compute the convex hull of all vertices in a mesh.
- mesh_
to_ obj_ string - Serialize a triangle mesh to OBJ format string.
- obj_
string_ to_ mesh - Parse an OBJ string into a
PyTriangleMesh.