MeshLib Rust Docs
Loading...
Searching...
No Matches
meshlib::AABBTreeChildEncoding Struct Reference
Inheritance diagram for meshlib::AABBTreeChildEncoding:

Public Member Functions

auto assign_from_another (_other:&meshlib::AABBTreeChildEncoding) -> &mut meshlib::AABBTreeChildEncoding

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::AABBTreeChildEncoding >
static auto construct_from_another (_other:&meshlib::AABBTreeChildEncoding) -> meshlib::Owned< meshlib::AABBTreeChildEncoding >
static auto is_leaf (child:meshlib::NodeId) -> bool
static auto leaf_index (child:meshlib::NodeId) -> usize
static auto leaf_child (leafIndex:usize) -> meshlib::NodeId
Static Public Member Functions inherited from meshlib::CppClass
static void destroy (ptr:*mut Self)
Static Public Member Functions inherited from meshlib::CppCopy
static auto copy (ptr:*const Self) -> *mut Self

Detailed Description

the encoding of the children of AABB-tree nodes Generated from class MR::AABBTreeChildEncoding. Derived classes: Direct: (non-virtual) MR::AABBTreeNode<MR::AABBTreeTraits<MR::UndirectedEdgeTag, MR::Box2f>> MR::AABBTreeNode<MR::AABBTreeTraits<MR::UndirectedEdgeTag, MR::Box3f>> MR::AABBTreeNode<MR::ObjTreeTraits>

Generated from class MR::AABBTreeChildEncoding. Heap-allocated instances are held in Owned<AABBTreeChildEncoding>.

Member Function Documentation

◆ assign_from_another()

auto meshlib::AABBTreeChildEncoding::assign_from_another ( _other:&meshlib::AABBTreeChildEncoding ) -> &mut meshlib::AABBTreeChildEncoding

Generated from method MR::AABBTreeChildEncoding::operator=.

Calls MR_AABBTreeChildEncoding_AssignFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in this object.

◆ construct_from_another()

auto meshlib::AABBTreeChildEncoding::construct_from_another ( _other:&meshlib::AABBTreeChildEncoding ) -> meshlib::Owned< meshlib::AABBTreeChildEncoding >
static

Generated from constructor MR::AABBTreeChildEncoding::AABBTreeChildEncoding.

Calls MR_AABBTreeChildEncoding_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

◆ is_leaf()

auto meshlib::AABBTreeChildEncoding::is_leaf ( child:meshlib::NodeId ) -> bool
static

returns true if given child of a node is a leaf rather than another node Generated from method MR::AABBTreeChildEncoding::isLeaf.

Calls MR_AABBTreeChildEncoding_isLeaf().

◆ leaf_child()

auto meshlib::AABBTreeChildEncoding::leaf_child ( leafIndex:usize ) -> meshlib::NodeId
static

encodes given index in the vector of leaves as a child of a node Generated from method MR::AABBTreeChildEncoding::leafChild.

Calls MR_AABBTreeChildEncoding_leafChild().

◆ leaf_index()

auto meshlib::AABBTreeChildEncoding::leaf_index ( child:meshlib::NodeId ) -> usize
static

returns the index in the vector of leaves of the leaf encoded in given child of a node Generated from method MR::AABBTreeChildEncoding::leafIndex.

Calls MR_AABBTreeChildEncoding_leafIndex().

◆ new()

auto meshlib::AABBTreeChildEncoding::new ( ) -> meshlib::Owned< meshlib::AABBTreeChildEncoding >
static

Constructs an empty (default-constructed) instance.

Calls MR_AABBTreeChildEncoding_DefaultConstruct().


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