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

Go to the source code of this file.

Typedefs

typedef struct MR_DivideMeshWithPlaneParams MR_DivideMeshWithPlaneParams

Functions

MRC_API const float * MR_DivideMeshWithPlaneParams_Get_eps (const MR_DivideMeshWithPlaneParams *_this)
MRC_API void MR_DivideMeshWithPlaneParams_Set_eps (MR_DivideMeshWithPlaneParams *_this, float value)
MRC_API float * MR_DivideMeshWithPlaneParams_GetMutable_eps (MR_DivideMeshWithPlaneParams *_this)
MRC_API const bool * MR_DivideMeshWithPlaneParams_Get_fillCut (const MR_DivideMeshWithPlaneParams *_this)
MRC_API void MR_DivideMeshWithPlaneParams_Set_fillCut (MR_DivideMeshWithPlaneParams *_this, bool value)
MRC_API bool * MR_DivideMeshWithPlaneParams_GetMutable_fillCut (MR_DivideMeshWithPlaneParams *_this)
MRC_API const bool * MR_DivideMeshWithPlaneParams_Get_subdivideFilling (const MR_DivideMeshWithPlaneParams *_this)
MRC_API void MR_DivideMeshWithPlaneParams_Set_subdivideFilling (MR_DivideMeshWithPlaneParams *_this, bool value)
MRC_API bool * MR_DivideMeshWithPlaneParams_GetMutable_subdivideFilling (MR_DivideMeshWithPlaneParams *_this)
MRC_API MR_ObjectMeshData *const * MR_DivideMeshWithPlaneParams_Get_otherPart (const MR_DivideMeshWithPlaneParams *_this)
MRC_API void MR_DivideMeshWithPlaneParams_Set_otherPart (MR_DivideMeshWithPlaneParams *_this, MR_ObjectMeshData *value)
MRC_API MR_ObjectMeshData ** MR_DivideMeshWithPlaneParams_GetMutable_otherPart (MR_DivideMeshWithPlaneParams *_this)
MRC_API MR_std_vector_std_string *const * MR_DivideMeshWithPlaneParams_Get_errors (const MR_DivideMeshWithPlaneParams *_this)
MRC_API void MR_DivideMeshWithPlaneParams_Set_errors (MR_DivideMeshWithPlaneParams *_this, MR_std_vector_std_string *value)
MRC_API MR_std_vector_std_string ** MR_DivideMeshWithPlaneParams_GetMutable_errors (MR_DivideMeshWithPlaneParams *_this)
MRC_API MR_DivideMeshWithPlaneParamsMR_DivideMeshWithPlaneParams_DefaultConstruct (void)
MRC_API MR_DivideMeshWithPlaneParamsMR_DivideMeshWithPlaneParams_DefaultConstructArray (size_t num_elems)
MRC_API MR_DivideMeshWithPlaneParamsMR_DivideMeshWithPlaneParams_ConstructFrom (float eps, bool fillCut, bool subdivideFilling, MR_ObjectMeshData *otherPart, MR_std_vector_std_string *errors)
MRC_API const MR_DivideMeshWithPlaneParamsMR_DivideMeshWithPlaneParams_OffsetPtr (const MR_DivideMeshWithPlaneParams *ptr, ptrdiff_t i)
MRC_API MR_DivideMeshWithPlaneParamsMR_DivideMeshWithPlaneParams_OffsetMutablePtr (MR_DivideMeshWithPlaneParams *ptr, ptrdiff_t i)
MRC_API MR_DivideMeshWithPlaneParamsMR_DivideMeshWithPlaneParams_ConstructFromAnother (const MR_DivideMeshWithPlaneParams *_other)
MRC_API void MR_DivideMeshWithPlaneParams_Destroy (const MR_DivideMeshWithPlaneParams *_this)
 Destroys a heap-allocated instance of MR_DivideMeshWithPlaneParams. Does nothing if the pointer is null.
