Skip to documentation
SLOP

tiny.geometry.Node

Reference 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.

No direct callersNo direct callstiny.geometryNode
Static calls · unresolved targets: unknown · external targets: unknown.

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

Definitions2
Public names2
Members4
Version26.7.0
Revisiondaab053ee433