MeshLib C Docs
Loading...
Searching...
No Matches
MRMeshPart.h File Reference
#include <MRCMisc/exports.h>
#include <stddef.h>

Go to the source code of this file.

Typedefs

typedef struct MR_FaceBitSet MR_FaceBitSet
 
typedef struct MR_Mesh MR_Mesh
 
typedef struct MR_VertBitSet MR_VertBitSet
 
typedef struct MR_MeshPart MR_MeshPart
 
typedef struct MR_MeshVertPart MR_MeshVertPart
 

Functions

MRC_API const MR_MeshMR_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_Set_region (MR_MeshPart *_this, const MR_FaceBitSet *value)
 
MRC_API const MR_FaceBitSet ** MR_MeshPart_GetMutable_region (MR_MeshPart *_this)
 
MRC_API MR_MeshPartMR_MeshPart_Construct (const MR_Mesh *m, const MR_FaceBitSet *bs)
 
MRC_API const MR_MeshPartMR_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 pointer points to an array element.
 
MRC_API MR_MeshPartMR_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 pointer points to an array element.
 
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 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_MeshMR_MeshVertPart_Get_mesh (const MR_MeshVertPart *_this)
 
MRC_API const MR_VertBitSet *const * MR_MeshVertPart_Get_region (const MR_MeshVertPart *_this)
 
MRC_API void MR_MeshVertPart_Set_region (MR_MeshVertPart *_this, const MR_VertBitSet *value)
 
MRC_API const MR_VertBitSet ** MR_MeshVertPart_GetMutable_region (MR_MeshVertPart *_this)
 
MRC_API MR_MeshVertPartMR_MeshVertPart_Construct (const MR_Mesh *m, const MR_VertBitSet *bs)
 
MRC_API const MR_MeshVertPartMR_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 pointer points to an array element.
 
MRC_API MR_MeshVertPartMR_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 pointer points to an array element.
 
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 void MR_MeshVertPart_DestroyArray (const MR_MeshVertPart *_this)
 Destroys a heap-allocated array of MR_MeshVertPart. Does nothing if the pointer is null.
 

Typedef Documentation

◆ MR_FaceBitSet

typedef struct MR_FaceBitSet MR_FaceBitSet

◆ MR_Mesh

typedef struct MR_Mesh MR_Mesh

◆ MR_MeshPart

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.

◆ MR_MeshVertPart

stores reference on whole mesh (if region is nullptr) or on its part (if region pointer is valid) Generated from class MR::MeshVertPart.

◆ MR_VertBitSet

typedef struct MR_VertBitSet MR_VertBitSet

Function Documentation

◆ MR_MeshPart_Construct()

MRC_API MR_MeshPart * MR_MeshPart_Construct ( const MR_Mesh * m,
const MR_FaceBitSet * bs )

Generated from a constructor of class MR::MeshPart. Parameter m can not be null. It is a single object. Parameter bs defaults to a null pointer in C++. Never returns null. Returns an instance allocated on the heap! Must call MR_MeshPart_Destroy() to free it when you're done using it.

◆ MR_MeshPart_Destroy()

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.

◆ MR_MeshPart_DestroyArray()

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.

◆ MR_MeshPart_Get_mesh()

MRC_API const MR_Mesh * MR_MeshPart_Get_mesh ( const MR_MeshPart * _this)

Returns a pointer to a member variable of class MR::MeshPart named mesh. 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.

◆ MR_MeshPart_Get_region()

MRC_API const MR_FaceBitSet *const * MR_MeshPart_Get_region ( const MR_MeshPart * _this)

Returns a pointer to a member variable of class MR::MeshPart named region. 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.

◆ MR_MeshPart_GetMutable_region()

MRC_API const MR_FaceBitSet ** MR_MeshPart_GetMutable_region ( MR_MeshPart * _this)

Returns a mutable pointer to a member variable of class MR::MeshPart named region. 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.

◆ MR_MeshPart_OffsetMutablePtr()

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 pointer points to an array element.

◆ MR_MeshPart_OffsetPtr()

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 pointer points to an array element.

◆ MR_MeshPart_Set_region()

MRC_API void MR_MeshPart_Set_region ( MR_MeshPart * _this,
const MR_FaceBitSet * value )

Modifies a member variable of class MR::MeshPart named region. Parameter _this can not be null. It is a single object.

◆ MR_MeshVertPart_Construct()

MRC_API MR_MeshVertPart * MR_MeshVertPart_Construct ( const MR_Mesh * m,
const MR_VertBitSet * bs )

Generated from a constructor of class MR::MeshVertPart. Parameter m can not be null. It is a single object. Parameter bs defaults to a null pointer in C++. Never returns null. Returns an instance allocated on the heap! Must call MR_MeshVertPart_Destroy() to free it when you're done using it.

◆ MR_MeshVertPart_Destroy()

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.

◆ MR_MeshVertPart_DestroyArray()

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.

◆ MR_MeshVertPart_Get_mesh()

MRC_API const MR_Mesh * MR_MeshVertPart_Get_mesh ( const MR_MeshVertPart * _this)

Returns a pointer to a member variable of class MR::MeshVertPart named mesh. 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.

◆ MR_MeshVertPart_Get_region()

MRC_API const MR_VertBitSet *const * MR_MeshVertPart_Get_region ( const MR_MeshVertPart * _this)

Returns a pointer to a member variable of class MR::MeshVertPart named region. 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.

◆ MR_MeshVertPart_GetMutable_region()

MRC_API const MR_VertBitSet ** MR_MeshVertPart_GetMutable_region ( MR_MeshVertPart * _this)

Returns a mutable pointer to a member variable of class MR::MeshVertPart named region. 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.

◆ MR_MeshVertPart_OffsetMutablePtr()

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 pointer points to an array element.

◆ MR_MeshVertPart_OffsetPtr()

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 pointer points to an array element.

◆ MR_MeshVertPart_Set_region()

MRC_API void MR_MeshVertPart_Set_region ( MR_MeshVertPart * _this,
const MR_VertBitSet * value )

Modifies a member variable of class MR::MeshVertPart named region. Parameter _this can not be null. It is a single object.