#include <MRCMesh/MRVector2.h>
#include <MRCMisc/common.h>
#include <MRCMisc/exports.h>
#include <stddef.h>
Go to the source code of this file.
|
| MRC_API const MR_Vector2i * | MR_GridSettings_Get_dim (const MR_GridSettings *_this) |
| |
| MRC_API void | MR_GridSettings_Set_dim (MR_GridSettings *_this, MR_Vector2i value) |
| |
| MRC_API MR_Vector2i * | MR_GridSettings_GetMutable_dim (MR_GridSettings *_this) |
| |
| MRC_API const MR_BMap_MR_VertId_uint64_t * | MR_GridSettings_Get_vertIds (const MR_GridSettings *_this) |
| |
| MRC_API void | MR_GridSettings_Set_vertIds (MR_GridSettings *_this, MR_PassBy value_pass_by, MR_BMap_MR_VertId_uint64_t *value) |
| |
| MRC_API MR_BMap_MR_VertId_uint64_t * | MR_GridSettings_GetMutable_vertIds (MR_GridSettings *_this) |
| |
| MRC_API const MR_BMap_MR_UndirectedEdgeId_uint64_t * | MR_GridSettings_Get_uedgeIds (const MR_GridSettings *_this) |
| |
| MRC_API void | MR_GridSettings_Set_uedgeIds (MR_GridSettings *_this, MR_PassBy value_pass_by, MR_BMap_MR_UndirectedEdgeId_uint64_t *value) |
| |
| MRC_API MR_BMap_MR_UndirectedEdgeId_uint64_t * | MR_GridSettings_GetMutable_uedgeIds (MR_GridSettings *_this) |
| |
| MRC_API const MR_BMap_MR_FaceId_uint64_t * | MR_GridSettings_Get_faceIds (const MR_GridSettings *_this) |
| |
| MRC_API void | MR_GridSettings_Set_faceIds (MR_GridSettings *_this, MR_PassBy value_pass_by, MR_BMap_MR_FaceId_uint64_t *value) |
| |
| MRC_API MR_BMap_MR_FaceId_uint64_t * | MR_GridSettings_GetMutable_faceIds (MR_GridSettings *_this) |
| |
| MRC_API MR_GridSettings * | MR_GridSettings_DefaultConstruct (void) |
| |
| MRC_API MR_GridSettings * | MR_GridSettings_DefaultConstructArray (size_t num_elems) |
| |
| MRC_API MR_GridSettings * | MR_GridSettings_ConstructFrom (MR_Vector2i dim, MR_PassBy vertIds_pass_by, MR_BMap_MR_VertId_uint64_t *vertIds, MR_PassBy uedgeIds_pass_by, MR_BMap_MR_UndirectedEdgeId_uint64_t *uedgeIds, MR_PassBy faceIds_pass_by, MR_BMap_MR_FaceId_uint64_t *faceIds) |
| |
| MRC_API const MR_GridSettings * | MR_GridSettings_OffsetPtr (const MR_GridSettings *ptr, ptrdiff_t i) |
| |
| MRC_API MR_GridSettings * | MR_GridSettings_OffsetMutablePtr (MR_GridSettings *ptr, ptrdiff_t i) |
| |
| MRC_API MR_GridSettings * | MR_GridSettings_ConstructFromAnother (MR_PassBy _other_pass_by, MR_GridSettings *_other) |
| |
| MRC_API void | MR_GridSettings_Destroy (const MR_GridSettings *_this) |
| | Destroys a heap-allocated instance of MR_GridSettings. Does nothing if the pointer is null.
|
| |
| MRC_API void | MR_GridSettings_DestroyArray (const MR_GridSettings *_this) |
| | Destroys a heap-allocated array of MR_GridSettings. Does nothing if the pointer is null.
|
| |
| MRC_API MR_GridSettings * | MR_GridSettings_AssignFromAnother (MR_GridSettings *_this, MR_PassBy _other_pass_by, MR_GridSettings *_other) |
| |
◆ MR_BMap_MR_FaceId_uint64_t
◆ MR_BMap_MR_UndirectedEdgeId_uint64_t
◆ MR_BMap_MR_VertId_uint64_t
◆ MR_GridSettings
settings defining regular grid, where each quadrangular cell is split on two triangles in one of two ways Generated from class MR::GridSettings. Supported MR_PassBy modes: MR_PassBy_DefaultConstruct, MR_PassBy_Move (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).
◆ MR_GridSettings_EdgeType
◆ MR_GridSettings_TriType
◆ MR_GridSettings_EdgeType
| Enumerator |
|---|
| MR_GridSettings_EdgeType_Horizontal | |
| MR_GridSettings_EdgeType_Vertical | |
| MR_GridSettings_EdgeType_DiagonalA | |
| MR_GridSettings_EdgeType_DiagonalB | |
◆ MR_GridSettings_TriType
| Enumerator |
|---|
| MR_GridSettings_TriType_Lower | |
| MR_GridSettings_TriType_Upper | |
◆ MR_GridSettings_AssignFromAnother()
Generated from method MR::GridSettings::operator=. Parameter _this can not be null. It is a single object. The reference to things referred to by the parameter _other (if any) might be preserved in this object. The returned pointer will never be null. It is non-owning, do NOT destroy it. When this function is called, this object will drop any object references it had previously.
◆ MR_GridSettings_ConstructFrom()
Constructs MR::GridSettings elementwise. The reference to the parameter dim might be preserved in the constructed object. The reference to the parameter vertIds might be preserved in the constructed object. The reference to the parameter uedgeIds might be preserved in the constructed object. The reference to the parameter faceIds might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_GridSettings_Destroy() to free it when you're done using it. When this function is called, this object will drop any object references it had previously.
◆ MR_GridSettings_ConstructFromAnother()
Generated from constructor MR::GridSettings::GridSettings. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_GridSettings_Destroy() to free it when you're done using it.
◆ MR_GridSettings_DefaultConstruct()
Constructs an empty (default-constructed) instance. Never returns null. Returns an instance allocated on the heap! Must call MR_GridSettings_Destroy() to free it when you're done using it.
◆ MR_GridSettings_DefaultConstructArray()
◆ MR_GridSettings_Destroy()
Destroys a heap-allocated instance of MR_GridSettings. Does nothing if the pointer is null.
◆ MR_GridSettings_DestroyArray()
Destroys a heap-allocated array of MR_GridSettings. Does nothing if the pointer is null.
◆ MR_GridSettings_Get_dim()
the number of cells in X and Y dimensions; the number of vertices will be at most (X+1)*(Y+1) Returns a pointer to a member variable of class MR::GridSettings named dim. 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_GridSettings_Get_faceIds()
grid coordinates of lower-left vertex and triangle-type to faceId; all 3 vertices and all 3 edges of valid face must be valid as well; index is 2 * ( x + y * settings.dim.x ) + triType Returns a pointer to a member variable of class MR::GridSettings named faceIds. 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_GridSettings_Get_uedgeIds()
grid coordinates of lower-left vertex and edge-type to edgeId with the origin in this vertex; both vertices of valid edge must be valid as well; index is 4 * ( x + y * ( settings.dim.x + 1 ) ) + edgeType Returns a pointer to a member variable of class MR::GridSettings named uedgeIds. 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_GridSettings_Get_vertIds()
grid coordinates to vertex Id; invalid vertex Id means that this vertex is missing in grid; index is x + y * ( settings.dim.x + 1 ) Returns a pointer to a member variable of class MR::GridSettings named vertIds. 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_GridSettings_GetMutable_dim()
the number of cells in X and Y dimensions; the number of vertices will be at most (X+1)*(Y+1) Returns a mutable pointer to a member variable of class MR::GridSettings named dim. 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_GridSettings_GetMutable_faceIds()
grid coordinates of lower-left vertex and triangle-type to faceId; all 3 vertices and all 3 edges of valid face must be valid as well; index is 2 * ( x + y * settings.dim.x ) + triType Returns a mutable pointer to a member variable of class MR::GridSettings named faceIds. 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_GridSettings_GetMutable_uedgeIds()
grid coordinates of lower-left vertex and edge-type to edgeId with the origin in this vertex; both vertices of valid edge must be valid as well; index is 4 * ( x + y * ( settings.dim.x + 1 ) ) + edgeType Returns a mutable pointer to a member variable of class MR::GridSettings named uedgeIds. 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_GridSettings_GetMutable_vertIds()
grid coordinates to vertex Id; invalid vertex Id means that this vertex is missing in grid; index is x + y * ( settings.dim.x + 1 ) Returns a mutable pointer to a member variable of class MR::GridSettings named vertIds. 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_GridSettings_OffsetMutablePtr()
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. The reference to the parameter ptr might be preserved in the return value.
◆ MR_GridSettings_OffsetPtr()
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. The reference to the parameter ptr might be preserved in the return value.
◆ MR_GridSettings_Set_dim()
the number of cells in X and Y dimensions; the number of vertices will be at most (X+1)*(Y+1) Modifies a member variable of class MR::GridSettings named dim. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element dim. When this function is called, this object will drop object references it had previously in dim.
◆ MR_GridSettings_Set_faceIds()
grid coordinates of lower-left vertex and triangle-type to faceId; all 3 vertices and all 3 edges of valid face must be valid as well; index is 2 * ( x + y * settings.dim.x ) + triType Modifies a member variable of class MR::GridSettings named faceIds. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element faceIds. When this function is called, this object will drop object references it had previously in faceIds.
◆ MR_GridSettings_Set_uedgeIds()
grid coordinates of lower-left vertex and edge-type to edgeId with the origin in this vertex; both vertices of valid edge must be valid as well; index is 4 * ( x + y * ( settings.dim.x + 1 ) ) + edgeType Modifies a member variable of class MR::GridSettings named uedgeIds. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element uedgeIds. When this function is called, this object will drop object references it had previously in uedgeIds.
◆ MR_GridSettings_Set_vertIds()
grid coordinates to vertex Id; invalid vertex Id means that this vertex is missing in grid; index is x + y * ( settings.dim.x + 1 ) Modifies a member variable of class MR::GridSettings named vertIds. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element vertIds. When this function is called, this object will drop object references it had previously in vertIds.