MRC_API void MR_DivideMeshWithPlaneParams_DestroyArray (const MR_DivideMeshWithPlaneParams *_this)
 Destroys a heap-allocated array of MR_DivideMeshWithPlaneParams. Does nothing if the pointer is null.
MRC_API MR_DivideMeshWithPlaneParamsMR_DivideMeshWithPlaneParams_AssignFromAnother (MR_DivideMeshWithPlaneParams *_this, const MR_DivideMeshWithPlaneParams *_other)
MRC_API void MR_divideMeshWithPlane (MR_ObjectMeshData *data, const MR_Plane3f *plane, const MR_DivideMeshWithPlaneParams *divideParams)

Typedef Documentation

◆ MR_DivideMeshWithPlaneParams

Generated from class MR::DivideMeshWithPlaneParams. Supported MR_PassBy modes: MR_PassBy_DefaultConstruct, MR_PassBy_Copy, MR_PassBy_Move (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).

Function Documentation

◆ MR_divideMeshWithPlane()

MRC_API void MR_divideMeshWithPlane ( MR_ObjectMeshData * data,
const MR_Plane3f * plane,
const MR_DivideMeshWithPlaneParams * divideParams )

divide mesh

Parameters
data(with attributes) on two parts by given
planeoptionally fills and subdivides cut area Generated from function MR::divideMeshWithPlane. Parameter data can not be null. It is a single object. Parameter plane can not be null. It is a single object. Parameter divideParams is a single object. Parameter divideParams has a default argument: {}, pass a null pointer to use it.

◆ MR_DivideMeshWithPlaneParams_AssignFromAnother()

MRC_API MR_DivideMeshWithPlaneParams * MR_DivideMeshWithPlaneParams_AssignFromAnother ( MR_DivideMeshWithPlaneParams * _this,
const MR_DivideMeshWithPlaneParams * _other )

Generated from method MR::DivideMeshWithPlaneParams::operator=. Parameter _this can not be null. It is a single object. Parameter _other 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 held previously.

◆ MR_DivideMeshWithPlaneParams_ConstructFrom()

MRC_API MR_DivideMeshWithPlaneParams * MR_DivideMeshWithPlaneParams_ConstructFrom ( float eps,
bool fillCut,
bool subdivideFilling,
MR_ObjectMeshData * otherPart,
MR_std_vector_std_string * errors )

Constructs MR::DivideMeshWithPlaneParams elementwise. The reference to the parameter otherPart might be preserved in the constructed object. The reference to the parameter errors might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_DivideMeshWithPlaneParams_Destroy() to free it when you're done using it. When this function is called, this object will drop any object references it held previously.

◆ MR_DivideMeshWithPlaneParams_ConstructFromAnother()

MRC_API MR_DivideMeshWithPlaneParams * MR_DivideMeshWithPlaneParams_ConstructFromAnother ( const MR_DivideMeshWithPlaneParams * _other)

Generated from constructor MR::DivideMeshWithPlaneParams::DivideMeshWithPlaneParams. Parameter _other 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 the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_DivideMeshWithPlaneParams_Destroy() to free it when you're done using it.

◆ MR_DivideMeshWithPlaneParams_DefaultConstruct()

MRC_API MR_DivideMeshWithPlaneParams * MR_DivideMeshWithPlaneParams_DefaultConstruct ( void )

Constructs an empty (default-constructed) instance. Never returns null. Returns an instance allocated on the heap! Must call MR_DivideMeshWithPlaneParams_Destroy() to free it when you're done using it.

◆ MR_DivideMeshWithPlaneParams_DefaultConstructArray()

MRC_API MR_DivideMeshWithPlaneParams * MR_DivideMeshWithPlaneParams_DefaultConstructArray ( size_t num_elems)

Constructs an array of empty (default-constructed) instances, of the specified size. Will never return null. The array must be destroyed using MR_DivideMeshWithPlaneParams_DestroyArray(). Use MR_DivideMeshWithPlaneParams_OffsetMutablePtr() and MR_DivideMeshWithPlaneParams_OffsetPtr() to access the array elements.

