MeshLib C Docs
Loading...
Searching...
No Matches
MRArrow.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMisc/exports.h>
4
5#include <stdint.h>
6
7#ifdef __cplusplus
8extern "C" {
9#endif
10
11typedef struct MR_Mesh MR_Mesh; // Defined in `#include <MRCMesh/MRMesh.h>`.
12typedef struct MR_Vector3f MR_Vector3f; // Defined in `#include <MRCMesh/MRVector3.h>`.
13
14
15// creates hollow arrow from the 'base' to the 'vert'. Number of points on the circle 'qual' is between 3 and 256
26MRC_API MR_Mesh *MR_makeArrow(const MR_Vector3f *base, const MR_Vector3f *vert, const float *thickness, const float *coneRadius, const float *coneSize, const int32_t *qual);
27
28// creates the mesh with 3 axis arrows
39MRC_API MR_Mesh *MR_makeBasisAxes(const float *size, const float *thickness, const float *coneRadius, const float *coneSize, const int32_t *qual);
40
41#ifdef __cplusplus
42} // extern "C"
43#endif
MRC_API MR_Mesh * MR_makeArrow(const MR_Vector3f *base, const MR_Vector3f *vert, const float *thickness, const float *coneRadius, const float *coneSize, const int32_t *qual)
MRC_API MR_Mesh * MR_makeBasisAxes(const float *size, const float *thickness, const float *coneRadius, const float *coneSize, const int32_t *qual)
struct MR_Mesh MR_Mesh
Definition MRCtm.h:13
#define MRC_API
Definition exports.h:11
size_t size() const
Definition MRVector3.h:51