Public Member Functions | Public Attributes | List of all members
fcl::BVNodeBase Struct Reference

BVNodeBase encodes the tree structure for BVH. More...

#include <BV_node_base.h>

Inheritance diagram for fcl::BVNodeBase:
Inheritance graph
[legend]

Public Member Functions

bool isLeaf () const
 Whether current node is a leaf node (i.e. contains a primitive index. More...
 
int leftChild () const
 Return the index of the first child. The index is referred to the bounding volume array (i.e. bvs) in BVHModel. More...
 
int primitiveId () const
 Return the primitive index. The index is referred to the original data (i.e. vertices or tri_indices) in BVHModel. More...
 
int rightChild () const
 Return the index of the second child. The index is referred to the bounding volume array (i.e. bvs) in BVHModel. More...
 

Public Attributes

int first_child
 An index for first child node or primitive If the value is positive, it is the index of the first child bv node If the value is negative, it is -(primitive index + 1) Zero is not used. More...
 
int first_primitive
 The start id the primitive belonging to the current node. The index is referred to the primitive_indices in BVHModel and from that we can obtain the primitive's index in original data indirectly. More...
 
int num_primitives
 The number of primitives belonging to the current node. More...
 

Detailed Description

BVNodeBase encodes the tree structure for BVH.

Definition at line 50 of file BV_node_base.h.

Member Function Documentation

◆ isLeaf()

bool fcl::BVNodeBase::isLeaf ( ) const

Whether current node is a leaf node (i.e. contains a primitive index.

Definition at line 44 of file BV_node_base.cpp.

◆ leftChild()

int fcl::BVNodeBase::leftChild ( ) const

Return the index of the first child. The index is referred to the bounding volume array (i.e. bvs) in BVHModel.

Definition at line 56 of file BV_node_base.cpp.

◆ primitiveId()

int fcl::BVNodeBase::primitiveId ( ) const

Return the primitive index. The index is referred to the original data (i.e. vertices or tri_indices) in BVHModel.

Definition at line 50 of file BV_node_base.cpp.

◆ rightChild()

int fcl::BVNodeBase::rightChild ( ) const

Return the index of the second child. The index is referred to the bounding volume array (i.e. bvs) in BVHModel.

Definition at line 62 of file BV_node_base.cpp.

Member Data Documentation

◆ first_child

int fcl::BVNodeBase::first_child

An index for first child node or primitive If the value is positive, it is the index of the first child bv node If the value is negative, it is -(primitive index + 1) Zero is not used.

Definition at line 56 of file BV_node_base.h.

◆ first_primitive

int fcl::BVNodeBase::first_primitive

The start id the primitive belonging to the current node. The index is referred to the primitive_indices in BVHModel and from that we can obtain the primitive's index in original data indirectly.

Definition at line 60 of file BV_node_base.h.

◆ num_primitives

int fcl::BVNodeBase::num_primitives

The number of primitives belonging to the current node.

Definition at line 63 of file BV_node_base.h.


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


fcl
Author(s):
autogenerated on Tue Dec 5 2023 03:40:50