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

Go to the source code of this file.

Typedefs

typedef struct MR_Mesh MR_Mesh
 
typedef struct MR_std_vector_MR_Vector2f MR_std_vector_MR_Vector2f
 

Functions

MRC_API MR_MeshMR_makeSolidOfRevolution (const MR_std_vector_MR_Vector2f *profile, const int32_t *resolution)
 

Typedef Documentation

◆ MR_Mesh

typedef struct MR_Mesh MR_Mesh

◆ MR_std_vector_MR_Vector2f

Function Documentation

◆ MR_makeSolidOfRevolution()

MRC_API MR_Mesh * MR_makeSolidOfRevolution ( const MR_std_vector_MR_Vector2f * profile,
const int32_t * resolution )

Makes a solid-of-revolution mesh. The resulting mesh is symmetrical about the z-axis. The profile points must be in the format { distance to the z-axis; z value }. Generated from function MR::makeSolidOfRevolution. Parameter profile can not be null. It is a single object. Parameter resolution has a default argument: 16, pass a null pointer to use it. Never returns null. Returns an instance allocated on the heap! Must call MR_Mesh_Destroy() to free it when you're done using it.