kumiki.triangles¶
Flat import path
kumiki/__init__.py re-exports everything on this page via from kumiki import *, so every name below is also available directly as kumiki.TRIANGLES_FLOAT_DIGITS -- you do not need to import from the submodule path shown in the heading above.
kumiki.triangles
¶
Triangle meshing and raw raycasting for CutCSG.
This module is the float-boundary adapter between the exact symbolic CutCSG model and trimesh. All SymPy-to-float conversion happens here.
TRIANGLES_HALF_SPACE_INFINITE_EXTENT
module-attribute
¶
TRIANGLES_HALF_SPACE_INFINITE_EXTENT = TRIANGLES_PRISM_INFINITE_EXTENT * 10.0
TRIANGLES_TINY_COMPONENT_VOLUME_RATIO
module-attribute
¶
TRIANGLES_TINY_COMPONENT_MIN_ABS_VOLUME
module-attribute
¶
TRIANGLES_PATH_TESSELLATION_TOLERANCE
module-attribute
¶
TriangleMesh
dataclass
¶
RaycastHit
dataclass
¶
triangulate_cutcsg
¶
triangulate_cutcsg(csg: CutCSG) -> TriangleMesh
mesh_cutcsg
¶
mesh_cutcsg(csg: CutCSG) -> TriangleMesh
raw_raycast_first
¶
raw_raycast_first(target: MeshableTarget, origin: V3, direction: V3) -> Optional[RaycastHit]
raw_raycast_all
¶
raw_raycast_all(target: MeshableTarget, origin: V3, direction: V3) -> list[RaycastHit]