Expand description
Scene graph with exact coordinates and motor transforms.
This crate provides:
Node: Scene graph node with transform, material, geometryScene: Container for nodes with hierarchy managementTransform: Motor-based rigid transformationsCamera: Isometric and orthographic projectionGeometry: Point, Vector, Plane, Circle, etc.Material: Color and rendering properties- [
Interaction]: Hit testing and drag constraints
§Design Principles
- Exact coordinates: All positions use [
Scalar] from tuppu-scalar - Motor transforms: Rigid motions via geometric algebra
- Stable IDs: NodeId persists across frames for incremental rendering
- Snap-to-exact: Input quantization at boundaries
Re-exports§
pub use node::Node;pub use node::NodeId;pub use node::NodeKind;pub use scene::Scene;pub use transform::Transform;pub use geometry::Geometry;pub use geometry::Point3;pub use geometry::Vector3;pub use geometry::Plane3;pub use geometry::Circle3;pub use geometry::Sphere3;pub use material::Material;pub use material::Color;pub use camera::Camera;pub use camera::IsometricCamera;pub use camera::OrthographicCamera;pub use interaction::HitResult;pub use interaction::DragConstraint;pub use interaction::HitTester;pub use primitives::Point2;pub use primitives::Vector2;pub use primitives::Line2;pub use primitives::Circle2;pub use primitives::Plane;pub use primitives::Sphere;
Modules§
- camera
- Camera projection for 3D to 2D rendering.
- geometry
- Geometric primitives with exact coordinates.
- interaction
- Hit testing and drag constraints.
- material
- Colors and materials for rendering.
- node
- Scene graph nodes.
- primitives
- High-level geometric primitives with exact coordinates.
- scene
- Scene container with node hierarchy.
- transform
- Motor-based rigid transforms.