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 mesh_analysis;
9pub mod organized_point_cloud;
10pub mod point;
11pub mod point_cloud;
12pub mod traits;
13pub mod transform;
14
15#[cfg(feature = "bevy_interop")]
16pub mod bevy_interop;
17
18pub use error::*;
19pub use mesh::*;
20pub use mesh_analysis::{analyze_mesh, mesh_pieces, MeshReport};
21pub use organized_point_cloud::*;
22pub use point::*;
23pub use point_cloud::*;
24pub use traits::*;
25pub use transform::*;
26
27/// Re-export commonly used types from nalgebra
28pub use nalgebra::{Isometry3, Matrix3, Matrix4, Point3, Transform3, Vector3};
29
30/// Common result type for threecrate operations
31pub type Result<T> = std::result::Result<T, Error>;
32
33// Type aliases for easier imports
34pub type Point = Point3f;
35pub type Mesh = TriangleMesh;