MeshLib C Docs
Loading...
Searching...
No Matches
MRMeshPart.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMisc/exports.h>
4
5#include <stddef.h>
6
7#ifdef __cplusplus
8extern "C" {
9#endif
10
11typedef struct MR_FaceBitSet MR_FaceBitSet; // Defined in `#include <MRCMesh/MRBitSet.h>`.
12typedef struct MR_Mesh MR_Mesh; // Defined in `#include <MRCMesh/MRMesh.h>`.
13typedef struct MR_VertBitSet MR_VertBitSet; // Defined in `#include <MRCMesh/MRBitSet.h>`.
14
15
18typedef struct MR_MeshPart MR_MeshPart;
19
23
28
29// nullptr here means whole mesh
34
35// nullptr here means whole mesh
39
40// nullptr here means whole mesh
45
51
53MRC_API const MR_MeshPart *MR_MeshPart_OffsetPtr(const MR_MeshPart *ptr, ptrdiff_t i);
54
57
60
63
68
69// nullptr here means whole mesh
74
75// nullptr here means whole mesh
79
80// nullptr here means whole mesh
85
91
94
97
100
103
104#ifdef __cplusplus
105} // extern "C"
106#endif
struct MR_FaceBitSet MR_FaceBitSet
Definition MRAABBTreeBase.h:25
struct MR_VertBitSet MR_VertBitSet
Definition MRAABBTree.h:15
struct MR_MeshPart MR_MeshPart
Definition MRAABBTree.h:14
struct MR_Mesh MR_Mesh
Definition MRCtm.h:13
struct MR_MeshVertPart MR_MeshVertPart
Definition MRDirMax.h:14
MRC_API MR_MeshPart * MR_MeshPart_OffsetMutablePtr(MR_MeshPart *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_MeshVertPart_DestroyArray(const MR_MeshVertPart *_this)
Destroys a heap-allocated array of MR_MeshVertPart. Does nothing if the pointer is null.
MRC_API const MR_VertBitSet *const * MR_MeshVertPart_Get_region(const MR_MeshVertPart *_this)
MRC_API const MR_FaceBitSet ** MR_MeshPart_GetMutable_region(MR_MeshPart *_this)
MRC_API void MR_MeshPart_DestroyArray(const MR_MeshPart *_this)
Destroys a heap-allocated array of MR_MeshPart. Does nothing if the pointer is null.
MRC_API const MR_MeshVertPart * MR_MeshVertPart_OffsetPtr(const MR_MeshVertPart *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_MeshVertPart_Set_region(MR_MeshVertPart *_this, const MR_VertBitSet *value)
MRC_API void MR_MeshVertPart_Destroy(const MR_MeshVertPart *_this)
Destroys a heap-allocated instance of MR_MeshVertPart. Does nothing if the pointer is null.
MRC_API MR_MeshVertPart * MR_MeshVertPart_Construct(const MR_Mesh *m, const MR_VertBitSet *bs)
MRC_API const MR_Mesh * MR_MeshVertPart_Get_mesh(const MR_MeshVertPart *_this)
MRC_API const MR_MeshPart * MR_MeshPart_OffsetPtr(const MR_MeshPart *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 const MR_Mesh * MR_MeshPart_Get_mesh(const MR_MeshPart *_this)
MRC_API const MR_FaceBitSet *const * MR_MeshPart_Get_region(const MR_MeshPart *_this)
MRC_API void MR_MeshPart_Destroy(const MR_MeshPart *_this)
Destroys a heap-allocated instance of MR_MeshPart. Does nothing if the pointer is null.
MRC_API const MR_VertBitSet ** MR_MeshVertPart_GetMutable_region(MR_MeshVertPart *_this)
MRC_API MR_MeshVertPart * MR_MeshVertPart_OffsetMutablePtr(MR_MeshVertPart *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_MeshPart_Set_region(MR_MeshPart *_this, const MR_FaceBitSet *value)
MRC_API MR_MeshPart * MR_MeshPart_Construct(const MR_Mesh *m, const MR_FaceBitSet *bs)
#define MRC_API
Definition exports.h:11