◆ MR_DivideMeshWithPlaneParams_Destroy()

MRC_API void MR_DivideMeshWithPlaneParams_Destroy ( const MR_DivideMeshWithPlaneParams * _this)

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

◆ MR_DivideMeshWithPlaneParams_DestroyArray()

MRC_API void MR_DivideMeshWithPlaneParams_DestroyArray ( const MR_DivideMeshWithPlaneParams * _this)

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

◆ MR_DivideMeshWithPlaneParams_Get_eps()

MRC_API const float * MR_DivideMeshWithPlaneParams_Get_eps ( const MR_DivideMeshWithPlaneParams * _this)

if existing vertex is within eps distance from the plane, then move the vertex not introducing new ones Returns a pointer to a member variable of class MR::DivideMeshWithPlaneParams named eps. 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. The reference to this object might be preserved as the return value.

◆ MR_DivideMeshWithPlaneParams_Get_errors()

MRC_API MR_std_vector_std_string *const * MR_DivideMeshWithPlaneParams_Get_errors ( const MR_DivideMeshWithPlaneParams * _this)

optional output list of errors that could possibly happen during 'divideMeshWithPlane' function call Returns a pointer to a member variable of class MR::DivideMeshWithPlaneParams named errors. 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. The reference to this object might be preserved as the return value.

◆ MR_DivideMeshWithPlaneParams_Get_fillCut()

MRC_API const bool * MR_DivideMeshWithPlaneParams_Get_fillCut ( const MR_DivideMeshWithPlaneParams * _this)

if set - function tries to fill cut after dividing (this operation might fail leading to "params.errors") Returns a pointer to a member variable of class MR::DivideMeshWithPlaneParams named fillCut. 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. The reference to this object might be preserved as the return value.

◆ MR_DivideMeshWithPlaneParams_Get_otherPart()

MRC_API MR_ObjectMeshData *const * MR_DivideMeshWithPlaneParams_Get_otherPart ( const MR_DivideMeshWithPlaneParams * _this)

optional output other part of dividing (expected to be empty) Returns a pointer to a member variable of class MR::DivideMeshWithPlaneParams named otherPart. 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. The reference to this object might be preserved as the return value.

◆ MR_DivideMeshWithPlaneParams_Get_subdivideFilling()

MRC_API const bool * MR_DivideMeshWithPlaneParams_Get_subdivideFilling ( const MR_DivideMeshWithPlaneParams * _this)

if set and filled - function subdivides filling after cut Returns a pointer to a member variable of class MR::DivideMeshWithPlaneParams named subdivideFilling. 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. The reference to this object might be preserved as the return value.

◆ MR_DivideMeshWithPlaneParams_GetMutable_eps()

MRC_API float * MR_DivideMeshWithPlaneParams_GetMutable_eps ( MR_DivideMeshWithPlaneParams * _this)

if existing vertex is within eps distance from the plane, then move the vertex not introducing new ones Returns a mutable pointer to a member variable of class MR::DivideMeshWithPlaneParams named eps. 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. The reference to this object might be preserved as the return value.

◆ MR_DivideMeshWithPlaneParams_GetMutable_errors()

MRC_API MR_std_vector_std_string ** MR_DivideMeshWithPlaneParams_GetMutable_errors ( MR_DivideMeshWithPlaneParams * _this)

optional output list of errors that could possibly happen during 'divideMeshWithPlane' function call Returns a mutable pointer to a member variable of class MR::DivideMeshWithPlaneParams named errors. 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. The reference to this object might be preserved as the return value.

◆ MR_DivideMeshWithPlaneParams_GetMutable_fillCut()

MRC_API bool * MR_DivideMeshWithPlaneParams_GetMutable_fillCut ( MR_DivideMeshWithPlaneParams * _this)

if set - function tries to fill cut after dividing (this operation might fail leading to "params.errors") Returns a mutable pointer to a member variable of class MR::DivideMeshWithPlaneParams named fillCut. 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. The reference to this object might be preserved as the return value.

