Skip to main content

Crate jackdaw_geometry

Crate jackdaw_geometry 

Source

Structs§

BrushFaceData
BrushPlane

Constants§

EPSILON

Functions§

brush_planes_to_world
Transform brush face planes from local space to world space.
brushes_intersect
Check whether two convex volumes (defined by face planes) overlap.
clean_degenerate_faces
Remove faces that produce no vertices (degenerate) from a face set.
compute_brush_geometry
Compute brush geometry from face planes. Returns (unique vertices, per-face polygon vertex indices).
compute_face_tangent_axes
Compute tangent axes for a face from its normal (paraxial projection).
compute_face_uvs
Compute UVs for vertices on a face using explicit tangent axes.
intersect_brushes
Compute the intersection of multiple convex brush volumes.
plane_triple_intersection
Solve the intersection of three planes. Returns None if degenerate.
point_inside_all_planes
Check if a point is inside (or on the boundary of) all half-planes.
sort_face_vertices_by_winding
Sort face vertex indices by winding order around the face normal.
subtract_brush
Subtract a cutter volume from a target brush. Both face sets must be in the same coordinate space (typically world space). Returns the fragment face sets representing the target minus the cutter.
triangulate_face
Fan triangulation from vertex 0. Valid for convex polygons.