GameCult.Geometry.Csg/src/lib.rs

31 lines
1.2 KiB
Rust
Raw Normal View History

2026-05-07 00:08:17 +01:00
//! Lean constructive geometry tools for VibeGeometry.
//!
//! This crate borrows RealtimeCSG's useful public shape: ordered brushes,
2026-05-07 15:05:55 +01:00
//! operation types, dirtied generations, prefix checkpoints, and rebuildable
//! output meshes. The hidden native RealtimeCSG kernel is not public, so this
//! starts with the smallest honest CSG organ: exact box subtraction against
//! additive boxes, plus additive procedural primitives for the habitat forms we
//! keep needing.
2026-05-07 00:08:17 +01:00
mod assembler;
mod brush;
2026-05-07 00:20:58 +01:00
mod convex;
2026-05-07 00:08:17 +01:00
mod dsl;
2026-05-07 08:20:25 +01:00
mod frontier;
2026-05-07 00:08:17 +01:00
mod mesh;
mod primitives;
2026-05-07 01:32:51 +01:00
mod tree;
2026-05-07 00:08:17 +01:00
pub use assembler::{Assembler, BuildOutput, BuildReport, BuildWarning};
pub use brush::{Aabb, Brush, BrushId, BrushOp, MaterialId, PolygonCategory, Primitive};
2026-05-07 08:38:20 +01:00
pub use convex::{CategorizedPolygons, ConvexPolygon, ConvexSolid, Plane, PolygonRouteScratch};
2026-05-07 00:08:17 +01:00
pub use dsl::LevelDsl;
2026-05-07 08:49:33 +01:00
pub use frontier::{DemandFrontier, DemandPair, DirtyDemandFrontier};
2026-05-07 00:08:17 +01:00
pub use mesh::TriangleMesh;
pub use primitives::{
DomeCapZSpec, FloretArmSpec, append_cylinder_z, append_dome_cap_z, append_floret_arm,
};
2026-05-07 01:32:51 +01:00
pub use tree::{
CsgBranchOp, CsgNode, CsgNodeId, CsgOperationType, CsgTree, CsgTreeArena, CsgTreeBranch,
CsgTreeBrush,
};