Skip to content

Commit

Permalink
Added multiple API Override channels
Browse files Browse the repository at this point in the history
  • Loading branch information
netfabb committed Sep 26, 2024
1 parent 22e9131 commit e4f485c
Show file tree
Hide file tree
Showing 32 changed files with 3,485 additions and 720 deletions.
144 changes: 132 additions & 12 deletions Autogenerated/Bindings/C/lib3mf.h

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions Autogenerated/Bindings/C/lib3mf_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ typedef void * Lib3MF_pvoid;
#define LIB3MF_ERROR_TOOLPATH_INVALIDPOINTCOORDINATE 4011 /** Invalid point coordinate. */
#define LIB3MF_ERROR_TOOLPATH_INVALIDHATCHCOUNT 4012 /** Invalid hatch count */
#define LIB3MF_ERROR_TOOLPATH_SCALINGDATANEEDSTOMATCHHATCHDATA 4013 /** Scaling data needs to match hatch data */
#define LIB3MF_ERROR_TOOLPATH_SCALINGDATANEEDSTOMATCHPOINTDATA 4014 /** Scaling data needs to match point data */

/*************************************************************************************************************************
Error strings for Lib3MF
Expand Down Expand Up @@ -224,6 +225,7 @@ inline const char * LIB3MF_GETERRORSTRING (Lib3MFResult nErrorCode) {
case LIB3MF_ERROR_TOOLPATH_INVALIDPOINTCOORDINATE: return "Invalid point coordinate.";
case LIB3MF_ERROR_TOOLPATH_INVALIDHATCHCOUNT: return "Invalid hatch count";
case LIB3MF_ERROR_TOOLPATH_SCALINGDATANEEDSTOMATCHHATCHDATA: return "Scaling data needs to match hatch data";
case LIB3MF_ERROR_TOOLPATH_SCALINGDATANEEDSTOMATCHPOINTDATA: return "Scaling data needs to match point data";
default: return "unknown error";
}
}
Expand Down
74 changes: 67 additions & 7 deletions Autogenerated/Bindings/CDynamic/lib3mf_dynamic.cc
Original file line number Diff line number Diff line change
Expand Up @@ -391,17 +391,23 @@ Lib3MFResult InitLib3MFWrapperTable(sLib3MFDynamicWrapperTable * pWrapperTable)
pWrapperTable->m_ToolpathLayerData_WriteHatchDataInModelUnits = NULL;
pWrapperTable->m_ToolpathLayerData_WriteHatchDataInModelUnitsWithConstantOverrides = NULL;
pWrapperTable->m_ToolpathLayerData_WriteHatchDataInModelUnitsWithRampedOverrides = NULL;
pWrapperTable->m_ToolpathLayerData_WriteHatchDataInModelUnitsWithMultipleOverrides = NULL;
pWrapperTable->m_ToolpathLayerData_WriteHatchDataDiscrete = NULL;
pWrapperTable->m_ToolpathLayerData_WriteHatchDataDiscreteWithConstantOverrides = NULL;
pWrapperTable->m_ToolpathLayerData_WriteHatchDataDiscreteWithRampedOverrides = NULL;
pWrapperTable->m_ToolpathLayerData_WriteHatchDataDiscreteWithMultipleOverrides = NULL;
pWrapperTable->m_ToolpathLayerData_WriteLoopInModelUnits = NULL;
pWrapperTable->m_ToolpathLayerData_WriteLoopDiscrete = NULL;
pWrapperTable->m_ToolpathLayerData_WriteLoopInModelUnitsWithOverrides = NULL;
pWrapperTable->m_ToolpathLayerData_WriteLoopInModelUnitsWithMultipleOverrides = NULL;
pWrapperTable->m_ToolpathLayerData_WriteLoopDiscreteWithOverrides = NULL;
pWrapperTable->m_ToolpathLayerData_WriteLoopDiscreteWithMultipleOverrides = NULL;
pWrapperTable->m_ToolpathLayerData_WritePolylineInModelUnits = NULL;
pWrapperTable->m_ToolpathLayerData_WritePolylineDiscrete = NULL;
pWrapperTable->m_ToolpathLayerData_WritePolylineInModelUnitsWithOverrides = NULL;
pWrapperTable->m_ToolpathLayerData_WritePolylineInModelUnitsWithMultipleOverrides = NULL;
pWrapperTable->m_ToolpathLayerData_WritePolylineDiscrete = NULL;
pWrapperTable->m_ToolpathLayerData_WritePolylineDiscreteWithOverrides = NULL;
pWrapperTable->m_ToolpathLayerData_WritePolylineDiscreteWithMultipleOverrides = NULL;
pWrapperTable->m_ToolpathLayerData_AddCustomData = NULL;
pWrapperTable->m_ToolpathLayerData_Finish = NULL;
pWrapperTable->m_Toolpath_GetUUID = NULL;
Expand Down Expand Up @@ -3710,6 +3716,15 @@ Lib3MFResult LoadLib3MFWrapperTable(sLib3MFDynamicWrapperTable * pWrapperTable,
if (pWrapperTable->m_ToolpathLayerData_WriteHatchDataInModelUnitsWithRampedOverrides == NULL)
return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT;

#ifdef _WIN32
pWrapperTable->m_ToolpathLayerData_WriteHatchDataInModelUnitsWithMultipleOverrides = (PLib3MFToolpathLayerData_WriteHatchDataInModelUnitsWithMultipleOverridesPtr) GetProcAddress(hLibrary, "lib3mf_toolpathlayerdata_writehatchdatainmodelunitswithmultipleoverrides");
#else // _WIN32
pWrapperTable->m_ToolpathLayerData_WriteHatchDataInModelUnitsWithMultipleOverrides = (PLib3MFToolpathLayerData_WriteHatchDataInModelUnitsWithMultipleOverridesPtr) dlsym(hLibrary, "lib3mf_toolpathlayerdata_writehatchdatainmodelunitswithmultipleoverrides");
dlerror();
#endif // _WIN32
if (pWrapperTable->m_ToolpathLayerData_WriteHatchDataInModelUnitsWithMultipleOverrides == NULL)
return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT;

#ifdef _WIN32
pWrapperTable->m_ToolpathLayerData_WriteHatchDataDiscrete = (PLib3MFToolpathLayerData_WriteHatchDataDiscretePtr) GetProcAddress(hLibrary, "lib3mf_toolpathlayerdata_writehatchdatadiscrete");
#else // _WIN32
Expand Down Expand Up @@ -3737,6 +3752,15 @@ Lib3MFResult LoadLib3MFWrapperTable(sLib3MFDynamicWrapperTable * pWrapperTable,
if (pWrapperTable->m_ToolpathLayerData_WriteHatchDataDiscreteWithRampedOverrides == NULL)
return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT;

#ifdef _WIN32
pWrapperTable->m_ToolpathLayerData_WriteHatchDataDiscreteWithMultipleOverrides = (PLib3MFToolpathLayerData_WriteHatchDataDiscreteWithMultipleOverridesPtr) GetProcAddress(hLibrary, "lib3mf_toolpathlayerdata_writehatchdatadiscretewithmultipleoverrides");
#else // _WIN32
pWrapperTable->m_ToolpathLayerData_WriteHatchDataDiscreteWithMultipleOverrides = (PLib3MFToolpathLayerData_WriteHatchDataDiscreteWithMultipleOverridesPtr) dlsym(hLibrary, "lib3mf_toolpathlayerdata_writehatchdatadiscretewithmultipleoverrides");
dlerror();
#endif // _WIN32
if (pWrapperTable->m_ToolpathLayerData_WriteHatchDataDiscreteWithMultipleOverrides == NULL)
return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT;

#ifdef _WIN32
pWrapperTable->m_ToolpathLayerData_WriteLoopInModelUnits = (PLib3MFToolpathLayerData_WriteLoopInModelUnitsPtr) GetProcAddress(hLibrary, "lib3mf_toolpathlayerdata_writeloopinmodelunits");
#else // _WIN32
Expand Down Expand Up @@ -3764,6 +3788,15 @@ Lib3MFResult LoadLib3MFWrapperTable(sLib3MFDynamicWrapperTable * pWrapperTable,
if (pWrapperTable->m_ToolpathLayerData_WriteLoopInModelUnitsWithOverrides == NULL)
return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT;

#ifdef _WIN32
pWrapperTable->m_ToolpathLayerData_WriteLoopInModelUnitsWithMultipleOverrides = (PLib3MFToolpathLayerData_WriteLoopInModelUnitsWithMultipleOverridesPtr) GetProcAddress(hLibrary, "lib3mf_toolpathlayerdata_writeloopinmodelunitswithmultipleoverrides");
#else // _WIN32
pWrapperTable->m_ToolpathLayerData_WriteLoopInModelUnitsWithMultipleOverrides = (PLib3MFToolpathLayerData_WriteLoopInModelUnitsWithMultipleOverridesPtr) dlsym(hLibrary, "lib3mf_toolpathlayerdata_writeloopinmodelunitswithmultipleoverrides");
dlerror();
#endif // _WIN32
if (pWrapperTable->m_ToolpathLayerData_WriteLoopInModelUnitsWithMultipleOverrides == NULL)
return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT;

#ifdef _WIN32
pWrapperTable->m_ToolpathLayerData_WriteLoopDiscreteWithOverrides = (PLib3MFToolpathLayerData_WriteLoopDiscreteWithOverridesPtr) GetProcAddress(hLibrary, "lib3mf_toolpathlayerdata_writeloopdiscretewithoverrides");
#else // _WIN32
Expand All @@ -3774,21 +3807,21 @@ Lib3MFResult LoadLib3MFWrapperTable(sLib3MFDynamicWrapperTable * pWrapperTable,
return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT;

#ifdef _WIN32
pWrapperTable->m_ToolpathLayerData_WritePolylineInModelUnits = (PLib3MFToolpathLayerData_WritePolylineInModelUnitsPtr) GetProcAddress(hLibrary, "lib3mf_toolpathlayerdata_writepolylineinmodelunits");
pWrapperTable->m_ToolpathLayerData_WriteLoopDiscreteWithMultipleOverrides = (PLib3MFToolpathLayerData_WriteLoopDiscreteWithMultipleOverridesPtr) GetProcAddress(hLibrary, "lib3mf_toolpathlayerdata_writeloopdiscretewithmultipleoverrides");
#else // _WIN32
pWrapperTable->m_ToolpathLayerData_WritePolylineInModelUnits = (PLib3MFToolpathLayerData_WritePolylineInModelUnitsPtr) dlsym(hLibrary, "lib3mf_toolpathlayerdata_writepolylineinmodelunits");
pWrapperTable->m_ToolpathLayerData_WriteLoopDiscreteWithMultipleOverrides = (PLib3MFToolpathLayerData_WriteLoopDiscreteWithMultipleOverridesPtr) dlsym(hLibrary, "lib3mf_toolpathlayerdata_writeloopdiscretewithmultipleoverrides");
dlerror();
#endif // _WIN32
if (pWrapperTable->m_ToolpathLayerData_WritePolylineInModelUnits == NULL)
if (pWrapperTable->m_ToolpathLayerData_WriteLoopDiscreteWithMultipleOverrides == NULL)
return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT;

#ifdef _WIN32
pWrapperTable->m_ToolpathLayerData_WritePolylineDiscrete = (PLib3MFToolpathLayerData_WritePolylineDiscretePtr) GetProcAddress(hLibrary, "lib3mf_toolpathlayerdata_writepolylinediscrete");
pWrapperTable->m_ToolpathLayerData_WritePolylineInModelUnits = (PLib3MFToolpathLayerData_WritePolylineInModelUnitsPtr) GetProcAddress(hLibrary, "lib3mf_toolpathlayerdata_writepolylineinmodelunits");
#else // _WIN32
pWrapperTable->m_ToolpathLayerData_WritePolylineDiscrete = (PLib3MFToolpathLayerData_WritePolylineDiscretePtr) dlsym(hLibrary, "lib3mf_toolpathlayerdata_writepolylinediscrete");
pWrapperTable->m_ToolpathLayerData_WritePolylineInModelUnits = (PLib3MFToolpathLayerData_WritePolylineInModelUnitsPtr) dlsym(hLibrary, "lib3mf_toolpathlayerdata_writepolylineinmodelunits");
dlerror();
#endif // _WIN32
if (pWrapperTable->m_ToolpathLayerData_WritePolylineDiscrete == NULL)
if (pWrapperTable->m_ToolpathLayerData_WritePolylineInModelUnits == NULL)
return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT;

#ifdef _WIN32
Expand All @@ -3800,6 +3833,24 @@ Lib3MFResult LoadLib3MFWrapperTable(sLib3MFDynamicWrapperTable * pWrapperTable,
if (pWrapperTable->m_ToolpathLayerData_WritePolylineInModelUnitsWithOverrides == NULL)
return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT;

#ifdef _WIN32
pWrapperTable->m_ToolpathLayerData_WritePolylineInModelUnitsWithMultipleOverrides = (PLib3MFToolpathLayerData_WritePolylineInModelUnitsWithMultipleOverridesPtr) GetProcAddress(hLibrary, "lib3mf_toolpathlayerdata_writepolylineinmodelunitswithmultipleoverrides");
#else // _WIN32
pWrapperTable->m_ToolpathLayerData_WritePolylineInModelUnitsWithMultipleOverrides = (PLib3MFToolpathLayerData_WritePolylineInModelUnitsWithMultipleOverridesPtr) dlsym(hLibrary, "lib3mf_toolpathlayerdata_writepolylineinmodelunitswithmultipleoverrides");
dlerror();
#endif // _WIN32
if (pWrapperTable->m_ToolpathLayerData_WritePolylineInModelUnitsWithMultipleOverrides == NULL)
return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT;

#ifdef _WIN32
pWrapperTable->m_ToolpathLayerData_WritePolylineDiscrete = (PLib3MFToolpathLayerData_WritePolylineDiscretePtr) GetProcAddress(hLibrary, "lib3mf_toolpathlayerdata_writepolylinediscrete");
#else // _WIN32
pWrapperTable->m_ToolpathLayerData_WritePolylineDiscrete = (PLib3MFToolpathLayerData_WritePolylineDiscretePtr) dlsym(hLibrary, "lib3mf_toolpathlayerdata_writepolylinediscrete");
dlerror();
#endif // _WIN32
if (pWrapperTable->m_ToolpathLayerData_WritePolylineDiscrete == NULL)
return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT;

#ifdef _WIN32
pWrapperTable->m_ToolpathLayerData_WritePolylineDiscreteWithOverrides = (PLib3MFToolpathLayerData_WritePolylineDiscreteWithOverridesPtr) GetProcAddress(hLibrary, "lib3mf_toolpathlayerdata_writepolylinediscretewithoverrides");
#else // _WIN32
Expand All @@ -3809,6 +3860,15 @@ Lib3MFResult LoadLib3MFWrapperTable(sLib3MFDynamicWrapperTable * pWrapperTable,
if (pWrapperTable->m_ToolpathLayerData_WritePolylineDiscreteWithOverrides == NULL)
return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT;

#ifdef _WIN32
pWrapperTable->m_ToolpathLayerData_WritePolylineDiscreteWithMultipleOverrides = (PLib3MFToolpathLayerData_WritePolylineDiscreteWithMultipleOverridesPtr) GetProcAddress(hLibrary, "lib3mf_toolpathlayerdata_writepolylinediscretewithmultipleoverrides");
#else // _WIN32
pWrapperTable->m_ToolpathLayerData_WritePolylineDiscreteWithMultipleOverrides = (PLib3MFToolpathLayerData_WritePolylineDiscreteWithMultipleOverridesPtr) dlsym(hLibrary, "lib3mf_toolpathlayerdata_writepolylinediscretewithmultipleoverrides");
dlerror();
#endif // _WIN32
if (pWrapperTable->m_ToolpathLayerData_WritePolylineDiscreteWithMultipleOverrides == NULL)
return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT;

#ifdef _WIN32
pWrapperTable->m_ToolpathLayerData_AddCustomData = (PLib3MFToolpathLayerData_AddCustomDataPtr) GetProcAddress(hLibrary, "lib3mf_toolpathlayerdata_addcustomdata");
#else // _WIN32
Expand Down
Loading

0 comments on commit e4f485c

Please sign in to comment.