Crate tuppu_scene

Crate tuppu_scene 

Source
Expand description

Scene graph with exact coordinates and motor transforms.

This crate provides:

  • Node: Scene graph node with transform, material, geometry
  • Scene: Container for nodes with hierarchy management
  • Transform: Motor-based rigid transformations
  • Camera: Isometric and orthographic projection
  • Geometry: Point, Vector, Plane, Circle, etc.
  • Material: Color and rendering properties
  • [Interaction]: Hit testing and drag constraints

§Design Principles

  1. Exact coordinates: All positions use [Scalar] from tuppu-scalar
  2. Motor transforms: Rigid motions via geometric algebra
  3. Stable IDs: NodeId persists across frames for incremental rendering
  4. 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.