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
19typedef struct MR_MeshPart MR_MeshPart;
20
25
30
31// nullptr here means whole mesh
36
37// nullptr here means whole mesh
41
42// nullptr here means whole mesh
47
48// Make this assignable. A better idea would be to rewrite the class to not use references, but doing this instead preserves API compatibility.
53
55MRC_API const MR_MeshPart *MR_MeshPart_OffsetPtr(const MR_MeshPart *ptr, ptrdiff_t i);
56
59
65
68
71
77
82
83// nullptr here means whole mesh
88
89// nullptr here means whole mesh
93
94// nullptr here means whole mesh
99
100// Make this assignable. A better idea would be to rewrite the class to not use references, but doing this instead preserves API compatibility.
105
108
111
117
120
123
129
130#ifdef __cplusplus
131} // extern "C"
132#endif
struct MR_VertBitSet MR_VertBitSet
Definition MRAABBTree.h:22
struct MR_FaceBitSet MR_FaceBitSet
Definition MRAABBTree.h:17
struct MR_MeshPart MR_MeshPart
Definition MRAABBTree.h:19
struct MR_Mesh MR_Mesh
Definition MRCtm.h:16
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 MR_MeshPart * MR_MeshPart_AssignFromAnother(MR_MeshPart *_this, const MR_MeshPart *other)
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 MR_MeshVertPart * MR_MeshVertPart_AssignFromAnother(MR_MeshVertPart *_this, const MR_MeshVertPart *other)
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 MR_MeshVertPart * MR_MeshVertPart_ConstructFromAnother(const MR_MeshVertPart *other)
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 MR_MeshPart * MR_MeshPart_ConstructFromAnother(const MR_MeshPart *other)
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