MeshLib C Docs
Loading...
Searching...
No Matches
MREndMill.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMisc/exports.h>
4
5#include <stddef.h>
6#include <stdint.h>
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12typedef struct MR_Mesh MR_Mesh; // Defined in `#include <MRCMesh/MRMesh.h>`.
13
14
18
20typedef int32_t MR_EndMillCutter_Type;
21enum // MR_EndMillCutter_Type
22{
33};
34
38
43
47
52
58
63
69
75
80
86
92
97
103
107
112
115MRC_API MR_EndMillCutter *MR_EndMillCutter_ConstructFrom(MR_EndMillCutter_Type type, float cornerRadius, float cuttingAngle, float endDiameter);
116
119
122
127
130
133
139
145
150
156
162
167
173
179
185
191
195
200
204MRC_API MR_EndMillTool *MR_EndMillTool_ConstructFrom(float length, float diameter, const MR_EndMillCutter *cutter);
205
208
211
216
219
222
228
233
240MRC_API MR_Mesh *MR_EndMillTool_toMesh(const MR_EndMillTool *_this, const int32_t *horizontalResolution, const int32_t *verticalResolution);
241
242#ifdef __cplusplus
243} // extern "C"
244#endif
struct MR_Mesh MR_Mesh
Definition MRCtm.h:13
struct MR_EndMillCutter MR_EndMillCutter
Definition MREndMill.h:17
int32_t MR_EndMillCutter_Type
cutter type
Definition MREndMill.h:20
MRC_API MR_EndMillCutter * MR_EndMillCutter_AssignFromAnother(MR_EndMillCutter *_this, const MR_EndMillCutter *_other)
MRC_API MR_EndMillTool * MR_EndMillTool_OffsetMutablePtr(MR_EndMillTool *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API const MR_EndMillCutter * MR_EndMillCutter_OffsetPtr(const MR_EndMillCutter *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API void MR_EndMillCutter_Set_cuttingAngle(MR_EndMillCutter *_this, float value)
MRC_API float * MR_EndMillTool_GetMutable_diameter(MR_EndMillTool *_this)
MRC_API MR_EndMillCutter * MR_EndMillCutter_ConstructFrom(MR_EndMillCutter_Type type, float cornerRadius, float cuttingAngle, float endDiameter)
MRC_API void MR_EndMillTool_Destroy(const MR_EndMillTool *_this)
Destroys a heap-allocated instance of MR_EndMillTool. Does nothing if the pointer is null.
MRC_API void MR_EndMillTool_Set_length(MR_EndMillTool *_this, float value)
MRC_API MR_EndMillCutter_Type * MR_EndMillCutter_GetMutable_type(MR_EndMillCutter *_this)
MRC_API MR_Mesh * MR_EndMillTool_toMesh(const MR_EndMillTool *_this, const int32_t *horizontalResolution, const int32_t *verticalResolution)
MRC_API const float * MR_EndMillCutter_Get_endDiameter(const MR_EndMillCutter *_this)
MRC_API MR_EndMillCutter * MR_EndMillCutter_OffsetMutablePtr(MR_EndMillCutter *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API const MR_EndMillCutter * MR_EndMillTool_Get_cutter(const MR_EndMillTool *_this)
MRC_API MR_EndMillTool * MR_EndMillTool_ConstructFrom(float length, float diameter, const MR_EndMillCutter *cutter)
MRC_API float * MR_EndMillCutter_GetMutable_cuttingAngle(MR_EndMillCutter *_this)
MRC_API MR_EndMillTool * MR_EndMillTool_DefaultConstructArray(size_t num_elems)
MRC_API const float * MR_EndMillCutter_Get_cuttingAngle(const MR_EndMillCutter *_this)
MRC_API const MR_EndMillTool * MR_EndMillTool_OffsetPtr(const MR_EndMillTool *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API MR_EndMillTool * MR_EndMillTool_DefaultConstruct(void)
MRC_API void MR_EndMillTool_Set_diameter(MR_EndMillTool *_this, float value)
MRC_API void MR_EndMillTool_Set_cutter(MR_EndMillTool *_this, const MR_EndMillCutter *value)
MRC_API float MR_EndMillTool_getMinimalCutLength(const MR_EndMillTool *_this)
MRC_API MR_EndMillTool * MR_EndMillTool_AssignFromAnother(MR_EndMillTool *_this, const MR_EndMillTool *_other)
MRC_API void MR_EndMillCutter_Set_type(MR_EndMillCutter *_this, MR_EndMillCutter_Type value)
MRC_API float * MR_EndMillCutter_GetMutable_cornerRadius(MR_EndMillCutter *_this)
MRC_API MR_EndMillCutter * MR_EndMillTool_GetMutable_cutter(MR_EndMillTool *_this)
MRC_API const MR_EndMillCutter_Type * MR_EndMillCutter_Get_type(const MR_EndMillCutter *_this)
MRC_API const float * MR_EndMillTool_Get_length(const MR_EndMillTool *_this)
MRC_API const float * MR_EndMillTool_Get_diameter(const MR_EndMillTool *_this)
MRC_API MR_EndMillCutter * MR_EndMillCutter_DefaultConstruct(void)
@ MR_EndMillCutter_Type_BullNose
bull nose end mill
Definition MREndMill.h:28
@ MR_EndMillCutter_Type_Ball
ball end mill
Definition MREndMill.h:26
@ MR_EndMillCutter_Type_Count
chamfer end mill
Definition MREndMill.h:32
@ MR_EndMillCutter_Type_Chamfer
chamfer end mill
Definition MREndMill.h:30
@ MR_EndMillCutter_Type_Flat
flat end mill
Definition MREndMill.h:24
MRC_API void MR_EndMillTool_DestroyArray(const MR_EndMillTool *_this)
Destroys a heap-allocated array of MR_EndMillTool. Does nothing if the pointer is null.
MRC_API void MR_EndMillCutter_Set_cornerRadius(MR_EndMillCutter *_this, float value)
MRC_API void MR_EndMillCutter_Destroy(const MR_EndMillCutter *_this)
Destroys a heap-allocated instance of MR_EndMillCutter. Does nothing if the pointer is null.
MRC_API void MR_EndMillCutter_DestroyArray(const MR_EndMillCutter *_this)
Destroys a heap-allocated array of MR_EndMillCutter. Does nothing if the pointer is null.
MRC_API const float * MR_EndMillCutter_Get_cornerRadius(const MR_EndMillCutter *_this)
MRC_API void MR_EndMillCutter_Set_endDiameter(MR_EndMillCutter *_this, float value)
MRC_API float * MR_EndMillTool_GetMutable_length(MR_EndMillTool *_this)
MRC_API float * MR_EndMillCutter_GetMutable_endDiameter(MR_EndMillCutter *_this)
MRC_API MR_EndMillTool * MR_EndMillTool_ConstructFromAnother(const MR_EndMillTool *_other)
MRC_API MR_EndMillCutter * MR_EndMillCutter_ConstructFromAnother(const MR_EndMillCutter *_other)
MRC_API MR_EndMillCutter * MR_EndMillCutter_DefaultConstructArray(size_t num_elems)
struct MR_EndMillTool MR_EndMillTool
Definition MREndMill.h:37
#define MRC_API
Definition exports.h:11