Skip to content

Commit

Permalink
Revised Toolpath API
Browse files Browse the repository at this point in the history
  • Loading branch information
netfabb committed Sep 16, 2024
1 parent 4c8a280 commit 8e72c14
Show file tree
Hide file tree
Showing 45 changed files with 5,022 additions and 850 deletions.
159 changes: 137 additions & 22 deletions Autogenerated/Bindings/C/lib3mf.h

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions Autogenerated/Bindings/C/lib3mf_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ typedef void * Lib3MF_pvoid;
#define LIB3MF_ERROR_EMPTYNAMESPACE 4007 /** Empty namespace. */
#define LIB3MF_ERROR_INVALIDNAMESPACEPREFIX 4008 /** Invalid namespace prefix. */
#define LIB3MF_ERROR_WRITERDOESNOTSUPPORTNAMESPACES 4009 /** Writer does not support namespaces. */
#define LIB3MF_ERROR_TOOLPATH_INVALIDHATCHCOORDINATE 4010 /** Invalid hatch coordinate. */
#define LIB3MF_ERROR_TOOLPATH_INVALIDPOINTCOORDINATE 4011 /** Invalid point coordinate. */
#define LIB3MF_ERROR_TOOLPATH_INVALIDHATCHCOUNT 4012 /** Invalid hatch count */

/*************************************************************************************************************************
Error strings for Lib3MF
Expand Down Expand Up @@ -216,6 +219,9 @@ inline const char * LIB3MF_GETERRORSTRING (Lib3MFResult nErrorCode) {
case LIB3MF_ERROR_EMPTYNAMESPACE: return "Empty namespace.";
case LIB3MF_ERROR_INVALIDNAMESPACEPREFIX: return "Invalid namespace prefix.";
case LIB3MF_ERROR_WRITERDOESNOTSUPPORTNAMESPACES: return "Writer does not support namespaces.";
case LIB3MF_ERROR_TOOLPATH_INVALIDHATCHCOORDINATE: return "Invalid hatch coordinate.";
case LIB3MF_ERROR_TOOLPATH_INVALIDPOINTCOORDINATE: return "Invalid point coordinate.";
case LIB3MF_ERROR_TOOLPATH_INVALIDHATCHCOUNT: return "Invalid hatch count";
default: return "unknown error";
}
}
Expand Down Expand Up @@ -565,6 +571,20 @@ typedef struct sLib3MFPosition2D {
Lib3MF_single m_Coordinates[2];
} sLib3MFPosition2D;

typedef struct sLib3MFDiscretePosition2D {
Lib3MF_int32 m_Coordinates[2];
} sLib3MFDiscretePosition2D;

typedef struct sLib3MFHatch2D {
Lib3MF_single m_Point1Coordinates[2];
Lib3MF_single m_Point2Coordinates[2];
} sLib3MFHatch2D;

typedef struct sLib3MFDiscreteHatch2D {
Lib3MF_int32 m_Point1Coordinates[2];
Lib3MF_int32 m_Point2Coordinates[2];
} sLib3MFDiscreteHatch2D;

typedef struct sLib3MFCompositeConstituent {
Lib3MF_uint32 m_PropertyID;
Lib3MF_double m_MixingRatio;
Expand Down
156 changes: 128 additions & 28 deletions Autogenerated/Bindings/CDynamic/lib3mf_dynamic.cc

Large diffs are not rendered by default.

183 changes: 154 additions & 29 deletions Autogenerated/Bindings/CDynamic/lib3mf_dynamic.h

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions Autogenerated/Bindings/CDynamic/lib3mf_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ typedef void * Lib3MF_pvoid;
#define LIB3MF_ERROR_EMPTYNAMESPACE 4007 /** Empty namespace. */
#define LIB3MF_ERROR_INVALIDNAMESPACEPREFIX 4008 /** Invalid namespace prefix. */
#define LIB3MF_ERROR_WRITERDOESNOTSUPPORTNAMESPACES 4009 /** Writer does not support namespaces. */
#define LIB3MF_ERROR_TOOLPATH_INVALIDHATCHCOORDINATE 4010 /** Invalid hatch coordinate. */
#define LIB3MF_ERROR_TOOLPATH_INVALIDPOINTCOORDINATE 4011 /** Invalid point coordinate. */
#define LIB3MF_ERROR_TOOLPATH_INVALIDHATCHCOUNT 4012 /** Invalid hatch count */

