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

Go to the source code of this file.

Typedefs

typedef struct MR_Mesh MR_Mesh
 
typedef struct MR_MeshAttributesToUpdate MR_MeshAttributesToUpdate
 
typedef struct MR_std_function_void_from_MR_EdgeId_MR_EdgeId MR_std_function_void_from_MR_EdgeId_MR_EdgeId
 

Functions

MRC_API MR_std_function_void_from_MR_EdgeId_MR_EdgeIdMR_meshOnEdgeSplitAttribute (const MR_Mesh *mesh, const MR_MeshAttributesToUpdate *params)
 
MRC_API MR_std_function_void_from_MR_EdgeId_MR_EdgeIdMR_meshOnEdgeSplitVertAttribute (const MR_Mesh *mesh, const MR_MeshAttributesToUpdate *params)
 
MRC_API MR_std_function_void_from_MR_EdgeId_MR_EdgeIdMR_meshOnEdgeSplitFaceAttribute (const MR_Mesh *mesh, const MR_MeshAttributesToUpdate *params)
 

Typedef Documentation

◆ MR_Mesh

typedef struct MR_Mesh MR_Mesh

◆ MR_MeshAttributesToUpdate

◆ MR_std_function_void_from_MR_EdgeId_MR_EdgeId

Function Documentation

◆ MR_meshOnEdgeSplitAttribute()

MRC_API MR_std_function_void_from_MR_EdgeId_MR_EdgeId * MR_meshOnEdgeSplitAttribute ( const MR_Mesh * mesh,
const MR_MeshAttributesToUpdate * params )

auto uvCoords = obj_->getUVCoords(); auto texturePerFace = obj_->getTexturePerFace(); MeshAttributesToUpdate meshParams; if ( !uvCoords.empty() ) meshParams.uvCoords = &uvCoords; if ( !texturePerFace.empty() ) meshParams.texturePerFace = &texturePerFace; subs.onEdgeSplit = meshOnEdgeSplitAttribute( *obj_->varMesh(), meshParams ); subdivideMesh( *obj_->varMesh(), subs ); Generated from function MR::meshOnEdgeSplitAttribute. Parameter mesh can not be null. It is a single object. Parameter params can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_std_function_void_from_MR_EdgeId_MR_EdgeId_Destroy() to free it when you're done using it.

◆ MR_meshOnEdgeSplitFaceAttribute()

MRC_API MR_std_function_void_from_MR_EdgeId_MR_EdgeId * MR_meshOnEdgeSplitFaceAttribute ( const MR_Mesh * mesh,
const MR_MeshAttributesToUpdate * params )

Generated from function MR::meshOnEdgeSplitFaceAttribute. Parameter mesh can not be null. It is a single object. Parameter params can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_std_function_void_from_MR_EdgeId_MR_EdgeId_Destroy() to free it when you're done using it.

◆ MR_meshOnEdgeSplitVertAttribute()

MRC_API MR_std_function_void_from_MR_EdgeId_MR_EdgeId * MR_meshOnEdgeSplitVertAttribute ( const MR_Mesh * mesh,
const MR_MeshAttributesToUpdate * params )

Generated from function MR::meshOnEdgeSplitVertAttribute. Parameter mesh can not be null. It is a single object. Parameter params can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_std_function_void_from_MR_EdgeId_MR_EdgeId_Destroy() to free it when you're done using it.