ThreeCrate Visualization
Real-time 3D visualization and interactive viewing for point clouds and meshes.
Features
show_point_cloud()andshow_mesh()convenience functions for quick displayInteractiveViewerfor full control over the viewing session- GPU-accelerated rendering via wgpu
- Triangle mesh rendering with lighting
- Spherical coordinate camera with orbit, pan, and zoom modes
- Cross-platform (Windows, macOS, Linux) via winit and wgpu
Camera Controls
- Mouse Drag: Orbit around the scene
- Mouse Scroll: Zoom in/out
- O: Switch to orbit mode
- P: Switch to pan mode
- Z: Switch to zoom mode
- R: Reset camera position
Usage
Add this to your Cargo.toml:
[]
= "0.6.0"
= "0.6.0"
Example
use ;
use ;
// Quick display
show_point_cloud?;
show_mesh?;
// Full control with InteractiveViewer
let mut viewer = new?;
viewer.set_point_cloud;
viewer.run?;
Requirements
- A GPU with Vulkan, Metal, or DirectX 12 support
- Windows 10+, macOS 10.15+, or Linux with appropriate graphics drivers
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.