#include <MRCMesh/MRBox.h>#include <MRCMesh/MRId.h>#include <MRCMisc/common.h>#include <MRCMisc/exports.h>#include <MRCMisc/std_array_MR_VertId_3.h>#include <stdbool.h>#include <stddef.h>Go to the source code of this file.
| typedef struct MR_AABBTree MR_AABBTree |
bounding volume hierarchy of mesh triangles with up to 4 children per node and up to 4 triangles per leaf; the children of a node are stored contiguously, and every leaf keeps the vertices and the boxes of its triangles Generated from class MR::AABBTree. Supported MR_PassBy modes: MR_PassBy_DefaultConstruct, MR_PassBy_Move (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee). bounding box of whole subtree Returns a pointer to a member variable of class MR::AABBTreeWideNode named box. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.
| typedef struct MR_AABBTreeWideLeafTri MR_AABBTreeWideLeafTri |
triangle in a leaf of AABBTree Generated from class MR::AABBTreeWideLeafTri. Supported MR_PassBy modes: MR_PassBy_DefaultConstruct, MR_PassBy_Copy, MR_PassBy_Move (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).
| typedef struct MR_AABBTreeWideNode MR_AABBTreeWideNode |
node of AABBTree (outside of the class to be default-constructible in its members) Generated from class MR::AABBTreeWideNode. Supported MR_PassBy modes: MR_PassBy_DefaultConstruct, MR_PassBy_Copy, MR_PassBy_Move (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).
| typedef struct MR_FaceBitSet MR_FaceBitSet |
Vector<bool, I> like container (random-access, I - index type, bool - value type) with all bits after size() considered off during testing Generated from class MR::FaceBitSet. Base classes: Direct: (non-virtual) MR::BitSet Supported MR_PassBy modes: MR_PassBy_DefaultConstruct, MR_PassBy_Copy, MR_PassBy_Move (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).
| typedef struct MR_FaceBMap MR_FaceBMap |
flat map: I -> T Generated from class MR::FaceBMap. Supported MR_PassBy modes: MR_PassBy_DefaultConstruct, MR_PassBy_Move (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).
| typedef struct MR_MeshPart MR_MeshPart |
stores reference on whole mesh (if region is nullptr) or on its part (if region pointer is valid) Generated from class MR::MeshPart. Supported MR_PassBy modes: MR_PassBy_Copy (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).
| typedef struct MR_NodeBitSet MR_NodeBitSet |
Vector<bool, I> like container (random-access, I - index type, bool - value type) with all bits after size() considered off during testing Generated from class MR::NodeBitSet. Base classes: Direct: (non-virtual) MR::BitSet Supported MR_PassBy modes: MR_PassBy_DefaultConstruct, MR_PassBy_Copy, MR_PassBy_Move (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).
Generated from C++ container phmap::flat_hash_map<MR::FaceId, MR::FaceId, phmap::Hash<MR::FaceId>, phmap::EqualTo<MR::FaceId>, MR::Allocator<std::pair<const MR::FaceId, MR::FaceId>>>. Supported MR_PassBy modes: MR_PassBy_DefaultConstruct, MR_PassBy_Copy, MR_PassBy_Move (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).
| typedef struct MR_std_vector_MR_NodeId MR_std_vector_MR_NodeId |
Generated from C++ container std::vector<MR::NodeId>. Supported MR_PassBy modes: MR_PassBy_DefaultConstruct, MR_PassBy_Copy, MR_PassBy_Move (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).
| typedef struct MR_TriMesh MR_TriMesh |
very simple structure for storing mesh of triangles only, without easy navigation between neighbor elements as in Mesh Generated from class MR::TriMesh. Supported MR_PassBy modes: MR_PassBy_DefaultConstruct, MR_PassBy_Copy, MR_PassBy_Move (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).
| typedef struct MR_Vector_MR_AABBTreeWideLeafTri MR_Vector_MR_AABBTreeWideLeafTri |
Vector<T> is indexed by size_t Generated from class MR::Vector<MR::AABBTreeWideLeafTri>. Supported MR_PassBy modes: MR_PassBy_DefaultConstruct, MR_PassBy_Copy, MR_PassBy_Move (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).
Vector<T> is indexed by size_t Generated from class MR::Vector<MR::AABBTreeWideNode, MR::NodeId>. Supported MR_PassBy modes: MR_PassBy_DefaultConstruct, MR_PassBy_Copy, MR_PassBy_Move (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).
| typedef struct MR_Vector_MR_Box3f MR_Vector_MR_Box3f |
Vector<T> is indexed by size_t Generated from class MR::Vector<MR::Box3f>. Supported MR_PassBy modes: MR_PassBy_DefaultConstruct, MR_PassBy_Copy, MR_PassBy_Move (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).
| typedef struct MR_VertBitSet MR_VertBitSet |
Vector<bool, I> like container (random-access, I - index type, bool - value type) with all bits after size() considered off during testing Generated from class MR::VertBitSet. Base classes: Direct: (non-virtual) MR::BitSet Supported MR_PassBy modes: MR_PassBy_DefaultConstruct, MR_PassBy_Copy, MR_PassBy_Move (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).
| typedef struct MR_VertBMap MR_VertBMap |
flat map: I -> T Generated from class MR::VertBMap. Supported MR_PassBy modes: MR_PassBy_DefaultConstruct, MR_PassBy_Move (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).
| MRC_API void MR_AABBTree_addSplitFaces | ( | MR_AABBTree * | _this, |
| const MR_Mesh * | mesh, | ||
| const MR_phmap_flat_hash_map_MR_FaceId_MR_FaceId_phmap_Hash_MR_FaceId_phmap_EqualTo_MR_FaceId_MR_Allocator_std_pair_const_MR_FaceId_MR_FaceId * | new2Old ) |
adds to the tree the faces that appeared after splitting some of its faces into parts (e.g. by Mesh::splitFace or Mesh::splitEdge): the leaf of each split face gets a subtree with its old triangles and the new parts; this is a faster alternative to full tree rebuild (but the tree after the update might be less efficient)
| mesh | same mesh for which this tree was constructed, but after the splits |
| new2Old | maps every new face (not present in the tree) to the face of this tree it was split from; it must contain only the splits made since the tree was built or last updated Generated from method MR::AABBTree::addSplitFaces. Parameter _this can not be null. It is a single object. Parameter mesh can not be null. It is a single object. Parameter new2Old can not be null. It is a single object. |
| MRC_API MR_AABBTree * MR_AABBTree_AssignFromAnother | ( | MR_AABBTree * | _this, |
| MR_PassBy | _other_pass_by, | ||
| MR_AABBTree * | _other ) |
Generated from method MR::AABBTree::operator=. Parameter _this can not be null. It is a single object. The reference to things referred to by the parameter _other (if any) might be preserved in this object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved in the return value. When this function is called, this object will drop any object references it held previously.
| MRC_API MR_AABBTree * MR_AABBTree_Construct_1 | ( | const MR_MeshPart * | mp | ) |
creates tree for given mesh or its part Generated from constructor MR::AABBTree::AABBTree. Parameter mp can not be null. It is a single object. The reference to the parameter mp might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_AABBTree_Destroy() to free it when you're done using it.
| MRC_API MR_AABBTree * MR_AABBTree_Construct_2 | ( | const MR_TriMesh * | tmesh, |
| const MR_FaceBitSet * | region ) |
creates tree for the triangles of tmesh (all if region is nullptr), faster than from a mesh; it is the tree of a mesh with tmesh.points and mesh.topology.getTriVerts( f ) == tmesh.tris[f] for all its triangles Generated from constructor MR::AABBTree::AABBTree. Parameter tmesh can not be null. It is a single object. The reference to the parameter tmesh might be preserved in the constructed object. Parameter region defaults to a null pointer in C++. The reference to the parameter region might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_AABBTree_Destroy() to free it when you're done using it.
| MRC_API MR_AABBTree * MR_AABBTree_ConstructFromAnother | ( | MR_PassBy | _other_pass_by, |
| MR_AABBTree * | _other ) |
Generated from constructor MR::AABBTree::AABBTree. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_AABBTree_Destroy() to free it when you're done using it.
| MRC_API MR_AABBTree * MR_AABBTree_DefaultConstruct | ( | void | ) |
Constructs an empty (default-constructed) instance. Never returns null. Returns an instance allocated on the heap! Must call MR_AABBTree_Destroy() to free it when you're done using it.
| MRC_API MR_AABBTree * MR_AABBTree_DefaultConstructArray | ( | size_t | num_elems | ) |
Constructs an array of empty (default-constructed) instances, of the specified size. Will never return null. The array must be destroyed using MR_AABBTree_DestroyArray(). Use MR_AABBTree_OffsetMutablePtr() and MR_AABBTree_OffsetPtr() to access the array elements.
| MRC_API void MR_AABBTree_Destroy | ( | const MR_AABBTree * | _this | ) |
Destroys a heap-allocated instance of MR_AABBTree. Does nothing if the pointer is null.
| MRC_API void MR_AABBTree_DestroyArray | ( | const MR_AABBTree * | _this | ) |
Destroys a heap-allocated array of MR_AABBTree. Does nothing if the pointer is null.
| MRC_API void MR_AABBTree_flipOrientation | ( | MR_AABBTree * | _this, |
| const MR_FaceBitSet * | region ) |
changes the order of the vertices of the triangles of given faces (all if nullptr) as MeshTopology::flipOrientation() does; shall be called after MeshTopology::flipOrientation() if this tree is kept Generated from method MR::AABBTree::flipOrientation. Parameter _this can not be null. It is a single object. Parameter region defaults to a null pointer in C++.
| MRC_API const int * MR_AABBTree_Get_MaxChildren | ( | void | ) |
Returns a pointer to a member variable of class MR::AABBTree named MaxChildren. The returned pointer will never be null. It is non-owning, do NOT destroy it.
| MRC_API const int * MR_AABBTree_Get_MaxDepth | ( | void | ) |
the deepest level of a node (the root is at 0): the stacks of the traversals are sized for it, and addSplitFaces rebuilds a deeper tree Returns a pointer to a member variable of class MR::AABBTree named MaxDepth. The returned pointer will never be null. It is non-owning, do NOT destroy it.
| MRC_API const int * MR_AABBTree_Get_MaxLeafTris | ( | void | ) |
Returns a pointer to a member variable of class MR::AABBTree named MaxLeafTris. The returned pointer will never be null. It is non-owning, do NOT destroy it.
| MRC_API MR_Box3f MR_AABBTree_getBoundingBox | ( | const MR_AABBTree * | _this | ) |
returns the bounding box of the whole tree (empty for an empty tree) Generated from method MR::AABBTree::getBoundingBox. Parameter _this can not be null. It is a single object.
| MRC_API void MR_AABBTree_getLeafOrder | ( | const MR_AABBTree * | _this, |
| MR_FaceBMap * | faceMap ) |
fills map: FaceId -> its position in leafTris(); buffer in faceMap must be resized before the call, and caller is responsible for filling missing face elements Generated from method MR::AABBTree::getLeafOrder. Parameter _this can not be null. It is a single object. Parameter faceMap can not be null. It is a single object.
| MRC_API MR_NodeBitSet * MR_AABBTree_getNodesFromFaces | ( | const MR_AABBTree * | _this, |
| const MR_FaceBitSet * | faces ) |
returns the nodes having at least one of given triangles in their subtrees Generated from method MR::AABBTree::getNodesFromFaces. Parameter _this can not be null. It is a single object. Parameter faces can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_NodeBitSet_Destroy() to free it when you're done using it.
| MRC_API MR_FaceBitSet * MR_AABBTree_getSubtreeFaces | ( | const MR_AABBTree * | _this, |
| MR_NodeId | subtreeRoot ) |
returns all triangles in the subtree with given root Generated from method MR::AABBTree::getSubtreeFaces. Parameter _this can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_FaceBitSet_Destroy() to free it when you're done using it.
| MRC_API MR_std_vector_MR_NodeId * MR_AABBTree_getSubtrees | ( | const MR_AABBTree * | _this, |
| int | minNum ) |
returns at least given number of top-level not-intersecting subtrees, union of which contain all tree leaves Generated from method MR::AABBTree::getSubtrees. Parameter _this can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_std_vector_MR_NodeId_Destroy() to free it when you're done using it.
| MRC_API size_t MR_AABBTree_heapBytes | ( | const MR_AABBTree * | _this | ) |
returns the amount of memory this object occupies on heap Generated from method MR::AABBTree::heapBytes. Parameter _this can not be null. It is a single object.
| MRC_API const MR_Vector_MR_Box3f * MR_AABBTree_leafBoxes | ( | const MR_AABBTree * | _this | ) |
the bounding boxes of the triangles in the order of leafTris(), slightly expanded for robust searches Generated from method MR::AABBTree::leafBoxes. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.
| MRC_API const MR_Vector_MR_AABBTreeWideLeafTri * MR_AABBTree_leafTris | ( | const MR_AABBTree * | _this | ) |
triangles of all leaves, the triangles of each leaf are contiguous Generated from method MR::AABBTree::leafTris. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.
| MRC_API const MR_Vector_MR_AABBTreeWideNode_MR_NodeId * MR_AABBTree_nodes | ( | const MR_AABBTree * | _this | ) |
the root is the first node, if any Generated from method MR::AABBTree::nodes. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.
| MRC_API MR_AABBTree * MR_AABBTree_OffsetMutablePtr | ( | MR_AABBTree * | ptr, |
| ptrdiff_t | i ) |
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.
| MRC_API const MR_AABBTree * MR_AABBTree_OffsetPtr | ( | const MR_AABBTree * | ptr, |
| ptrdiff_t | i ) |
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.
| MRC_API void MR_AABBTree_refit | ( | MR_AABBTree * | _this, |
| const MR_Mesh * | mesh, | ||
| const MR_VertBitSet * | changedVerts ) |
updates the boxes of the triangles with changed vertices and of their ancestors; this is a faster alternative to full tree rebuild (but the tree after refit might be less efficient)
| mesh | same mesh for which this tree was constructed but with updated coordinates; |
| changedVerts | vertex ids with modified coordinates (since tree construction or last refit), nullptr means all vertices Generated from method MR::AABBTree::refit. Parameter _this can not be null. It is a single object. Parameter mesh can not be null. It is a single object. |
| MRC_API void MR_AABBTree_renumber | ( | MR_AABBTree * | _this, |
| const MR_FaceBMap * | faceMap, | ||
| const MR_VertBMap * | vertMap ) |
renumbers the triangles and their vertices after the mesh was packed with given maps from old to new ids Generated from method MR::AABBTree::renumber. Parameter _this can not be null. It is a single object. Parameter faceMap can not be null. It is a single object. Parameter vertMap can not be null. It is a single object.
| MRC_API MR_AABBTreeWideLeafTri * MR_AABBTreeWideLeafTri_AssignFromAnother | ( | MR_AABBTreeWideLeafTri * | _this, |
| const MR_AABBTreeWideLeafTri * | _other ) |
Generated from method MR::AABBTreeWideLeafTri::operator=. Parameter _this can not be null. It is a single object. Parameter _other can not be null. It is a single object. The reference to things referred to by the parameter _other (if any) might be preserved in this object. The returned pointer will never be null. It is non-owning, do NOT destroy it. When this function is called, this object will drop any object references it held previously.
| MRC_API MR_AABBTreeWideLeafTri * MR_AABBTreeWideLeafTri_ConstructFrom | ( | MR_FaceId | face, |
| MR_std_array_MR_VertId_3 | verts ) |
Constructs MR::AABBTreeWideLeafTri elementwise. The reference to the parameter face might be preserved in the constructed object. The reference to the parameter verts might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_AABBTreeWideLeafTri_Destroy() to free it when you're done using it. When this function is called, this object will drop any object references it held previously.
| MRC_API MR_AABBTreeWideLeafTri * MR_AABBTreeWideLeafTri_ConstructFromAnother | ( | const MR_AABBTreeWideLeafTri * | _other | ) |
Generated from constructor MR::AABBTreeWideLeafTri::AABBTreeWideLeafTri. Parameter _other can not be null. It is a single object. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_AABBTreeWideLeafTri_Destroy() to free it when you're done using it.
| MRC_API MR_AABBTreeWideLeafTri * MR_AABBTreeWideLeafTri_DefaultConstruct | ( | void | ) |
Constructs an empty (default-constructed) instance. Never returns null. Returns an instance allocated on the heap! Must call MR_AABBTreeWideLeafTri_Destroy() to free it when you're done using it.
| MRC_API MR_AABBTreeWideLeafTri * MR_AABBTreeWideLeafTri_DefaultConstructArray | ( | size_t | num_elems | ) |
Constructs an array of empty (default-constructed) instances, of the specified size. Will never return null. The array must be destroyed using MR_AABBTreeWideLeafTri_DestroyArray(). Use MR_AABBTreeWideLeafTri_OffsetMutablePtr() and MR_AABBTreeWideLeafTri_OffsetPtr() to access the array elements.
| MRC_API void MR_AABBTreeWideLeafTri_Destroy | ( | const MR_AABBTreeWideLeafTri * | _this | ) |
Destroys a heap-allocated instance of MR_AABBTreeWideLeafTri. Does nothing if the pointer is null.
| MRC_API void MR_AABBTreeWideLeafTri_DestroyArray | ( | const MR_AABBTreeWideLeafTri * | _this | ) |
Destroys a heap-allocated array of MR_AABBTreeWideLeafTri. Does nothing if the pointer is null.
| MRC_API const MR_FaceId * MR_AABBTreeWideLeafTri_Get_face | ( | const MR_AABBTreeWideLeafTri * | _this | ) |
Returns a pointer to a member variable of class MR::AABBTreeWideLeafTri named face. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.
| MRC_API const MR_std_array_MR_VertId_3 * MR_AABBTreeWideLeafTri_Get_verts | ( | const MR_AABBTreeWideLeafTri * | _this | ) |
in the order of mesh.topology.getTriVerts( face ) Modifies a member variable of class MR::AABBTreeWideLeafTri named verts. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element verts. When this function is called, this object will drop object references it held previously in verts.
| MRC_API MR_FaceId * MR_AABBTreeWideLeafTri_GetMutable_face | ( | MR_AABBTreeWideLeafTri * | _this | ) |
Returns a mutable pointer to a member variable of class MR::AABBTreeWideLeafTri named face. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value. in the order of mesh.topology.getTriVerts( face ) Returns a pointer to a member variable of class MR::AABBTreeWideLeafTri named verts. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.
| MRC_API MR_std_array_MR_VertId_3 * MR_AABBTreeWideLeafTri_GetMutable_verts | ( | MR_AABBTreeWideLeafTri * | _this | ) |
| MRC_API MR_AABBTreeWideLeafTri * MR_AABBTreeWideLeafTri_OffsetMutablePtr | ( | MR_AABBTreeWideLeafTri * | ptr, |
| ptrdiff_t | i ) |
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.
| MRC_API const MR_AABBTreeWideLeafTri * MR_AABBTreeWideLeafTri_OffsetPtr | ( | const MR_AABBTreeWideLeafTri * | ptr, |
| ptrdiff_t | i ) |
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.
| MRC_API void MR_AABBTreeWideLeafTri_Set_face | ( | MR_AABBTreeWideLeafTri * | _this, |
| MR_FaceId | value ) |
Modifies a member variable of class MR::AABBTreeWideLeafTri named face. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element face. When this function is called, this object will drop object references it held previously in face.
| MRC_API void MR_AABBTreeWideLeafTri_Set_verts | ( | MR_AABBTreeWideLeafTri * | _this, |
| MR_std_array_MR_VertId_3 | value ) |
in the order of mesh.topology.getTriVerts( face ) Returns a mutable pointer to a member variable of class MR::AABBTreeWideLeafTri named verts. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.
| MRC_API MR_AABBTreeWideNode * MR_AABBTreeWideNode_AssignFromAnother | ( | MR_AABBTreeWideNode * | _this, |
| const MR_AABBTreeWideNode * | _other ) |
Generated from method MR::AABBTreeWideNode::operator=. Parameter _this can not be null. It is a single object. Parameter _other can not be null. It is a single object. The reference to things referred to by the parameter _other (if any) might be preserved in this object. The returned pointer will never be null. It is non-owning, do NOT destroy it. When this function is called, this object will drop any object references it held previously.
| MRC_API MR_AABBTreeWideNode * MR_AABBTreeWideNode_ConstructFrom | ( | MR_Box3f | box, |
| int | first, | ||
| int | count ) |
Constructs MR::AABBTreeWideNode elementwise. The reference to the parameter box might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_AABBTreeWideNode_Destroy() to free it when you're done using it. When this function is called, this object will drop any object references it held previously.
| MRC_API MR_AABBTreeWideNode * MR_AABBTreeWideNode_ConstructFromAnother | ( | const MR_AABBTreeWideNode * | _other | ) |
Generated from constructor MR::AABBTreeWideNode::AABBTreeWideNode. Parameter _other can not be null. It is a single object. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_AABBTreeWideNode_Destroy() to free it when you're done using it.
| MRC_API MR_AABBTreeWideNode * MR_AABBTreeWideNode_DefaultConstruct | ( | void | ) |
Constructs an empty (default-constructed) instance. Never returns null. Returns an instance allocated on the heap! Must call MR_AABBTreeWideNode_Destroy() to free it when you're done using it.
| MRC_API MR_AABBTreeWideNode * MR_AABBTreeWideNode_DefaultConstructArray | ( | size_t | num_elems | ) |
Constructs an array of empty (default-constructed) instances, of the specified size. Will never return null. The array must be destroyed using MR_AABBTreeWideNode_DestroyArray(). Use MR_AABBTreeWideNode_OffsetMutablePtr() and MR_AABBTreeWideNode_OffsetPtr() to access the array elements.
| MRC_API void MR_AABBTreeWideNode_Destroy | ( | const MR_AABBTreeWideNode * | _this | ) |
Destroys a heap-allocated instance of MR_AABBTreeWideNode. Does nothing if the pointer is null.
| MRC_API void MR_AABBTreeWideNode_DestroyArray | ( | const MR_AABBTreeWideNode * | _this | ) |
Destroys a heap-allocated array of MR_AABBTreeWideNode. Does nothing if the pointer is null.
| MRC_API const MR_Box3f * MR_AABBTreeWideNode_Get_box | ( | const MR_AABBTreeWideNode * | _this | ) |
bounding box of whole subtree Modifies a member variable of class MR::AABBTreeWideNode named box. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element box. When this function is called, this object will drop object references it held previously in box.
| MRC_API const int * MR_AABBTreeWideNode_Get_count | ( | const MR_AABBTreeWideNode * | _this | ) |
the number of children, or for a leaf, minus the number of its triangles Modifies a member variable of class MR::AABBTreeWideNode named count. Parameter _this can not be null. It is a single object. When this function is called, this object will drop object references it held previously in count.
| MRC_API const int * MR_AABBTreeWideNode_Get_first | ( | const MR_AABBTreeWideNode * | _this | ) |
the first child node, or for a leaf, the first of its triangles in leafTris() Modifies a member variable of class MR::AABBTreeWideNode named first. Parameter _this can not be null. It is a single object. When this function is called, this object will drop object references it held previously in first.
| MRC_API MR_Box3f * MR_AABBTreeWideNode_GetMutable_box | ( | MR_AABBTreeWideNode * | _this | ) |
the first child node, or for a leaf, the first of its triangles in leafTris() Returns a pointer to a member variable of class MR::AABBTreeWideNode named first. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.
| MRC_API int * MR_AABBTreeWideNode_GetMutable_count | ( | MR_AABBTreeWideNode * | _this | ) |
| MRC_API int * MR_AABBTreeWideNode_GetMutable_first | ( | MR_AABBTreeWideNode * | _this | ) |
the number of children, or for a leaf, minus the number of its triangles Returns a pointer to a member variable of class MR::AABBTreeWideNode named count. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.
| MRC_API bool MR_AABBTreeWideNode_leaf | ( | const MR_AABBTreeWideNode * | _this | ) |
Generated from method MR::AABBTreeWideNode::leaf. Parameter _this can not be null. It is a single object.
| MRC_API int MR_AABBTreeWideNode_numLeafTris | ( | const MR_AABBTreeWideNode * | _this | ) |
Generated from method MR::AABBTreeWideNode::numLeafTris. Parameter _this can not be null. It is a single object.
| MRC_API MR_AABBTreeWideNode * MR_AABBTreeWideNode_OffsetMutablePtr | ( | MR_AABBTreeWideNode * | ptr, |
| ptrdiff_t | i ) |
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.
| MRC_API const MR_AABBTreeWideNode * MR_AABBTreeWideNode_OffsetPtr | ( | const MR_AABBTreeWideNode * | ptr, |
| ptrdiff_t | i ) |
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.
| MRC_API void MR_AABBTreeWideNode_Set_box | ( | MR_AABBTreeWideNode * | _this, |
| MR_Box3f | value ) |
bounding box of whole subtree Returns a mutable pointer to a member variable of class MR::AABBTreeWideNode named box. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.
| MRC_API void MR_AABBTreeWideNode_Set_count | ( | MR_AABBTreeWideNode * | _this, |
| int | value ) |
the number of children, or for a leaf, minus the number of its triangles Returns a mutable pointer to a member variable of class MR::AABBTreeWideNode named count. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.
| MRC_API void MR_AABBTreeWideNode_Set_first | ( | MR_AABBTreeWideNode * | _this, |
| int | value ) |
the first child node, or for a leaf, the first of its triangles in leafTris() Returns a mutable pointer to a member variable of class MR::AABBTreeWideNode named first. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.