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

Go to the source code of this file.

Typedefs

typedef struct MR_FaceMap MR_FaceMap
 
typedef struct MR_PartMapping MR_PartMapping
 
typedef struct MR_VertMap MR_VertMap
 
typedef struct MR_WholeEdgeMap MR_WholeEdgeMap
 
typedef struct MR_Src2TgtMaps MR_Src2TgtMaps
 
typedef struct MR_Tgt2SrcMaps MR_Tgt2SrcMaps
 

Functions

MRC_API MR_Src2TgtMapsMR_Src2TgtMaps_Construct (MR_FaceMap *outFmap, MR_VertMap *outVmap, MR_WholeEdgeMap *outEmap)
 
MRC_API const MR_Src2TgtMapsMR_Src2TgtMaps_OffsetPtr (const MR_Src2TgtMaps *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_Src2TgtMapsMR_Src2TgtMaps_OffsetMutablePtr (MR_Src2TgtMaps *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_Src2TgtMaps_Destroy (const MR_Src2TgtMaps *_this)
 Destroys a heap-allocated instance of MR_Src2TgtMaps. Does nothing if the pointer is null.
 
MRC_API void MR_Src2TgtMaps_DestroyArray (const MR_Src2TgtMaps *_this)
 Destroys a heap-allocated array of MR_Src2TgtMaps. Does nothing if the pointer is null.
 
MRC_API const MR_PartMappingMR_Src2TgtMaps_ConvertTo_const_MR_PartMapping_ref (const MR_Src2TgtMaps *_this)
 
MRC_API const MR_PartMappingMR_Src2TgtMaps_getPartMapping (const MR_Src2TgtMaps *_this)
 
MRC_API MR_Tgt2SrcMapsMR_Tgt2SrcMaps_Construct (MR_FaceMap *outFmap, MR_VertMap *outVmap, MR_WholeEdgeMap *outEmap)
 
MRC_API const MR_Tgt2SrcMapsMR_Tgt2SrcMaps_OffsetPtr (const MR_Tgt2SrcMaps *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_Tgt2SrcMapsMR_Tgt2SrcMaps_OffsetMutablePtr (MR_Tgt2SrcMaps *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_Tgt2SrcMaps_Destroy (const MR_Tgt2SrcMaps *_this)
 Destroys a heap-allocated instance of MR_Tgt2SrcMaps. Does nothing if the pointer is null.
 
MRC_API void MR_Tgt2SrcMaps_DestroyArray (const MR_Tgt2SrcMaps *_this)
 Destroys a heap-allocated array of MR_Tgt2SrcMaps. Does nothing if the pointer is null.
 
MRC_API const MR_PartMappingMR_Tgt2SrcMaps_ConvertTo_const_MR_PartMapping_ref (const MR_Tgt2SrcMaps *_this)
 
MRC_API const MR_PartMappingMR_Tgt2SrcMaps_getPartMapping (const MR_Tgt2SrcMaps *_this)
 

Typedef Documentation

◆ MR_FaceMap

typedef struct MR_FaceMap MR_FaceMap

◆ MR_PartMapping

◆ MR_Src2TgtMaps

use this adapter to call functions expecting PartMapping parameter to receive src2tgt dense maps Generated from class MR::Src2TgtMaps.

◆ MR_Tgt2SrcMaps

use this adapter to call functions expecting PartMapping parameter to receive tgt2src dense maps Generated from class MR::Tgt2SrcMaps.

◆ MR_VertMap

typedef struct MR_VertMap MR_VertMap

◆ MR_WholeEdgeMap

Function Documentation

◆ MR_Src2TgtMaps_Construct()

MRC_API MR_Src2TgtMaps * MR_Src2TgtMaps_Construct ( MR_FaceMap * outFmap,
MR_VertMap * outVmap,
MR_WholeEdgeMap * outEmap )

Generated from a constructor of class MR::Src2TgtMaps. Never returns null. Returns an instance allocated on the heap! Must call MR_Src2TgtMaps_Destroy() to free it when you're done using it.

◆ MR_Src2TgtMaps_ConvertTo_const_MR_PartMapping_ref()

MRC_API const MR_PartMapping * MR_Src2TgtMaps_ConvertTo_const_MR_PartMapping_ref ( const MR_Src2TgtMaps * _this)

Generated from a conversion operator of class MR::Src2TgtMaps to type const MR::PartMapping &. 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_Src2TgtMaps_Destroy()

MRC_API void MR_Src2TgtMaps_Destroy ( const MR_Src2TgtMaps * _this)

Destroys a heap-allocated instance of MR_Src2TgtMaps. Does nothing if the pointer is null.

◆ MR_Src2TgtMaps_DestroyArray()

MRC_API void MR_Src2TgtMaps_DestroyArray ( const MR_Src2TgtMaps * _this)

Destroys a heap-allocated array of MR_Src2TgtMaps. Does nothing if the pointer is null.

◆ MR_Src2TgtMaps_getPartMapping()

MRC_API const MR_PartMapping * MR_Src2TgtMaps_getPartMapping ( const MR_Src2TgtMaps * _this)

Generated from a method of class MR::Src2TgtMaps named getPartMapping. 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_Src2TgtMaps_OffsetMutablePtr()

MRC_API MR_Src2TgtMaps * MR_Src2TgtMaps_OffsetMutablePtr ( MR_Src2TgtMaps * 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_Src2TgtMaps_OffsetPtr()

MRC_API const MR_Src2TgtMaps * MR_Src2TgtMaps_OffsetPtr ( const MR_Src2TgtMaps * 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_Tgt2SrcMaps_Construct()

MRC_API MR_Tgt2SrcMaps * MR_Tgt2SrcMaps_Construct ( MR_FaceMap * outFmap,
MR_VertMap * outVmap,
MR_WholeEdgeMap * outEmap )

Generated from a constructor of class MR::Tgt2SrcMaps. Never returns null. Returns an instance allocated on the heap! Must call MR_Tgt2SrcMaps_Destroy() to free it when you're done using it.

◆ MR_Tgt2SrcMaps_ConvertTo_const_MR_PartMapping_ref()

MRC_API const MR_PartMapping * MR_Tgt2SrcMaps_ConvertTo_const_MR_PartMapping_ref ( const MR_Tgt2SrcMaps * _this)

Generated from a conversion operator of class MR::Tgt2SrcMaps to type const MR::PartMapping &. 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_Tgt2SrcMaps_Destroy()

MRC_API void MR_Tgt2SrcMaps_Destroy ( const MR_Tgt2SrcMaps * _this)

Destroys a heap-allocated instance of MR_Tgt2SrcMaps. Does nothing if the pointer is null.

◆ MR_Tgt2SrcMaps_DestroyArray()

MRC_API void MR_Tgt2SrcMaps_DestroyArray ( const MR_Tgt2SrcMaps * _this)

Destroys a heap-allocated array of MR_Tgt2SrcMaps. Does nothing if the pointer is null.

◆ MR_Tgt2SrcMaps_getPartMapping()

MRC_API const MR_PartMapping * MR_Tgt2SrcMaps_getPartMapping ( const MR_Tgt2SrcMaps * _this)

Generated from a method of class MR::Tgt2SrcMaps named getPartMapping. 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_Tgt2SrcMaps_OffsetMutablePtr()

MRC_API MR_Tgt2SrcMaps * MR_Tgt2SrcMaps_OffsetMutablePtr ( MR_Tgt2SrcMaps * 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_Tgt2SrcMaps_OffsetPtr()

MRC_API const MR_Tgt2SrcMaps * MR_Tgt2SrcMaps_OffsetPtr ( const MR_Tgt2SrcMaps * 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.