docs.rs failed to build tinybvh-rs-0.1.0-beta.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
tinybvh-rs-0.1.0-beta.3
trinybvh-rs
Rust wrapper for tinybvh.
Features
Provides BVH (Bounding Volume Hierarchy) construction and intersection:
- Construction: [
BVH], [BVH4], [CWBVH] - Intersection
For more information about each layout: tinybvh.
Examples
BVH Wald
use ;
let primitives = vec!;
let bvh = BVHnew;
// No intersection, ray pass between the primitives
let mut ray = new;
bvh.intersect;
println!; // 1e30
// Intersects left primitive
let mut ray = new;
bvh.intersect;
println!; // 1.0 / 0
// Intersects right primitive
let mut ray = new;
bvh.intersect;
println!; // 1.0 / 1