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
7#ifdef __cplusplus
8extern "C" {
9#endif
10
11typedef struct MR_Mesh MR_Mesh; // Defined in `#include <MRCMesh/MRMesh.h>`.
12
13
17
32
36
41
45
50
56
61
67
73
78
84
90
95
101
105
110
113MRC_API MR_EndMillCutter *MR_EndMillCutter_ConstructFrom(MR_EndMillCutter_Type type, float cornerRadius, float cuttingAngle, float endDiameter);
114
117
120
125
128
131
137
143
148
154
160
165
171
177
183
189
193
198
202MRC_API MR_EndMillTool *MR_EndMillTool_ConstructFrom(float length, float diameter, const MR_EndMillCutter *cutter);
203
206
209
214
217
220
226
231
238MRC_API MR_Mesh *MR_EndMillTool_toMesh(const MR_EndMillTool *_this, const int *horizontalResolution, const int *verticalResolution);
239
240#ifdef __cplusplus
241} // extern "C"
242#endif
struct MR_Mesh MR_Mesh
Definition MRCtm.h:12
struct MR_EndMillCutter MR_EndMillCutter
Definition MREndMill.h:16
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 const float * MR_EndMillCutter_Get_endDiameter(const MR_EndMillCutter *_this)
MRC_API MR_Mesh * MR_EndMillTool_toMesh(const MR_EndMillTool *_this, const int *horizontalResolution, const int *verticalResolution)
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)
MR_EndMillCutter_Type
cutter type
Definition MREndMill.h:20
@ MR_EndMillCutter_Type_BullNose
bull nose end mill
Definition MREndMill.h:26
@ MR_EndMillCutter_Type_Ball
ball end mill
Definition MREndMill.h:24
@ MR_EndMillCutter_Type_Count
chamfer end mill
Definition MREndMill.h:30
@ MR_EndMillCutter_Type_Chamfer
chamfer end mill
Definition MREndMill.h:28
@ MR_EndMillCutter_Type_Flat
flat end mill
Definition MREndMill.h:22
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)
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:35
#define MRC_API
Definition exports.h:11