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 error;
7pub mod mesh;
8pub mod organized_point_cloud;
9pub mod point;
10pub mod point_cloud;
11pub mod traits;
12pub mod transform;
13
14#[cfg(feature = "bevy_interop")]
15pub mod bevy_interop;
16
17pub use error::*;
18pub use mesh::*;
19pub use organized_point_cloud::*;
20pub use point::*;
21pub use point_cloud::*;
22pub use traits::*;
23pub use transform::*;
24
25/// Re-export commonly used types from nalgebra
26pub use nalgebra::{Isometry3, Matrix3, Matrix4, Point3, Transform3, Vector3};
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;