ThreeCrate Core
Core data structures and traits for the 3DCrate library ecosystem.
Features
- Point Cloud Support: Generic point cloud data structures with support for colored points
- Mesh Representation: Triangle mesh data structures with normals and texture coordinates
- Spatial Transformations: Comprehensive 3D transformation utilities
- Error Handling: Robust error types for 3D processing operations
- GPU Integration: Optional GPU support via the
gpu
feature flag
Usage
Add this to your Cargo.toml
:
[]
= "0.1.0"
For GPU support:
[]
= { = "0.1.0", = ["gpu"] }
Example
use ;
// Create a point cloud
let points = vec!;
let cloud = from_points;
// Create a triangle mesh
let vertices = vec!;
let faces = vec!;
let mesh = from_vertices_and_faces;
License
This project is licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.