MeshLib C Docs
Loading...
Searching...
No Matches
MRCylinder.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
 

Functions

MRC_API MR_MeshMR_makeCylinder (const float *radius, const float *length, const int32_t *resolution)
 
MRC_API MR_MeshMR_makeOpenCylinder (const float *radius, const float *z1, const float *z2, const int32_t *numCircleSegments)
 
MRC_API MR_MeshMR_makeOpenCone (const float *radius, const float *zApex, const float *zBase, const int32_t *numCircleSegments)
 
MRC_API MR_MeshMR_makeCylinderAdvanced (const float *radius0, const float *radius1, const float *start_angle, const float *arc_size, const float *length, const int32_t *resolution)
 
MRC_API MR_MeshMR_makeCone (const float *radius0, const float *length, const int32_t *resolution)
 

Typedef Documentation

◆ MR_Mesh

typedef struct MR_Mesh MR_Mesh

Function Documentation

◆ MR_makeCone()

MRC_API MR_Mesh * MR_makeCone ( const float * radius0,
const float * length,
const int32_t * resolution )

Generated from function MR::makeCone. Parameter radius0 has a default argument: 0.100000001F, pass a null pointer to use it. Parameter length has a default argument: 1.F, pass a null pointer to use it. Parameter resolution has a default argument: 32, 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.

◆ MR_makeCylinder()

MRC_API MR_Mesh * MR_makeCylinder ( const float * radius,
const float * length,
const int32_t * resolution )

Generated from function MR::makeCylinder. Parameter radius has a default argument: 0.100000001F, pass a null pointer to use it. Parameter length has a default argument: 1.F, pass a null pointer to use it. 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.

◆ MR_makeCylinderAdvanced()

MRC_API MR_Mesh * MR_makeCylinderAdvanced ( const float * radius0,
const float * radius1,
const float * start_angle,
const float * arc_size,
const float * length,
const int32_t * resolution )

Generated from function MR::makeCylinderAdvanced. Parameter radius0 has a default argument: 0.100000001F, pass a null pointer to use it. Parameter radius1 has a default argument: 0.100000001F, pass a null pointer to use it. Parameter start_angle has a default argument: 0.F, pass a null pointer to use it. Parameter arc_size has a default argument: 2.F * PI_F, pass a null pointer to use it. Parameter length has a default argument: 1.F, pass a null pointer to use it. 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.

◆ MR_makeOpenCone()

MRC_API MR_Mesh * MR_makeOpenCone ( const float * radius,
const float * zApex,
const float * zBase,
const int32_t * numCircleSegments )

Generated from function MR::makeOpenCone. Parameter radius has a default argument: 1, pass a null pointer to use it. Parameter zApex has a default argument: 0, pass a null pointer to use it. Parameter zBase has a default argument: 1, pass a null pointer to use it. Parameter numCircleSegments 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.

◆ MR_makeOpenCylinder()

MRC_API MR_Mesh * MR_makeOpenCylinder ( const float * radius,
const float * z1,
const float * z2,
const int32_t * numCircleSegments )

Generated from function MR::makeOpenCylinder. Parameter radius has a default argument: 1, pass a null pointer to use it. Parameter z1 has a default argument: -1, pass a null pointer to use it. Parameter z2 has a default argument: 1, pass a null pointer to use it. Parameter numCircleSegments 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.