threers 0.0.3

Drop-in three.js replacement for Rust and WebAssembly (wgpu) — THREE.* API, scene graph, PBR, post-fx, mesh BVH, CSG, an OpenSCAD front end with a watertight exact-CSG kernel, headless render, and native media codecs
Documentation
//! BVH-accelerated raycasting for `BufferGeometry` (three-mesh-bvh compatible).

mod build;
mod bvhcast;
mod hit;
mod mesh_bvh;
mod node;
mod serialize;

pub use build::{BuildOptions, AVERAGE, CENTER, SAH};
pub use hit::BvhHit;
pub use mesh_bvh::MeshBvh;
pub use serialize::{SerializedMeshBvh, SERIALIZE_VERSION};

/// Material side constants (mirror three.js).
pub const FRONT_SIDE: u32 = 0;
pub const BACK_SIDE: u32 = 1;
pub const DOUBLE_SIDE: u32 = 2;

/// Shapecast traversal result constants (mirror three-mesh-bvh).
pub const NOT_INTERSECTED: i32 = 0;
pub const INTERSECTED: i32 = 1;
pub const CONTAINED: i32 = 2;