MeshLib C Docs
Loading...
Searching...
No Matches
MRAABBTreePolyline.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMesh/MRBox.h>
4#include <MRCMesh/MRId.h>
5#include <MRCMisc/common.h>
6#include <MRCMisc/exports.h>
7
8#include <stdbool.h>
9#include <stddef.h>
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
21typedef struct MR_Mesh MR_Mesh; // Defined in `#include <MRCMesh/MRMesh.h>`.
22typedef struct MR_NodeBitSet MR_NodeBitSet; // Defined in `#include <MRCMesh/MRBitSet.h>`.
23typedef struct MR_Polyline2 MR_Polyline2; // Defined in `#include <MRCMesh/MRPolyline.h>`.
24typedef struct MR_Polyline3 MR_Polyline3; // Defined in `#include <MRCMesh/MRPolyline.h>`.
25typedef struct MR_UndirectedEdgeBMap MR_UndirectedEdgeBMap; // Defined in `#include <MRCMesh/MRBuffer.h>`.
26typedef struct MR_UndirectedEdgeBitSet MR_UndirectedEdgeBitSet; // Defined in `#include <MRCMesh/MRBitSet.h>`.
31typedef struct MR_std_vector_MR_NodeId MR_std_vector_MR_NodeId; // Defined in `#include <MRCMisc/std_vector_MR_NodeId.h>`.
32
33
41
49
53
57
61
66
70
74
79
83
89
94
99
106
109
112
120
126
132
138
142
148
153
159
164
170
175
180
185
191
197
204
211
218
222
227
231
235
240
244
250
255
260
267
276
279
282
290
296
302
308
312
318
323
329
334
340
345
350
355
361
367
374
381
388
392
397
401
405
411
414
417
425
429
434
438
442
448
451
454
462
463#ifdef __cplusplus
464} // extern "C"
465#endif
struct MR_AABBTreeNode_MR_AABBTreeTraits_MR_UndirectedEdgeTag_MR_Box2f MR_AABBTreeNode_MR_AABBTreeTraits_MR_UndirectedEdgeTag_MR_Box2f
Definition MRAABBTreeBase.h:15
struct MR_AABBTreeNode_MR_AABBTreeTraits_MR_UndirectedEdgeTag_MR_Box3f MR_AABBTreeNode_MR_AABBTreeTraits_MR_UndirectedEdgeTag_MR_Box3f
Definition MRAABBTreeBase.h:16
struct MR_AABBTreeBase_MR_AABBTreeTraits_MR_UndirectedEdgeTag_MR_Box3f MR_AABBTreeBase_MR_AABBTreeTraits_MR_UndirectedEdgeTag_MR_Box3f
Definition MRAABBTreeBase.h:57
struct MR_BoxedLeaf_MR_AABBTreeTraits_MR_UndirectedEdgeTag_MR_Box2f MR_BoxedLeaf_MR_AABBTreeTraits_MR_UndirectedEdgeTag_MR_Box2f
Definition MRAABBTreeBase.h:19
struct MR_Vector_MR_BoxedLeaf_MR_AABBTreeTraits_MR_UndirectedEdgeTag_MR_Box3f MR_Vector_MR_BoxedLeaf_MR_AABBTreeTraits_MR_UndirectedEdgeTag_MR_Box3f
Definition MRAABBTreeBase.h:30
struct MR_Vector_MR_AABBTreeNode_MR_AABBTreeTraits_MR_UndirectedEdgeTag_MR_Box3f_MR_NodeId MR_Vector_MR_AABBTreeNode_MR_AABBTreeTraits_MR_UndirectedEdgeTag_MR_Box3f_MR_NodeId
Definition MRAABBTreeBase.h:27
struct MR_Vector_MR_BoxedLeaf_MR_AABBTreeTraits_MR_UndirectedEdgeTag_MR_Box2f MR_Vector_MR_BoxedLeaf_MR_AABBTreeTraits_MR_UndirectedEdgeTag_MR_Box2f
Definition MRAABBTreeBase.h:29
struct MR_UndirectedEdgeBMap MR_UndirectedEdgeBMap
Definition MRAABBTreeBase.h:24
struct MR_Vector_MR_AABBTreeNode_MR_AABBTreeTraits_MR_UndirectedEdgeTag_MR_Box2f_MR_NodeId MR_Vector_MR_AABBTreeNode_MR_AABBTreeTraits_MR_UndirectedEdgeTag_MR_Box2f_MR_NodeId
Definition MRAABBTreeBase.h:26
struct MR_UndirectedEdgeBitSet MR_UndirectedEdgeBitSet
Definition MRAABBTreeBase.h:25
struct MR_AABBTreeBase_MR_AABBTreeTraits_MR_UndirectedEdgeTag_MR_Box2f MR_AABBTreeBase_MR_AABBTreeTraits_MR_UndirectedEdgeTag_MR_Box2f
Definition MRAABBTreeBase.h:49
struct MR_BoxedLeaf_MR_AABBTreeTraits_MR_UndirectedEdgeTag_MR_Box3f MR_BoxedLeaf_MR_AABBTreeTraits_MR_UndirectedEdgeTag_MR_Box3f
Definition MRAABBTreeBase.h:20
MRC_API const MR_AABBTreeNode_MR_AABBTreeTraits_MR_UndirectedEdgeTag_MR_Box2f * MR_AABBTreePolyline2_index(const MR_AABBTreePolyline2 *_this, MR_NodeId nid)
MRC_API MR_UndirectedEdgeId MR_AABBTreePolyline3_leafId(const MR_AABBTreePolyline3 *_this, MR_NodeId n)
MRC_API const MR_AABBTreeBase_MR_AABBTreeTraits_MR_UndirectedEdgeTag_MR_Box2f * MR_AABBTreePolyline2_UpcastTo_MR_AABBTreeBase_MR_AABBTreeTraits_MR_UndirectedEdgeTag_MR_Box2f(const MR_AABBTreePolyline2 *object)
MRC_API MR_AABBTreePolyline2 * MR_AABBTreePolyline2_DefaultConstructArray(size_t num_elems)
MRC_API MR_PolylineTraits_MR_Vector2f * MR_PolylineTraits_MR_Vector2f_ConstructFromAnother(const MR_PolylineTraits_MR_Vector2f *_other)
MRC_API MR_PolylineTraits_MR_Vector2f * MR_PolylineTraits_MR_Vector2f_AssignFromAnother(MR_PolylineTraits_MR_Vector2f *_this, const MR_PolylineTraits_MR_Vector2f *_other)
MRC_API size_t MR_AABBTreePolyline3_heapBytes(const MR_AABBTreePolyline3 *_this)
MRC_API MR_UndirectedEdgeId MR_AABBTreePolyline2_leafId(const MR_AABBTreePolyline2 *_this, MR_NodeId n)
MRC_API MR_AABBTreePolyline3 * MR_AABBTreePolyline3_Construct_1(const MR_Polyline3 *polyline)
MRC_API MR_UndirectedEdgeBitSet * MR_AABBTreePolyline3_getSubtreeLeaves(const MR_AABBTreePolyline3 *_this, MR_NodeId subtreeRoot)
MRC_API MR_AABBTreePolyline2 * MR_AABBTreePolyline2_DefaultConstruct(void)
MRC_API size_t MR_AABBTreePolyline3_numLeaves(const MR_AABBTreePolyline3 *_this)
MRC_API MR_std_vector_MR_NodeId * MR_AABBTreePolyline2_getSubtrees(const MR_AABBTreePolyline2 *_this, int minNum)
MRC_API void MR_PolylineTraits_MR_Vector3f_DestroyArray(const MR_PolylineTraits_MR_Vector3f *_this)
Destroys a heap-allocated array of MR_PolylineTraits_MR_Vector3f. Does nothing if the pointer is null...
MRC_API void MR_AABBTreePolyline3_getLeafOrder(const MR_AABBTreePolyline3 *_this, MR_UndirectedEdgeBMap *leafMap)
MRC_API MR_AABBTreeBase_MR_AABBTreeTraits_MR_UndirectedEdgeTag_MR_Box3f * MR_AABBTreePolyline3_MutableUpcastTo_MR_AABBTreeBase_MR_AABBTreeTraits_MR_UndirectedEdgeTag_MR_Box3f(MR_AABBTreePolyline3 *object)
MRC_API bool MR_AABBTreePolyline3_isLeaf(MR_NodeId n)
MRC_API void MR_AABBTreePolyline3_getLeafOrderAndReset(MR_AABBTreePolyline3 *_this, MR_UndirectedEdgeBMap *leafMap)
MRC_API const MR_AABBTreeNode_MR_AABBTreeTraits_MR_UndirectedEdgeTag_MR_Box3f * MR_AABBTreePolyline3_index(const MR_AABBTreePolyline3 *_this, MR_NodeId nid)
MRC_API MR_PolylineTraits_MR_Vector3f * MR_PolylineTraits_MR_Vector3f_AssignFromAnother(MR_PolylineTraits_MR_Vector3f *_this, const MR_PolylineTraits_MR_Vector3f *_other)
MRC_API const MR_BoxedLeaf_MR_AABBTreeTraits_MR_UndirectedEdgeTag_MR_Box2f * MR_AABBTreePolyline2_leaf(const MR_AABBTreePolyline2 *_this, MR_NodeId n)
MRC_API const MR_Box3f * MR_AABBTreePolyline3_box(const MR_AABBTreePolyline3 *_this, MR_NodeId n)
MRC_API MR_AABBTreePolyline3 * MR_AABBTreePolyline3_MutableStaticDowncastFrom_MR_AABBTreeBase_MR_AABBTreeTraits_MR_UndirectedEdgeTag_MR_Box3f(MR_AABBTreeBase_MR_AABBTreeTraits_MR_UndirectedEdgeTag_MR_Box3f *object)
MRC_API MR_AABBTreePolyline3 * MR_AABBTreePolyline3_Construct_2(const MR_Mesh *mesh, const MR_UndirectedEdgeBitSet *edgeSet)
MRC_API MR_PolylineTraits_MR_Vector2f * MR_PolylineTraits_MR_Vector2f_DefaultConstructArray(size_t num_elems)
MRC_API MR_AABBTreePolyline3 * MR_AABBTreePolyline3_AssignFromAnother(MR_AABBTreePolyline3 *_this, MR_PassBy _other_pass_by, MR_AABBTreePolyline3 *_other)
MRC_API void MR_AABBTreePolyline2_getLeafOrderAndReset(MR_AABBTreePolyline2 *_this, MR_UndirectedEdgeBMap *leafMap)
MRC_API MR_PolylineTraits_MR_Vector3f * MR_PolylineTraits_MR_Vector3f_DefaultConstruct(void)
MRC_API MR_std_vector_MR_NodeId * MR_AABBTreePolyline3_getSubtrees(const MR_AABBTreePolyline3 *_this, int minNum)
MRC_API MR_PolylineTraits_MR_Vector2f * MR_PolylineTraits_MR_Vector2f_OffsetMutablePtr(MR_PolylineTraits_MR_Vector2f *ptr, ptrdiff_t i)
struct MR_AABBTreePolyline2 MR_AABBTreePolyline2
Definition MRAABBTreePolyline.h:40
MRC_API void MR_PolylineTraits_MR_Vector2f_Destroy(const MR_PolylineTraits_MR_Vector2f *_this)
Destroys a heap-allocated instance of MR_PolylineTraits_MR_Vector2f. Does nothing if the pointer is n...
struct MR_Polyline3 MR_Polyline3
Definition MRAABBTreePolyline.h:24
MRC_API MR_PolylineTraits_MR_Vector3f * MR_PolylineTraits_MR_Vector3f_OffsetMutablePtr(MR_PolylineTraits_MR_Vector3f *ptr, ptrdiff_t i)
MRC_API const MR_PolylineTraits_MR_Vector2f * MR_PolylineTraits_MR_Vector2f_OffsetPtr(const MR_PolylineTraits_MR_Vector2f *ptr, ptrdiff_t i)
MRC_API MR_PolylineTraits_MR_Vector3f * MR_PolylineTraits_MR_Vector3f_ConstructFromAnother(const MR_PolylineTraits_MR_Vector3f *_other)
MRC_API MR_AABBTreePolyline2 * MR_AABBTreePolyline2_AssignFromAnother(MR_AABBTreePolyline2 *_this, MR_PassBy _other_pass_by, MR_AABBTreePolyline2 *_other)
MRC_API MR_NodeId MR_AABBTreePolyline3_rootNodeId(const MR_AABBTreePolyline3 *_this)
MRC_API void MR_AABBTreePolyline2_DestroyArray(const MR_AABBTreePolyline2 *_this)
Destroys a heap-allocated array of MR_AABBTreePolyline2. Does nothing if the pointer is null.
MRC_API MR_AABBTreePolyline3 * MR_AABBTreePolyline3_OffsetMutablePtr(MR_AABBTreePolyline3 *ptr, ptrdiff_t i)
MRC_API void MR_AABBTreePolyline3_DestroyArray(const MR_AABBTreePolyline3 *_this)
Destroys a heap-allocated array of MR_AABBTreePolyline3. Does nothing if the pointer is null.
MRC_API const MR_Box2f * MR_AABBTreePolyline2_box(const MR_AABBTreePolyline2 *_this, MR_NodeId n)
MRC_API const MR_BoxedLeaf_MR_AABBTreeTraits_MR_UndirectedEdgeTag_MR_Box3f * MR_AABBTreePolyline3_leaf(const MR_AABBTreePolyline3 *_this, MR_NodeId n)
MRC_API const MR_Vector_MR_AABBTreeNode_MR_AABBTreeTraits_MR_UndirectedEdgeTag_MR_Box3f_MR_NodeId * MR_AABBTreePolyline3_nodes(const MR_AABBTreePolyline3 *_this)
MRC_API MR_AABBTreePolyline2 * MR_AABBTreePolyline2_OffsetMutablePtr(MR_AABBTreePolyline2 *ptr, ptrdiff_t i)
MRC_API bool MR_AABBTreePolyline2_isLeaf(MR_NodeId n)
MRC_API bool MR_AABBTreePolyline2_empty(const MR_AABBTreePolyline2 *_this)
MRC_API size_t MR_AABBTreePolyline2_heapBytes(const MR_AABBTreePolyline2 *_this)
MRC_API MR_UndirectedEdgeBitSet * MR_AABBTreePolyline2_getSubtreeLeaves(const MR_AABBTreePolyline2 *_this, MR_NodeId subtreeRoot)
MRC_API MR_Box2f MR_AABBTreePolyline2_getBoundingBox(const MR_AABBTreePolyline2 *_this)
MRC_API void MR_PolylineTraits_MR_Vector2f_DestroyArray(const MR_PolylineTraits_MR_Vector2f *_this)
Destroys a heap-allocated array of MR_PolylineTraits_MR_Vector2f. Does nothing if the pointer is null...
MRC_API size_t MR_AABBTreePolyline2_numLeaves(const MR_AABBTreePolyline2 *_this)
MRC_API void MR_AABBTreePolyline2_Destroy(const MR_AABBTreePolyline2 *_this)
Destroys a heap-allocated instance of MR_AABBTreePolyline2. Does nothing if the pointer is null.
MRC_API void MR_PolylineTraits_MR_Vector3f_Destroy(const MR_PolylineTraits_MR_Vector3f *_this)
Destroys a heap-allocated instance of MR_PolylineTraits_MR_Vector3f. Does nothing if the pointer is n...
MRC_API void MR_AABBTreePolyline2_getLeafOrder(const MR_AABBTreePolyline2 *_this, MR_UndirectedEdgeBMap *leafMap)
MRC_API const MR_Vector_MR_AABBTreeNode_MR_AABBTreeTraits_MR_UndirectedEdgeTag_MR_Box2f_MR_NodeId * MR_AABBTreePolyline2_nodes(const MR_AABBTreePolyline2 *_this)
MRC_API MR_NodeId MR_AABBTreePolyline2_rootNodeId(const MR_AABBTreePolyline2 *_this)
MRC_API MR_PolylineTraits_MR_Vector2f * MR_PolylineTraits_MR_Vector2f_DefaultConstruct(void)
MRC_API const MR_AABBTreePolyline3 * MR_AABBTreePolyline3_StaticDowncastFrom_MR_AABBTreeBase_MR_AABBTreeTraits_MR_UndirectedEdgeTag_MR_Box3f(const MR_AABBTreeBase_MR_AABBTreeTraits_MR_UndirectedEdgeTag_MR_Box3f *object)
MRC_API MR_PolylineTraits_MR_Vector3f * MR_PolylineTraits_MR_Vector3f_DefaultConstructArray(size_t num_elems)
MRC_API const MR_Vector_MR_BoxedLeaf_MR_AABBTreeTraits_MR_UndirectedEdgeTag_MR_Box3f * MR_AABBTreePolyline3_leaves(const MR_AABBTreePolyline3 *_this)
MRC_API const MR_AABBTreePolyline2 * MR_AABBTreePolyline2_StaticDowncastFrom_MR_AABBTreeBase_MR_AABBTreeTraits_MR_UndirectedEdgeTag_MR_Box2f(const MR_AABBTreeBase_MR_AABBTreeTraits_MR_UndirectedEdgeTag_MR_Box2f *object)
struct MR_AABBTreePolyline3 MR_AABBTreePolyline3
Definition MRAABBTreePolyline.h:48
MRC_API const MR_AABBTreePolyline2 * MR_AABBTreePolyline2_OffsetPtr(const MR_AABBTreePolyline2 *ptr, ptrdiff_t i)
struct MR_PolylineTraits_MR_Vector3f MR_PolylineTraits_MR_Vector3f
Definition MRAABBTreePolyline.h:56
struct MR_Polyline2 MR_Polyline2
Definition MRAABBTreePolyline.h:23
MRC_API MR_AABBTreePolyline2 * MR_AABBTreePolyline2_MutableStaticDowncastFrom_MR_AABBTreeBase_MR_AABBTreeTraits_MR_UndirectedEdgeTag_MR_Box2f(MR_AABBTreeBase_MR_AABBTreeTraits_MR_UndirectedEdgeTag_MR_Box2f *object)
MRC_API const MR_Vector_MR_BoxedLeaf_MR_AABBTreeTraits_MR_UndirectedEdgeTag_MR_Box2f * MR_AABBTreePolyline2_leaves(const MR_AABBTreePolyline2 *_this)
MRC_API const MR_AABBTreeBase_MR_AABBTreeTraits_MR_UndirectedEdgeTag_MR_Box3f * MR_AABBTreePolyline3_UpcastTo_MR_AABBTreeBase_MR_AABBTreeTraits_MR_UndirectedEdgeTag_MR_Box3f(const MR_AABBTreePolyline3 *object)
MRC_API MR_NodeBitSet * MR_AABBTreePolyline3_getNodesFromLeaves(const MR_AABBTreePolyline3 *_this, const MR_UndirectedEdgeBitSet *leaves)
MRC_API void MR_AABBTreePolyline3_Destroy(const MR_AABBTreePolyline3 *_this)
Destroys a heap-allocated instance of MR_AABBTreePolyline3. Does nothing if the pointer is null.
MRC_API MR_AABBTreePolyline3 * MR_AABBTreePolyline3_ConstructFromAnother(MR_PassBy _other_pass_by, MR_AABBTreePolyline3 *_other)
MRC_API MR_NodeBitSet * MR_AABBTreePolyline2_getNodesFromLeaves(const MR_AABBTreePolyline2 *_this, const MR_UndirectedEdgeBitSet *leaves)
MRC_API MR_AABBTreeBase_MR_AABBTreeTraits_MR_UndirectedEdgeTag_MR_Box2f * MR_AABBTreePolyline2_MutableUpcastTo_MR_AABBTreeBase_MR_AABBTreeTraits_MR_UndirectedEdgeTag_MR_Box2f(MR_AABBTreePolyline2 *object)
MRC_API bool MR_AABBTreePolyline3_empty(const MR_AABBTreePolyline3 *_this)
MRC_API const MR_AABBTreePolyline3 * MR_AABBTreePolyline3_OffsetPtr(const MR_AABBTreePolyline3 *ptr, ptrdiff_t i)
MRC_API MR_AABBTreePolyline2 * MR_AABBTreePolyline2_Construct(const MR_Polyline2 *polyline)
MRC_API MR_Box3f MR_AABBTreePolyline3_getBoundingBox(const MR_AABBTreePolyline3 *_this)
struct MR_PolylineTraits_MR_Vector2f MR_PolylineTraits_MR_Vector2f
Definition MRAABBTreePolyline.h:52
MRC_API MR_AABBTreePolyline2 * MR_AABBTreePolyline2_ConstructFromAnother(MR_PassBy _other_pass_by, MR_AABBTreePolyline2 *_other)
MRC_API const MR_PolylineTraits_MR_Vector3f * MR_PolylineTraits_MR_Vector3f_OffsetPtr(const MR_PolylineTraits_MR_Vector3f *ptr, ptrdiff_t i)
MRC_API MR_AABBTreePolyline3 * MR_AABBTreePolyline3_DefaultConstructArray(size_t num_elems)
MRC_API MR_AABBTreePolyline3 * MR_AABBTreePolyline3_DefaultConstruct(void)
struct MR_std_vector_MR_NodeId MR_std_vector_MR_NodeId
Definition MRAABBTree.h:28
struct MR_NodeBitSet MR_NodeBitSet
Definition MRAABBTree.h:20
struct MR_Mesh MR_Mesh
Definition MRCtm.h:17
MR_PassBy
Definition common.h:13
#define MRC_API
Definition include/MRCMisc/exports.h:11
Definition MRBox.h:75
Definition MRBox.h:107
Definition MRId.h:72
Definition MRId.h:21