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

Go to the source code of this file.

Typedefs

typedef struct MR_Mesh MR_Mesh
 
typedef struct MR_PointCloud MR_PointCloud
 
typedef struct MR_VertBitSet MR_VertBitSet
 

Functions

MRC_API MR_PointCloudMR_meshToPointCloud (const MR_Mesh *mesh, const bool *saveNormals, const MR_VertBitSet *verts)
 

Typedef Documentation

◆ MR_Mesh

typedef struct MR_Mesh MR_Mesh

◆ MR_PointCloud

typedef struct MR_PointCloud MR_PointCloud

◆ MR_VertBitSet

typedef struct MR_VertBitSet MR_VertBitSet

Function Documentation

◆ MR_meshToPointCloud()

MRC_API MR_PointCloud * MR_meshToPointCloud ( const MR_Mesh * mesh,
const bool * saveNormals,
const MR_VertBitSet * verts )

Mesh to PointCloud Generated from function MR::meshToPointCloud. Parameter mesh can not be null. It is a single object. Parameter saveNormals has a default argument: true, pass a null pointer to use it. Parameter verts defaults to a null pointer in C++. Never returns null. Returns an instance allocated on the heap! Must call MR_PointCloud_Destroy() to free it when you're done using it.