◆ MR_DivideMeshWithPlaneParams_GetMutable_otherPart()

MRC_API MR_ObjectMeshData ** MR_DivideMeshWithPlaneParams_GetMutable_otherPart ( MR_DivideMeshWithPlaneParams * _this)

optional output other part of dividing (expected to be empty) Returns a mutable pointer to a member variable of class MR::DivideMeshWithPlaneParams named otherPart. 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. The reference to this object might be preserved as the return value.

◆ MR_DivideMeshWithPlaneParams_GetMutable_subdivideFilling()

MRC_API bool * MR_DivideMeshWithPlaneParams_GetMutable_subdivideFilling ( MR_DivideMeshWithPlaneParams * _this)

if set and filled - function subdivides filling after cut Returns a mutable pointer to a member variable of class MR::DivideMeshWithPlaneParams named subdivideFilling. 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. The reference to this object might be preserved as the return value.

◆ MR_DivideMeshWithPlaneParams_OffsetMutablePtr()

MRC_API MR_DivideMeshWithPlaneParams * MR_DivideMeshWithPlaneParams_OffsetMutablePtr ( MR_DivideMeshWithPlaneParams * 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. The reference to the parameter ptr might be preserved in the return value.

◆ MR_DivideMeshWithPlaneParams_OffsetPtr()

MRC_API const MR_DivideMeshWithPlaneParams * MR_DivideMeshWithPlaneParams_OffsetPtr ( const MR_DivideMeshWithPlaneParams * 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. The reference to the parameter ptr might be preserved in the return value.

◆ MR_DivideMeshWithPlaneParams_Set_eps()

MRC_API void MR_DivideMeshWithPlaneParams_Set_eps ( MR_DivideMeshWithPlaneParams * _this,
float value )

if existing vertex is within eps distance from the plane, then move the vertex not introducing new ones Modifies a member variable of class MR::DivideMeshWithPlaneParams named eps. Parameter _this can not be null. It is a single object. When this function is called, this object will drop object references it held previously in eps.

◆ MR_DivideMeshWithPlaneParams_Set_errors()

MRC_API void MR_DivideMeshWithPlaneParams_Set_errors ( MR_DivideMeshWithPlaneParams * _this,
MR_std_vector_std_string * value )

optional output list of errors that could possibly happen during 'divideMeshWithPlane' function call Modifies a member variable of class MR::DivideMeshWithPlaneParams named errors. 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 errors. When this function is called, this object will drop object references it held previously in errors.

◆ MR_DivideMeshWithPlaneParams_Set_fillCut()

MRC_API void MR_DivideMeshWithPlaneParams_Set_fillCut ( MR_DivideMeshWithPlaneParams * _this,
bool value )

if set - function tries to fill cut after dividing (this operation might fail leading to "params.errors") Modifies a member variable of class MR::DivideMeshWithPlaneParams named fillCut. Parameter _this can not be null. It is a single object. When this function is called, this object will drop object references it held previously in fillCut.

◆ MR_DivideMeshWithPlaneParams_Set_otherPart()

MRC_API void MR_DivideMeshWithPlaneParams_Set_otherPart ( MR_DivideMeshWithPlaneParams * _this,
MR_ObjectMeshData * value )

optional output other part of dividing (expected to be empty) Modifies a member variable of class MR::DivideMeshWithPlaneParams named otherPart. 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 otherPart. When this function is called, this object will drop object references it held previously in otherPart.

◆ MR_DivideMeshWithPlaneParams_Set_subdivideFilling()

MRC_API void MR_DivideMeshWithPlaneParams_Set_subdivideFilling ( MR_DivideMeshWithPlaneParams * _this,
bool value )

if set and filled - function subdivides filling after cut Modifies a member variable of class MR::DivideMeshWithPlaneParams named subdivideFilling. Parameter _this can not be null. It is a single object. When this function is called, this object will drop object references it held previously in subdivideFilling.