NavMap
Loading...
Searching...
No Matches
BVHNode Struct Reference

Node in a per-surface bounding volume hierarchy (BVH). More...

#include <NavMap.hpp>

Collaboration diagram for BVHNode:

Public Member Functions

bool is_leaf () const

Public Attributes

AABB box
 Bounding box of this node (world coordinates).
int count {0}
 Number of primitives in leaf (0 for inner nodes).
int left {-1}
 Left child index (or -1 for leaf).
int right {-1}
 Right child index (or -1 for leaf).
int start {0}
 Start index in primitive array (leaf only).

Detailed Description

Node in a per-surface bounding volume hierarchy (BVH).

Leaves reference a compact range into the surface's primitive list.

Member Function Documentation

◆ is_leaf()

bool is_leaf ( ) const

Member Data Documentation

◆ box

AABB box

Bounding box of this node (world coordinates).

◆ count

int count {0}

Number of primitives in leaf (0 for inner nodes).

◆ left

int left {-1}

Left child index (or -1 for leaf).

◆ right

int right {-1}

Right child index (or -1 for leaf).

◆ start

int start {0}

Start index in primitive array (leaf only).


The documentation for this struct was generated from the following file: