HighMap library (C++)
Loading...
Searching...
No Matches
hmap::BVH2D::Node Struct Reference

#include <bvh.hpp>

Collaboration diagram for hmap::BVH2D::Node:

Public Member Functions

constexpr bool is_leaf () const noexcept

Public Attributes

AABB2D bbox
int32_t left {-1}
 Left child index or -1 if leaf.
int32_t right {-1}
 Right child index or -1 if leaf.
uint32_t seg_start {0}
uint32_t seg_count {0}

Member Function Documentation

◆ is_leaf()

bool hmap::BVH2D::Node::is_leaf ( ) const
inlineconstexprnoexcept

Member Data Documentation

◆ bbox

AABB2D hmap::BVH2D::Node::bbox

◆ left

int32_t hmap::BVH2D::Node::left {-1}

Left child index or -1 if leaf.

◆ right

int32_t hmap::BVH2D::Node::right {-1}

Right child index or -1 if leaf.

◆ seg_start

uint32_t hmap::BVH2D::Node::seg_start {0}

◆ seg_count

uint32_t hmap::BVH2D::Node::seg_count {0}

The documentation for this struct was generated from the following file:
  • HighMap/include/highmap/geometry/bvh.hpp