| Crates.io | threecrate-core |
| lib.rs | threecrate-core |
| version | 0.5.0 |
| created_at | 2025-07-09 10:50:38.287232+00 |
| updated_at | 2025-09-27 10:21:43.827985+00 |
| description | Core data structures and traits for threecrate |
| homepage | https://github.com/rajgandhi1/threecrate.git |
| repository | https://github.com/rajgandhi1/threecrate.git |
| max_upload_size | |
| id | 1744741 |
| size | 56,756 |
Core data structures and traits for the threecrate library ecosystem.
gpu feature flagAdd this to your Cargo.toml:
[dependencies]
threecrate-core = "0.1.0"
For GPU support:
[dependencies]
threecrate-core = { version = "0.1.0", features = ["gpu"] }
use threecrate_core::{PointCloud, Point3f, TriangleMesh};
// Create a point cloud
let points = vec![
Point3f::new(0.0, 0.0, 0.0),
Point3f::new(1.0, 0.0, 0.0),
Point3f::new(0.0, 1.0, 0.0),
];
let cloud = PointCloud::from_points(points);
// Create a triangle mesh
let vertices = vec![
Point3f::new(0.0, 0.0, 0.0),
Point3f::new(1.0, 0.0, 0.0),
Point3f::new(0.0, 1.0, 0.0),
];
let faces = vec![[0, 1, 2]];
let mesh = TriangleMesh::from_vertices_and_faces(vertices, faces);
This project is licensed under either of
at your option.