What problem does it solve?
This Skill defines and guides the implementation of a standardized, three-layered design pattern for all geometric primitives within the RedRing project, ensuring consistency and interoperability.
Core Features & Use Cases
- Core Traits: Provides fundamental
Constructor, Properties, and Measure traits for geometric shapes.
- Extension Traits: Offers extended functionalities like bounding box calculations (
Bounded) and spatial properties (SpatialExtension).
- Transform Traits: Enables geometric transformations such as translation, rotation, and scaling (
AnalysisTransform3D).
- Use Case: When developing a new geometric primitive, like a Sphere, developers can follow the detailed guidelines in this Skill to implement the necessary traits, ensuring it seamlessly integrates with the existing geometry system.
Quick Start
Implement the LineSegment3DConstructor trait for the LineSegment3D struct in geo_primitives/src/line_segment_3d_foundation.rs.