Skip to main content

Module geometry_api

Module geometry_api 

Source
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.
PyBvhNode
A node in the BVH tree.
PyConvexHull
A convex hull computed from a point cloud.
PyCsg
Result type for CSG operations between two meshes.
PyGeometryTransform
A rigid-body + scale transform for geometry operations.
PyHeightfield
A heightfield terrain represented as a regular grid.
PyMeshQuality
Mesh quality metrics for a triangle mesh.
PyPointCloud
A point cloud with optional per-point normals.
PySpatialHash
A spatial hash map for fast point proximity queries.
PyTriangleMesh
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.