Skip to main content

threecrate_core/
lib.rs

1//! Core data structures and traits for threecrate
2//! 
3//! This crate provides fundamental types for 3D point cloud and mesh processing,
4//! including points, point clouds, meshes, and essential traits.
5
6pub mod point;
7pub mod point_cloud;
8pub mod organized_point_cloud;
9pub mod mesh;
10pub mod traits;
11pub mod transform;
12pub mod error;
13
14#[cfg(feature = "bevy_interop")]
15pub mod bevy_interop;
16
17pub use point::*;
18pub use point_cloud::*;
19pub use organized_point_cloud::*;
20pub use mesh::*;
21pub use traits::*;
22pub use transform::*;
23pub use error::*;
24
25/// Re-export commonly used types from nalgebra
26pub use nalgebra::{Point3, Vector3, Matrix3, Matrix4, Isometry3, Transform3};
27
28/// Common result type for threecrate operations
29pub type Result<T> = std::result::Result<T, Error>;
30
31// Type aliases for easier imports
32pub type Point = Point3f;
33pub type Mesh = TriangleMesh;