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
usesuper::light_helpers::line_object;usesuper::three_lines;usecrate::core::Object3D;usecrate::math::{Box3, Color};/// Wireframe box around an AABB. three.js's `BoxHelper`, taking the box
/// directly rather than an object's bounding box.
pubstructBoxHelper;implBoxHelper{pubfnnew(bb:&Box3, color: Color)-> Object3D{letv=|p:crate::math::Vector3|[p.x asf64, p.y asf64, p.z asf64];line_object(&three_lines::box_lines(v(bb.min),v(bb.max)), color)}}