/*************************************************************************************************************************
Error strings for Lib3MF
Expand Down Expand Up @@ -216,6 +219,9 @@ inline const char * LIB3MF_GETERRORSTRING (Lib3MFResult nErrorCode) {
case LIB3MF_ERROR_EMPTYNAMESPACE: return "Empty namespace.";
case LIB3MF_ERROR_INVALIDNAMESPACEPREFIX: return "Invalid namespace prefix.";
case LIB3MF_ERROR_WRITERDOESNOTSUPPORTNAMESPACES: return "Writer does not support namespaces.";
case LIB3MF_ERROR_TOOLPATH_INVALIDHATCHCOORDINATE: return "Invalid hatch coordinate.";
case LIB3MF_ERROR_TOOLPATH_INVALIDPOINTCOORDINATE: return "Invalid point coordinate.";
case LIB3MF_ERROR_TOOLPATH_INVALIDHATCHCOUNT: return "Invalid hatch count";
default: return "unknown error";
}
}
Expand Down Expand Up @@ -565,6 +571,20 @@ typedef struct sLib3MFPosition2D {
Lib3MF_single m_Coordinates[2];
} sLib3MFPosition2D;

typedef struct sLib3MFDiscretePosition2D {
Lib3MF_int32 m_Coordinates[2];
} sLib3MFDiscretePosition2D;

typedef struct sLib3MFHatch2D {
Lib3MF_single m_Point1Coordinates[2];
Lib3MF_single m_Point2Coordinates[2];
} sLib3MFHatch2D;

typedef struct sLib3MFDiscreteHatch2D {
Lib3MF_int32 m_Point1Coordinates[2];
Lib3MF_int32 m_Point2Coordinates[2];
} sLib3MFDiscreteHatch2D;

typedef struct sLib3MFCompositeConstituent {
Lib3MF_uint32 m_PropertyID;
Lib3MF_double m_MixingRatio;
Expand Down
323 changes: 290 additions & 33 deletions Autogenerated/Bindings/CSharp/Lib3MF.cs

Large diffs are not rendered by default.

159 changes: 137 additions & 22 deletions Autogenerated/Bindings/Cpp/lib3mf_abi.hpp

Large diffs are not rendered by default.

229 changes: 186 additions & 43 deletions Autogenerated/Bindings/Cpp/lib3mf_implicit.hpp

Large diffs are not rendered by default.

23 changes: 23 additions & 0 deletions Autogenerated/Bindings/Cpp/lib3mf_types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ typedef void * Lib3MF_pvoid;
#define LIB3MF_ERROR_EMPTYNAMESPACE 4007 /** Empty namespace. */
#define LIB3MF_ERROR_INVALIDNAMESPACEPREFIX 4008 /** Invalid namespace prefix. */
#define LIB3MF_ERROR_WRITERDOESNOTSUPPORTNAMESPACES 4009 /** Writer does not support namespaces. */
#define LIB3MF_ERROR_TOOLPATH_INVALIDHATCHCOORDINATE 4010 /** Invalid hatch coordinate. */
#define LIB3MF_ERROR_TOOLPATH_INVALIDPOINTCOORDINATE 4011 /** Invalid point coordinate. */
#define LIB3MF_ERROR_TOOLPATH_INVALIDHATCHCOUNT 4012 /** Invalid hatch count */

/*************************************************************************************************************************
Error strings for Lib3MF
Expand Down Expand Up @@ -215,6 +218,9 @@ inline const char * LIB3MF_GETERRORSTRING (Lib3MFResult nErrorCode) {
case LIB3MF_ERROR_EMPTYNAMESPACE: return "Empty namespace.";
case LIB3MF_ERROR_INVALIDNAMESPACEPREFIX: return "Invalid namespace prefix.";
case LIB3MF_ERROR_WRITERDOESNOTSUPPORTNAMESPACES: return "Writer does not support namespaces.";
case LIB3MF_ERROR_TOOLPATH_INVALIDHATCHCOORDINATE: return "Invalid hatch coordinate.";
case LIB3MF_ERROR_TOOLPATH_INVALIDPOINTCOORDINATE: return "Invalid point coordinate.";
case LIB3MF_ERROR_TOOLPATH_INVALIDHATCHCOUNT: return "Invalid hatch count";
default: return "unknown error";
}
}
Expand Down Expand Up @@ -457,6 +463,20 @@ namespace Lib3MF {
Lib3MF_single m_Coordinates[2];
} sPosition2D;

typedef struct sDiscretePosition2D {
Lib3MF_int32 m_Coordinates[2];
} sDiscretePosition2D;

typedef struct sHatch2D {
Lib3MF_single m_Point1Coordinates[2];
Lib3MF_single m_Point2Coordinates[2];
} sHatch2D;

typedef struct sDiscreteHatch2D {
Lib3MF_int32 m_Point1Coordinates[2];
Lib3MF_int32 m_Point2Coordinates[2];
} sDiscreteHatch2D;

typedef struct sCompositeConstituent {
Lib3MF_uint32 m_PropertyID;
Lib3MF_double m_MixingRatio;
Expand Down Expand Up @@ -607,6 +627,9 @@ typedef Lib3MF::sTriangle sLib3MFTriangle;
typedef Lib3MF::sTriangleProperties sLib3MFTriangleProperties;
typedef Lib3MF::sPosition sLib3MFPosition;
typedef Lib3MF::sPosition2D sLib3MFPosition2D;
typedef Lib3MF::sDiscretePosition2D sLib3MFDiscretePosition2D;
typedef Lib3MF::sHatch2D sLib3MFHatch2D;
typedef Lib3MF::sDiscreteHatch2D sLib3MFDiscreteHatch2D;
typedef Lib3MF::sCompositeConstituent sLib3MFCompositeConstituent;
typedef Lib3MF::sMultiPropertyLayer sLib3MFMultiPropertyLayer;
typedef Lib3MF::sTex2Coord sLib3MFTex2Coord;
Expand Down
Loading

0 comments on commit 8e72c14

Please sign in to comment.