MeshLib C Docs
Loading...
Searching...
No Matches
MRAABBTree.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMisc/common.h>
4#include <MRCMisc/exports.h>
5
6#include <stddef.h>
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
13typedef struct MR_Mesh MR_Mesh; // Defined in `#include <MRCMesh/MRMesh.h>`.
14typedef struct MR_MeshPart MR_MeshPart; // Defined in `#include <MRCMesh/MRMeshPart.h>`.
15typedef struct MR_VertBitSet MR_VertBitSet; // Defined in `#include <MRCMesh/MRBitSet.h>`.
16
17
23typedef struct MR_AABBTree MR_AABBTree;
24
28
33
35MRC_API const MR_AABBTree *MR_AABBTree_OffsetPtr(const MR_AABBTree *ptr, ptrdiff_t i);
36
39
43
46
50
56
59
62
67
76MRC_API void MR_AABBTree_refit(MR_AABBTree *_this, const MR_Mesh *mesh, const MR_VertBitSet *changedVerts);
77
78#ifdef __cplusplus
79} // extern "C"
80#endif
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...
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 MR_AABBTreeBase_MR_AABBTreeTraits_MR_FaceTag_MR_Box3f * MR_AABBTree_MutableUpcastTo_MR_AABBTreeBase_MR_AABBTreeTraits_MR_FaceTag_MR_Box3f(MR_AABBTree *object)
Upcasts an instance of MR::AABBTree to its base class MR::AABBTreeBase<MR::AABBTreeTraits<MR::FaceTag...
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...
MRC_API MR_AABBTree * MR_AABBTree_DefaultConstruct(void)
MRC_API MR_AABBTree * MR_AABBTree_Construct(const MR_MeshPart *mp)
struct MR_VertBitSet MR_VertBitSet
Definition MRAABBTree.h:15
MRC_API const MR_AABBTreeBase_MR_AABBTreeTraits_MR_FaceTag_MR_Box3f * MR_AABBTree_UpcastTo_MR_AABBTreeBase_MR_AABBTreeTraits_MR_FaceTag_MR_Box3f(const MR_AABBTree *object)
struct MR_AABBTree MR_AABBTree
Definition MRAABBTree.h:23
MRC_API MR_AABBTree * MR_AABBTree_ConstructFromAnother(MR_PassBy _other_pass_by, MR_AABBTree *_other)
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_refit(MR_AABBTree *_this, const MR_Mesh *mesh, const MR_VertBitSet *changedVerts)
MRC_API MR_AABBTree * MR_AABBTree_AssignFromAnother(MR_AABBTree *_this, MR_PassBy _other_pass_by, MR_AABBTree *_other)
struct MR_AABBTreeBase_MR_AABBTreeTraits_MR_FaceTag_MR_Box3f MR_AABBTreeBase_MR_AABBTreeTraits_MR_FaceTag_MR_Box3f
Definition MRAABBTree.h:12
MRC_API MR_AABBTree * MR_AABBTree_DefaultConstructArray(size_t num_elems)
struct MR_MeshPart MR_MeshPart
Definition MRAABBTree.h:14
struct MR_Mesh MR_Mesh
Definition MRCtm.h:13
MR_PassBy
Definition common.h:19
#define MRC_API
Definition exports.h:11