tiny.geometry.Node
Defined in tiny.geometry.
A node box with its payload.
API (5)
Actions
Public operations.
Fields and members
Public fields and members.
Source
Source: lib/geometry/src/bvh.zig:57
zig
/// A node box with its payload. An interior node has `count` zero and its/// children at `first` and `first + 1`. A leaf holds the `count` triangles/// from slot `first` of the tree-ordered triangle list.pub const Node = extern struct { min: Vec3, first: u32, max: Vec3, count: u32, pub fn isLeaf(node: Node) bool { return node.count > 0; } fn box(node: Node) Aabb { return .{ .min = node.min, .max = node.max }; }};Source: lib/geometry/src/root.zig:29
zig
pub const Node = bvh.Node;Audit
| Definitions | 2 |
|---|---|
| Public names | 2 |
| Members | 4 |
| Version | 26.7.0 |
| Revision | daab053ee433 |