threers 0.0.4

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
use crate::math::Vector3;

/// A ray-hit result from BVH traversal in local geometry space.
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct BvhHit {
    pub distance: f32,
    pub point: Vector3,
    pub face_index: usize,
    pub uv: Vector3,
}

impl BvhHit {
    pub fn new(distance: f32, point: Vector3, face_index: usize, uv: Vector3) -> Self {
        Self {
            distance,
            point,
            face_index,
            uv,
        }
    }
}