MeshLib C Docs
Loading...
Searching...
No Matches
MRFillContours2D.h File Reference

Go to the source code of this file.

Typedefs

typedef struct MR_Mesh MR_Mesh
 
typedef struct MR_ObjectMeshData MR_ObjectMeshData
 
typedef struct MR_expected_void_std_string MR_expected_void_std_string
 
typedef struct MR_std_vector_MR_EdgeId MR_std_vector_MR_EdgeId
 
typedef struct MR_std_vector_std_vector_MR_EdgeId MR_std_vector_std_vector_MR_EdgeId
 
typedef struct MR_std_vector_std_vector_MR_Vector3f MR_std_vector_std_vector_MR_Vector3f
 

Functions

MRC_API MR_expected_void_std_stringMR_fillContours2D (MR_Mesh *mesh, const MR_std_vector_MR_EdgeId *holeRepresentativeEdges)
 fill holes with border in same plane (i.e. after cut by plane)
 
MRC_API MR_AffineXf3f MR_getXfFromOxyPlane_1 (const MR_std_vector_std_vector_MR_Vector3f *contours)
 
MRC_API MR_AffineXf3f MR_getXfFromOxyPlane_2 (const MR_Mesh *mesh, const MR_std_vector_std_vector_MR_EdgeId *paths)
 
MRC_API MR_expected_void_std_stringMR_fillPlanarHole (MR_ObjectMeshData *data, MR_std_vector_std_vector_MR_EdgeId *holeContours)
 

Typedef Documentation

◆ MR_expected_void_std_string

◆ MR_Mesh

typedef struct MR_Mesh MR_Mesh

◆ MR_ObjectMeshData

◆ MR_std_vector_MR_EdgeId

◆ MR_std_vector_std_vector_MR_EdgeId

◆ MR_std_vector_std_vector_MR_Vector3f

Function Documentation

◆ MR_fillContours2D()

MRC_API MR_expected_void_std_string * MR_fillContours2D ( MR_Mesh * mesh,
const MR_std_vector_MR_EdgeId * holeRepresentativeEdges )

fill holes with border in same plane (i.e. after cut by plane)

Parameters
mesh- mesh with holes
holeRepresentativeEdges- each edge here represents a hole borders that should be filled should be not empty edges should have invalid left face (FaceId == -1)
Returns
Expected with has_value()=true if holes filled, otherwise - string error Generated from function MR::fillContours2D. Parameter mesh can not be null. It is a single object. Parameter holeRepresentativeEdges can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_expected_void_std_string_Destroy() to free it when you're done using it.

◆ MR_fillPlanarHole()

given an ObjectMeshData and the contours of a planar hole in it, fills the hole using fillContours2D function and updates all per-element attributes; if some contours were not closed on input, then it closes them by adding a bridge edge in each Generated from function MR::fillPlanarHole. Parameter data can not be null. It is a single object. Parameter holeContours can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_expected_void_std_string_Destroy() to free it when you're done using it.

◆ MR_getXfFromOxyPlane_1()

MRC_API MR_AffineXf3f MR_getXfFromOxyPlane_1 ( const MR_std_vector_std_vector_MR_Vector3f * contours)

computes the transformation that maps O into center mass of contours' points OXY into best plane containing the points Generated from function MR::getXfFromOxyPlane. Parameter contours can not be null. It is a single object.

◆ MR_getXfFromOxyPlane_2()

MRC_API MR_AffineXf3f MR_getXfFromOxyPlane_2 ( const MR_Mesh * mesh,
const MR_std_vector_std_vector_MR_EdgeId * paths )

Generated from function MR::getXfFromOxyPlane. Parameter mesh can not be null. It is a single object. Parameter paths can not be null. It is a single object.