From d4074a65e1d4dc4d3429ca98ed3040524ff160ad Mon Sep 17 00:00:00 2001 From: Jan Orend <56254096+3dJan@users.noreply.github.com> Date: Fri, 5 Apr 2024 13:49:12 +0200 Subject: [PATCH] Renaming boundary shape to level set --- Autogenerated/Bindings/C/lib3mf.h | 82 ++-- Autogenerated/Bindings/C/lib3mf_types.h | 4 +- .../Bindings/CDynamic/lib3mf_dynamic.cc | 152 +++---- .../Bindings/CDynamic/lib3mf_dynamic.h | 120 +++--- .../Bindings/CDynamic/lib3mf_types.h | 4 +- Autogenerated/Bindings/CSharp/Lib3MF.cs | 142 +++--- Autogenerated/Bindings/Cpp/lib3mf_abi.hpp | 82 ++-- .../Bindings/Cpp/lib3mf_implicit.hpp | 176 ++++---- Autogenerated/Bindings/Cpp/lib3mf_types.hpp | 4 +- .../Bindings/CppDynamic/lib3mf_abi.hpp | 8 +- .../Bindings/CppDynamic/lib3mf_dynamic.h | 120 +++--- .../Bindings/CppDynamic/lib3mf_dynamic.hpp | 404 +++++++++--------- .../Bindings/CppDynamic/lib3mf_types.hpp | 4 +- Autogenerated/Bindings/Go/lib3mf.go | 192 ++++----- Autogenerated/Bindings/Go/lib3mf_dynamic.cc | 152 +++---- Autogenerated/Bindings/Go/lib3mf_dynamic.h | 120 +++--- Autogenerated/Bindings/Go/lib3mf_impl.go | 24 +- Autogenerated/Bindings/Go/lib3mf_types.h | 4 +- .../Bindings/NodeJS/lib3mf_dynamic.cc | 152 +++---- .../Bindings/NodeJS/lib3mf_dynamic.h | 120 +++--- .../Bindings/NodeJS/lib3mf_nodeaddon.cc | 4 +- .../Bindings/NodeJS/lib3mf_nodewrapper.cc | 220 +++++----- .../Bindings/NodeJS/lib3mf_nodewrapper.h | 22 +- Autogenerated/Bindings/NodeJS/lib3mf_types.h | 4 +- Autogenerated/Bindings/Pascal/Unit_Lib3MF.pas | 370 ++++++++-------- Autogenerated/Bindings/Python/Lib3MF.py | 260 +++++------ Autogenerated/Source/lib3mf_abi.hpp | 82 ++-- Autogenerated/Source/lib3mf_interfaces.hpp | 68 +-- .../Source/lib3mf_interfacewrapper.cpp | 310 +++++++------- Autogenerated/Source/lib3mf_types.hpp | 4 +- AutomaticComponentToolkit/lib3mf.xml | 20 +- ..._boundaryshape.hpp => lib3mf_levelset.hpp} | 48 +-- ...erator.hpp => lib3mf_levelsetiterator.hpp} | 10 +- Include/API/lib3mf_model.hpp | 4 +- Include/Common/NMR_ErrorConst.h | 16 +- Include/Model/Classes/NMR_Model.h | 6 +- Include/Model/Classes/NMR_ModelConstants.h | 2 +- ...hapeObject.h => NMR_ModelLevelsetObject.h} | 22 +- ...Shape.h => NMR_ModelReaderNode_Levelset.h} | 14 +- ...Shape.h => NMR_ModelWriterNode_Levelset.h} | 18 +- ..._boundaryshape.cpp => lib3mf_levelset.cpp} | 100 ++--- ...erator.cpp => lib3mf_levelsetiterator.cpp} | 12 +- Source/API/lib3mf_model.cpp | 22 +- Source/Common/NMR_Exception.cpp | 14 +- ...Object.cpp => NMR_ModelLevelsetObject.cpp} | 56 +-- ...e.cpp => NMR_ModelReaderNode_Levelset.cpp} | 32 +- .../v100/NMR_ModelReaderNode100_Object.cpp | 10 +- .../v100/NMR_ModelReaderNode100_Resources.cpp | 2 +- ...e.cpp => NMR_ModelWriterNode_Levelset.cpp} | 54 +-- .../v100/NMR_ModelWriterNode100_Model.cpp | 12 +- .../CPP_Bindings/Include/UnitTest_Utilities.h | 2 +- .../Source/UnitTest_Utilities.cpp | 6 +- Tests/CPP_Bindings/Source/Volumetric.cpp | 16 +- 53 files changed, 1954 insertions(+), 1954 deletions(-) rename Include/API/{lib3mf_boundaryshape.hpp => lib3mf_levelset.hpp} (67%) rename Include/API/{lib3mf_boundaryshapeiterator.hpp => lib3mf_levelsetiterator.hpp} (86%) rename Include/Model/Classes/{NMR_ModelBoundaryShapeObject.h => NMR_ModelLevelsetObject.h} (84%) rename Include/Model/Reader/Volumetric2201/{NMR_ModelReaderNode_BoundaryShape.h => NMR_ModelReaderNode_Levelset.h} (86%) rename Include/Model/Writer/{NMR_ModelWriterNode_BoundaryShape.h => NMR_ModelWriterNode_Levelset.h} (78%) rename Source/API/{lib3mf_boundaryshape.cpp => lib3mf_levelset.cpp} (57%) rename Source/API/{lib3mf_boundaryshapeiterator.cpp => lib3mf_levelsetiterator.cpp} (82%) rename Source/Model/Classes/{NMR_ModelBoundaryShapeObject.cpp => NMR_ModelLevelsetObject.cpp} (65%) rename Source/Model/Reader/Volumetric2201/{NMR_ModelReaderNode_BoundaryShape.cpp => NMR_ModelReaderNode_Levelset.cpp} (88%) rename Source/Model/Writer/{NMR_ModelWriterNode_BoundaryShape.cpp => NMR_ModelWriterNode_Levelset.cpp} (70%) diff --git a/Autogenerated/Bindings/C/lib3mf.h b/Autogenerated/Bindings/C/lib3mf.h index a05945db1..9490b43e6 100644 --- a/Autogenerated/Bindings/C/lib3mf.h +++ b/Autogenerated/Bindings/C/lib3mf.h @@ -602,17 +602,17 @@ LIB3MF_DECLSPEC Lib3MFResult lib3mf_image3diterator_getcurrentimage3d(Lib3MF_Ima LIB3MF_DECLSPEC Lib3MFResult lib3mf_functioniterator_getcurrentfunction(Lib3MF_FunctionIterator pFunctionIterator, Lib3MF_Function * pResource); /************************************************************************************************************************* - Class definition for BoundaryShapeIterator + Class definition for LevelSetIterator **************************************************************************************************************************/ /** -* Returns the BoundaryShape the iterator points at. +* Returns the LevelSet the iterator points at. * -* @param[in] pBoundaryShapeIterator - BoundaryShapeIterator instance. +* @param[in] pLevelSetIterator - LevelSetIterator instance. * @param[out] pResource - returns the MeshObject instance. * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_boundaryshapeiterator_getcurrentboundaryshape(Lib3MF_BoundaryShapeIterator pBoundaryShapeIterator, Lib3MF_BoundaryShape * pResource); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_levelsetiterator_getcurrentlevelset(Lib3MF_LevelSetIterator pLevelSetIterator, Lib3MF_LevelSet * pResource); /************************************************************************************************************************* Class definition for MetaData @@ -1224,154 +1224,154 @@ LIB3MF_DECLSPEC Lib3MFResult lib3mf_meshobject_getvolumedata(Lib3MF_MeshObject p LIB3MF_DECLSPEC Lib3MFResult lib3mf_meshobject_setvolumedata(Lib3MF_MeshObject pMeshObject, Lib3MF_VolumeData pTheVolumeData); /************************************************************************************************************************* - Class definition for BoundaryShape + Class definition for LevelSet **************************************************************************************************************************/ /** * Returns the function that is used as boundary shape. * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[out] pTheFunction - the function to use as boundary shape * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_boundaryshape_getfunction(Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_Function * pTheFunction); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_levelset_getfunction(Lib3MF_LevelSet pLevelSet, Lib3MF_Function * pTheFunction); /** * Sets the function to use as boundary shape. * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] pTheFunction - the function to use as boundary shape * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_boundaryshape_setfunction(Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_Function pTheFunction); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_levelset_setfunction(Lib3MF_LevelSet pLevelSet, Lib3MF_Function pTheFunction); /** * Returns the transformation matrix into the coordinate system of the referenced Function. * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[out] pTransform - the transformation matrix * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_boundaryshape_gettransform(Lib3MF_BoundaryShape pBoundaryShape, sLib3MFTransform * pTransform); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_levelset_gettransform(Lib3MF_LevelSet pLevelSet, sLib3MFTransform * pTransform); /** * Sets the transformation matrix into the coordinate system of the referenced Function. * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] pTransform - new transformation matrix * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_boundaryshape_settransform(Lib3MF_BoundaryShape pBoundaryShape, const sLib3MFTransform * pTransform); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_levelset_settransform(Lib3MF_LevelSet pLevelSet, const sLib3MFTransform * pTransform); /** * Returns the name of the function output channel to use. * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] nChannelNameBufferSize - size of the buffer (including trailing 0) * @param[out] pChannelNameNeededChars - will be filled with the count of the written bytes, or needed buffer size. * @param[out] pChannelNameBuffer - buffer of the name of the function output channel, may be NULL * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_boundaryshape_getchannelname(Lib3MF_BoundaryShape pBoundaryShape, const Lib3MF_uint32 nChannelNameBufferSize, Lib3MF_uint32* pChannelNameNeededChars, char * pChannelNameBuffer); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_levelset_getchannelname(Lib3MF_LevelSet pLevelSet, const Lib3MF_uint32 nChannelNameBufferSize, Lib3MF_uint32* pChannelNameNeededChars, char * pChannelNameBuffer); /** * Sets the name of the function output channel to use. * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] pChannelName - new name of the function output channel * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_boundaryshape_setchannelname(Lib3MF_BoundaryShape pBoundaryShape, const char * pChannelName); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_levelset_setchannelname(Lib3MF_LevelSet pLevelSet, const char * pChannelName); /** * Sets the minimal feature size as a hint for the function evaluator * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] dMinFeatureSize - minimal feature size * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_boundaryshape_setminfeaturesize(Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_double dMinFeatureSize); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_levelset_setminfeaturesize(Lib3MF_LevelSet pLevelSet, Lib3MF_double dMinFeatureSize); /** * Returns the minimal feature size as a hint for the function evaluator * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[out] pMinFeatureSize - minimal feature size * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_boundaryshape_getminfeaturesize(Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_double * pMinFeatureSize); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_levelset_getminfeaturesize(Lib3MF_LevelSet pLevelSet, Lib3MF_double * pMinFeatureSize); /** * Sets the fallback value to use if the function evaluation fails (e.g. evaluates to NaN or Inf). * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] dFallBackValue - fallback value * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_boundaryshape_setfallbackvalue(Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_double dFallBackValue); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_levelset_setfallbackvalue(Lib3MF_LevelSet pLevelSet, Lib3MF_double dFallBackValue); /** * Returns the fallback value to use if the function evaluation fails (e.g. evaluates to NaN or Inf). * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[out] pFallBackValue - fallback value * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_boundaryshape_getfallbackvalue(Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_double * pFallBackValue); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_levelset_getfallbackvalue(Lib3MF_LevelSet pLevelSet, Lib3MF_double * pFallBackValue); /** * If set only the bounding box of the mesh is intersected with the boundary * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] bMeshBBoxOnly - If set only the bounding box of the mesh is intersected with the boundary * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_boundaryshape_setmeshbboxonly(Lib3MF_BoundaryShape pBoundaryShape, bool bMeshBBoxOnly); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_levelset_setmeshbboxonly(Lib3MF_LevelSet pLevelSet, bool bMeshBBoxOnly); /** * If set only the bounding box of the mesh is intersected with the boundary * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[out] pMeshBBoxOnly - If set only the bounding box of the mesh is intersected with the boundary * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_boundaryshape_getmeshbboxonly(Lib3MF_BoundaryShape pBoundaryShape, bool * pMeshBBoxOnly); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_levelset_getmeshbboxonly(Lib3MF_LevelSet pLevelSet, bool * pMeshBBoxOnly); /** * Sets the mesh to use as evaluation domain * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] pTheMesh - The mesh * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_boundaryshape_setmesh(Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_MeshObject pTheMesh); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_levelset_setmesh(Lib3MF_LevelSet pLevelSet, Lib3MF_MeshObject pTheMesh); /** * Returns the mesh that is used as evaluation domain * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[out] pTheMesh - The mesh * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_boundaryshape_getmesh(Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_MeshObject * pTheMesh); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_levelset_getmesh(Lib3MF_LevelSet pLevelSet, Lib3MF_MeshObject * pTheMesh); /** * Retrieves the VolumeData this MeshObject. * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[out] pTheVolumeData - the VolumeData of this MeshObject * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_boundaryshape_getvolumedata(Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_VolumeData * pTheVolumeData); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_levelset_getvolumedata(Lib3MF_LevelSet pLevelSet, Lib3MF_VolumeData * pTheVolumeData); /** -* Sets the VolumeData of this BoundaryShape. +* Sets the VolumeData of this LevelSet. * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] pTheVolumeData - the VolumeData of this MeshObject * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_boundaryshape_setvolumedata(Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_VolumeData pTheVolumeData); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_levelset_setvolumedata(Lib3MF_LevelSet pLevelSet, Lib3MF_VolumeData pTheVolumeData); /************************************************************************************************************************* Class definition for BeamLattice @@ -6207,10 +6207,10 @@ LIB3MF_DECLSPEC Lib3MFResult lib3mf_model_addvolumedata(Lib3MF_Model pModel, Lib * adds an empty boundary shape object to the model. * * @param[in] pModel - Model instance. -* @param[out] pBoundaryShapeInstance - returns the mesh object instance +* @param[out] pLevelSetInstance - returns the mesh object instance * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_model_addboundaryshape(Lib3MF_Model pModel, Lib3MF_BoundaryShape * pBoundaryShapeInstance); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_model_addlevelset(Lib3MF_Model pModel, Lib3MF_LevelSet * pLevelSetInstance); /** * creates a resource iterator instance with all boundary shape resources. @@ -6219,7 +6219,7 @@ LIB3MF_DECLSPEC Lib3MFResult lib3mf_model_addboundaryshape(Lib3MF_Model pModel, * @param[out] pResourceIterator - returns the iterator instance. * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_model_getboundaryshapes(Lib3MF_Model pModel, Lib3MF_BoundaryShapeIterator * pResourceIterator); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_model_getlevelsets(Lib3MF_Model pModel, Lib3MF_LevelSetIterator * pResourceIterator); /************************************************************************************************************************* Global functions diff --git a/Autogenerated/Bindings/C/lib3mf_types.h b/Autogenerated/Bindings/C/lib3mf_types.h index 924d2a66f..4e858bf19 100644 --- a/Autogenerated/Bindings/C/lib3mf_types.h +++ b/Autogenerated/Bindings/C/lib3mf_types.h @@ -222,12 +222,12 @@ typedef Lib3MFHandle Lib3MF_CompositeMaterialsIterator; typedef Lib3MFHandle Lib3MF_MultiPropertyGroupIterator; typedef Lib3MFHandle Lib3MF_Image3DIterator; typedef Lib3MFHandle Lib3MF_FunctionIterator; -typedef Lib3MFHandle Lib3MF_BoundaryShapeIterator; +typedef Lib3MFHandle Lib3MF_LevelSetIterator; typedef Lib3MFHandle Lib3MF_MetaData; typedef Lib3MFHandle Lib3MF_MetaDataGroup; typedef Lib3MFHandle Lib3MF_Object; typedef Lib3MFHandle Lib3MF_MeshObject; -typedef Lib3MFHandle Lib3MF_BoundaryShape; +typedef Lib3MFHandle Lib3MF_LevelSet; typedef Lib3MFHandle Lib3MF_BeamLattice; typedef Lib3MFHandle Lib3MF_FunctionReference; typedef Lib3MFHandle Lib3MF_VolumeDataColor; diff --git a/Autogenerated/Bindings/CDynamic/lib3mf_dynamic.cc b/Autogenerated/Bindings/CDynamic/lib3mf_dynamic.cc index ee1146da6..ec45f5118 100644 --- a/Autogenerated/Bindings/CDynamic/lib3mf_dynamic.cc +++ b/Autogenerated/Bindings/CDynamic/lib3mf_dynamic.cc @@ -98,7 +98,7 @@ Lib3MFResult InitLib3MFWrapperTable(sLib3MFDynamicWrapperTable * pWrapperTable) pWrapperTable->m_MultiPropertyGroupIterator_GetCurrentMultiPropertyGroup = NULL; pWrapperTable->m_Image3DIterator_GetCurrentImage3D = NULL; pWrapperTable->m_FunctionIterator_GetCurrentFunction = NULL; - pWrapperTable->m_BoundaryShapeIterator_GetCurrentBoundaryShape = NULL; + pWrapperTable->m_LevelSetIterator_GetCurrentLevelSet = NULL; pWrapperTable->m_MetaData_GetNameSpace = NULL; pWrapperTable->m_MetaData_SetNameSpace = NULL; pWrapperTable->m_MetaData_GetName = NULL; @@ -160,22 +160,22 @@ Lib3MFResult InitLib3MFWrapperTable(sLib3MFDynamicWrapperTable * pWrapperTable) pWrapperTable->m_MeshObject_BeamLattice = NULL; pWrapperTable->m_MeshObject_GetVolumeData = NULL; pWrapperTable->m_MeshObject_SetVolumeData = NULL; - pWrapperTable->m_BoundaryShape_GetFunction = NULL; - pWrapperTable->m_BoundaryShape_SetFunction = NULL; - pWrapperTable->m_BoundaryShape_GetTransform = NULL; - pWrapperTable->m_BoundaryShape_SetTransform = NULL; - pWrapperTable->m_BoundaryShape_GetChannelName = NULL; - pWrapperTable->m_BoundaryShape_SetChannelName = NULL; - pWrapperTable->m_BoundaryShape_SetMinFeatureSize = NULL; - pWrapperTable->m_BoundaryShape_GetMinFeatureSize = NULL; - pWrapperTable->m_BoundaryShape_SetFallBackValue = NULL; - pWrapperTable->m_BoundaryShape_GetFallBackValue = NULL; - pWrapperTable->m_BoundaryShape_SetMeshBBoxOnly = NULL; - pWrapperTable->m_BoundaryShape_GetMeshBBoxOnly = NULL; - pWrapperTable->m_BoundaryShape_SetMesh = NULL; - pWrapperTable->m_BoundaryShape_GetMesh = NULL; - pWrapperTable->m_BoundaryShape_GetVolumeData = NULL; - pWrapperTable->m_BoundaryShape_SetVolumeData = NULL; + pWrapperTable->m_LevelSet_GetFunction = NULL; + pWrapperTable->m_LevelSet_SetFunction = NULL; + pWrapperTable->m_LevelSet_GetTransform = NULL; + pWrapperTable->m_LevelSet_SetTransform = NULL; + pWrapperTable->m_LevelSet_GetChannelName = NULL; + pWrapperTable->m_LevelSet_SetChannelName = NULL; + pWrapperTable->m_LevelSet_SetMinFeatureSize = NULL; + pWrapperTable->m_LevelSet_GetMinFeatureSize = NULL; + pWrapperTable->m_LevelSet_SetFallBackValue = NULL; + pWrapperTable->m_LevelSet_GetFallBackValue = NULL; + pWrapperTable->m_LevelSet_SetMeshBBoxOnly = NULL; + pWrapperTable->m_LevelSet_GetMeshBBoxOnly = NULL; + pWrapperTable->m_LevelSet_SetMesh = NULL; + pWrapperTable->m_LevelSet_GetMesh = NULL; + pWrapperTable->m_LevelSet_GetVolumeData = NULL; + pWrapperTable->m_LevelSet_SetVolumeData = NULL; pWrapperTable->m_BeamLattice_GetMinLength = NULL; pWrapperTable->m_BeamLattice_SetMinLength = NULL; pWrapperTable->m_BeamLattice_GetClipping = NULL; @@ -626,8 +626,8 @@ Lib3MFResult InitLib3MFWrapperTable(sLib3MFDynamicWrapperTable * pWrapperTable) pWrapperTable->m_Model_AddImplicitFunction = NULL; pWrapperTable->m_Model_AddFunctionFromImage3D = NULL; pWrapperTable->m_Model_AddVolumeData = NULL; - pWrapperTable->m_Model_AddBoundaryShape = NULL; - pWrapperTable->m_Model_GetBoundaryShapes = NULL; + pWrapperTable->m_Model_AddLevelSet = NULL; + pWrapperTable->m_Model_GetLevelSets = NULL; pWrapperTable->m_GetLibraryVersion = NULL; pWrapperTable->m_GetPrereleaseInformation = NULL; pWrapperTable->m_GetBuildInformation = NULL; @@ -1152,12 +1152,12 @@ Lib3MFResult LoadLib3MFWrapperTable(sLib3MFDynamicWrapperTable * pWrapperTable, return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShapeIterator_GetCurrentBoundaryShape = (PLib3MFBoundaryShapeIterator_GetCurrentBoundaryShapePtr) GetProcAddress(hLibrary, "lib3mf_boundaryshapeiterator_getcurrentboundaryshape"); + pWrapperTable->m_LevelSetIterator_GetCurrentLevelSet = (PLib3MFLevelSetIterator_GetCurrentLevelSetPtr) GetProcAddress(hLibrary, "lib3mf_levelsetiterator_getcurrentlevelset"); #else // _WIN32 - pWrapperTable->m_BoundaryShapeIterator_GetCurrentBoundaryShape = (PLib3MFBoundaryShapeIterator_GetCurrentBoundaryShapePtr) dlsym(hLibrary, "lib3mf_boundaryshapeiterator_getcurrentboundaryshape"); + pWrapperTable->m_LevelSetIterator_GetCurrentLevelSet = (PLib3MFLevelSetIterator_GetCurrentLevelSetPtr) dlsym(hLibrary, "lib3mf_levelsetiterator_getcurrentlevelset"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShapeIterator_GetCurrentBoundaryShape == NULL) + if (pWrapperTable->m_LevelSetIterator_GetCurrentLevelSet == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 @@ -1710,147 +1710,147 @@ Lib3MFResult LoadLib3MFWrapperTable(sLib3MFDynamicWrapperTable * pWrapperTable, return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_GetFunction = (PLib3MFBoundaryShape_GetFunctionPtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_getfunction"); + pWrapperTable->m_LevelSet_GetFunction = (PLib3MFLevelSet_GetFunctionPtr) GetProcAddress(hLibrary, "lib3mf_levelset_getfunction"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_GetFunction = (PLib3MFBoundaryShape_GetFunctionPtr) dlsym(hLibrary, "lib3mf_boundaryshape_getfunction"); + pWrapperTable->m_LevelSet_GetFunction = (PLib3MFLevelSet_GetFunctionPtr) dlsym(hLibrary, "lib3mf_levelset_getfunction"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_GetFunction == NULL) + if (pWrapperTable->m_LevelSet_GetFunction == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_SetFunction = (PLib3MFBoundaryShape_SetFunctionPtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_setfunction"); + pWrapperTable->m_LevelSet_SetFunction = (PLib3MFLevelSet_SetFunctionPtr) GetProcAddress(hLibrary, "lib3mf_levelset_setfunction"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_SetFunction = (PLib3MFBoundaryShape_SetFunctionPtr) dlsym(hLibrary, "lib3mf_boundaryshape_setfunction"); + pWrapperTable->m_LevelSet_SetFunction = (PLib3MFLevelSet_SetFunctionPtr) dlsym(hLibrary, "lib3mf_levelset_setfunction"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_SetFunction == NULL) + if (pWrapperTable->m_LevelSet_SetFunction == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_GetTransform = (PLib3MFBoundaryShape_GetTransformPtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_gettransform"); + pWrapperTable->m_LevelSet_GetTransform = (PLib3MFLevelSet_GetTransformPtr) GetProcAddress(hLibrary, "lib3mf_levelset_gettransform"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_GetTransform = (PLib3MFBoundaryShape_GetTransformPtr) dlsym(hLibrary, "lib3mf_boundaryshape_gettransform"); + pWrapperTable->m_LevelSet_GetTransform = (PLib3MFLevelSet_GetTransformPtr) dlsym(hLibrary, "lib3mf_levelset_gettransform"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_GetTransform == NULL) + if (pWrapperTable->m_LevelSet_GetTransform == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_SetTransform = (PLib3MFBoundaryShape_SetTransformPtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_settransform"); + pWrapperTable->m_LevelSet_SetTransform = (PLib3MFLevelSet_SetTransformPtr) GetProcAddress(hLibrary, "lib3mf_levelset_settransform"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_SetTransform = (PLib3MFBoundaryShape_SetTransformPtr) dlsym(hLibrary, "lib3mf_boundaryshape_settransform"); + pWrapperTable->m_LevelSet_SetTransform = (PLib3MFLevelSet_SetTransformPtr) dlsym(hLibrary, "lib3mf_levelset_settransform"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_SetTransform == NULL) + if (pWrapperTable->m_LevelSet_SetTransform == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_GetChannelName = (PLib3MFBoundaryShape_GetChannelNamePtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_getchannelname"); + pWrapperTable->m_LevelSet_GetChannelName = (PLib3MFLevelSet_GetChannelNamePtr) GetProcAddress(hLibrary, "lib3mf_levelset_getchannelname"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_GetChannelName = (PLib3MFBoundaryShape_GetChannelNamePtr) dlsym(hLibrary, "lib3mf_boundaryshape_getchannelname"); + pWrapperTable->m_LevelSet_GetChannelName = (PLib3MFLevelSet_GetChannelNamePtr) dlsym(hLibrary, "lib3mf_levelset_getchannelname"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_GetChannelName == NULL) + if (pWrapperTable->m_LevelSet_GetChannelName == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_SetChannelName = (PLib3MFBoundaryShape_SetChannelNamePtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_setchannelname"); + pWrapperTable->m_LevelSet_SetChannelName = (PLib3MFLevelSet_SetChannelNamePtr) GetProcAddress(hLibrary, "lib3mf_levelset_setchannelname"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_SetChannelName = (PLib3MFBoundaryShape_SetChannelNamePtr) dlsym(hLibrary, "lib3mf_boundaryshape_setchannelname"); + pWrapperTable->m_LevelSet_SetChannelName = (PLib3MFLevelSet_SetChannelNamePtr) dlsym(hLibrary, "lib3mf_levelset_setchannelname"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_SetChannelName == NULL) + if (pWrapperTable->m_LevelSet_SetChannelName == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_SetMinFeatureSize = (PLib3MFBoundaryShape_SetMinFeatureSizePtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_setminfeaturesize"); + pWrapperTable->m_LevelSet_SetMinFeatureSize = (PLib3MFLevelSet_SetMinFeatureSizePtr) GetProcAddress(hLibrary, "lib3mf_levelset_setminfeaturesize"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_SetMinFeatureSize = (PLib3MFBoundaryShape_SetMinFeatureSizePtr) dlsym(hLibrary, "lib3mf_boundaryshape_setminfeaturesize"); + pWrapperTable->m_LevelSet_SetMinFeatureSize = (PLib3MFLevelSet_SetMinFeatureSizePtr) dlsym(hLibrary, "lib3mf_levelset_setminfeaturesize"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_SetMinFeatureSize == NULL) + if (pWrapperTable->m_LevelSet_SetMinFeatureSize == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_GetMinFeatureSize = (PLib3MFBoundaryShape_GetMinFeatureSizePtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_getminfeaturesize"); + pWrapperTable->m_LevelSet_GetMinFeatureSize = (PLib3MFLevelSet_GetMinFeatureSizePtr) GetProcAddress(hLibrary, "lib3mf_levelset_getminfeaturesize"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_GetMinFeatureSize = (PLib3MFBoundaryShape_GetMinFeatureSizePtr) dlsym(hLibrary, "lib3mf_boundaryshape_getminfeaturesize"); + pWrapperTable->m_LevelSet_GetMinFeatureSize = (PLib3MFLevelSet_GetMinFeatureSizePtr) dlsym(hLibrary, "lib3mf_levelset_getminfeaturesize"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_GetMinFeatureSize == NULL) + if (pWrapperTable->m_LevelSet_GetMinFeatureSize == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_SetFallBackValue = (PLib3MFBoundaryShape_SetFallBackValuePtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_setfallbackvalue"); + pWrapperTable->m_LevelSet_SetFallBackValue = (PLib3MFLevelSet_SetFallBackValuePtr) GetProcAddress(hLibrary, "lib3mf_levelset_setfallbackvalue"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_SetFallBackValue = (PLib3MFBoundaryShape_SetFallBackValuePtr) dlsym(hLibrary, "lib3mf_boundaryshape_setfallbackvalue"); + pWrapperTable->m_LevelSet_SetFallBackValue = (PLib3MFLevelSet_SetFallBackValuePtr) dlsym(hLibrary, "lib3mf_levelset_setfallbackvalue"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_SetFallBackValue == NULL) + if (pWrapperTable->m_LevelSet_SetFallBackValue == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_GetFallBackValue = (PLib3MFBoundaryShape_GetFallBackValuePtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_getfallbackvalue"); + pWrapperTable->m_LevelSet_GetFallBackValue = (PLib3MFLevelSet_GetFallBackValuePtr) GetProcAddress(hLibrary, "lib3mf_levelset_getfallbackvalue"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_GetFallBackValue = (PLib3MFBoundaryShape_GetFallBackValuePtr) dlsym(hLibrary, "lib3mf_boundaryshape_getfallbackvalue"); + pWrapperTable->m_LevelSet_GetFallBackValue = (PLib3MFLevelSet_GetFallBackValuePtr) dlsym(hLibrary, "lib3mf_levelset_getfallbackvalue"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_GetFallBackValue == NULL) + if (pWrapperTable->m_LevelSet_GetFallBackValue == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_SetMeshBBoxOnly = (PLib3MFBoundaryShape_SetMeshBBoxOnlyPtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_setmeshbboxonly"); + pWrapperTable->m_LevelSet_SetMeshBBoxOnly = (PLib3MFLevelSet_SetMeshBBoxOnlyPtr) GetProcAddress(hLibrary, "lib3mf_levelset_setmeshbboxonly"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_SetMeshBBoxOnly = (PLib3MFBoundaryShape_SetMeshBBoxOnlyPtr) dlsym(hLibrary, "lib3mf_boundaryshape_setmeshbboxonly"); + pWrapperTable->m_LevelSet_SetMeshBBoxOnly = (PLib3MFLevelSet_SetMeshBBoxOnlyPtr) dlsym(hLibrary, "lib3mf_levelset_setmeshbboxonly"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_SetMeshBBoxOnly == NULL) + if (pWrapperTable->m_LevelSet_SetMeshBBoxOnly == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_GetMeshBBoxOnly = (PLib3MFBoundaryShape_GetMeshBBoxOnlyPtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_getmeshbboxonly"); + pWrapperTable->m_LevelSet_GetMeshBBoxOnly = (PLib3MFLevelSet_GetMeshBBoxOnlyPtr) GetProcAddress(hLibrary, "lib3mf_levelset_getmeshbboxonly"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_GetMeshBBoxOnly = (PLib3MFBoundaryShape_GetMeshBBoxOnlyPtr) dlsym(hLibrary, "lib3mf_boundaryshape_getmeshbboxonly"); + pWrapperTable->m_LevelSet_GetMeshBBoxOnly = (PLib3MFLevelSet_GetMeshBBoxOnlyPtr) dlsym(hLibrary, "lib3mf_levelset_getmeshbboxonly"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_GetMeshBBoxOnly == NULL) + if (pWrapperTable->m_LevelSet_GetMeshBBoxOnly == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_SetMesh = (PLib3MFBoundaryShape_SetMeshPtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_setmesh"); + pWrapperTable->m_LevelSet_SetMesh = (PLib3MFLevelSet_SetMeshPtr) GetProcAddress(hLibrary, "lib3mf_levelset_setmesh"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_SetMesh = (PLib3MFBoundaryShape_SetMeshPtr) dlsym(hLibrary, "lib3mf_boundaryshape_setmesh"); + pWrapperTable->m_LevelSet_SetMesh = (PLib3MFLevelSet_SetMeshPtr) dlsym(hLibrary, "lib3mf_levelset_setmesh"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_SetMesh == NULL) + if (pWrapperTable->m_LevelSet_SetMesh == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_GetMesh = (PLib3MFBoundaryShape_GetMeshPtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_getmesh"); + pWrapperTable->m_LevelSet_GetMesh = (PLib3MFLevelSet_GetMeshPtr) GetProcAddress(hLibrary, "lib3mf_levelset_getmesh"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_GetMesh = (PLib3MFBoundaryShape_GetMeshPtr) dlsym(hLibrary, "lib3mf_boundaryshape_getmesh"); + pWrapperTable->m_LevelSet_GetMesh = (PLib3MFLevelSet_GetMeshPtr) dlsym(hLibrary, "lib3mf_levelset_getmesh"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_GetMesh == NULL) + if (pWrapperTable->m_LevelSet_GetMesh == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_GetVolumeData = (PLib3MFBoundaryShape_GetVolumeDataPtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_getvolumedata"); + pWrapperTable->m_LevelSet_GetVolumeData = (PLib3MFLevelSet_GetVolumeDataPtr) GetProcAddress(hLibrary, "lib3mf_levelset_getvolumedata"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_GetVolumeData = (PLib3MFBoundaryShape_GetVolumeDataPtr) dlsym(hLibrary, "lib3mf_boundaryshape_getvolumedata"); + pWrapperTable->m_LevelSet_GetVolumeData = (PLib3MFLevelSet_GetVolumeDataPtr) dlsym(hLibrary, "lib3mf_levelset_getvolumedata"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_GetVolumeData == NULL) + if (pWrapperTable->m_LevelSet_GetVolumeData == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_SetVolumeData = (PLib3MFBoundaryShape_SetVolumeDataPtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_setvolumedata"); + pWrapperTable->m_LevelSet_SetVolumeData = (PLib3MFLevelSet_SetVolumeDataPtr) GetProcAddress(hLibrary, "lib3mf_levelset_setvolumedata"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_SetVolumeData = (PLib3MFBoundaryShape_SetVolumeDataPtr) dlsym(hLibrary, "lib3mf_boundaryshape_setvolumedata"); + pWrapperTable->m_LevelSet_SetVolumeData = (PLib3MFLevelSet_SetVolumeDataPtr) dlsym(hLibrary, "lib3mf_levelset_setvolumedata"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_SetVolumeData == NULL) + if (pWrapperTable->m_LevelSet_SetVolumeData == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 @@ -5904,21 +5904,21 @@ Lib3MFResult LoadLib3MFWrapperTable(sLib3MFDynamicWrapperTable * pWrapperTable, return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_Model_AddBoundaryShape = (PLib3MFModel_AddBoundaryShapePtr) GetProcAddress(hLibrary, "lib3mf_model_addboundaryshape"); + pWrapperTable->m_Model_AddLevelSet = (PLib3MFModel_AddLevelSetPtr) GetProcAddress(hLibrary, "lib3mf_model_addlevelset"); #else // _WIN32 - pWrapperTable->m_Model_AddBoundaryShape = (PLib3MFModel_AddBoundaryShapePtr) dlsym(hLibrary, "lib3mf_model_addboundaryshape"); + pWrapperTable->m_Model_AddLevelSet = (PLib3MFModel_AddLevelSetPtr) dlsym(hLibrary, "lib3mf_model_addlevelset"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_Model_AddBoundaryShape == NULL) + if (pWrapperTable->m_Model_AddLevelSet == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_Model_GetBoundaryShapes = (PLib3MFModel_GetBoundaryShapesPtr) GetProcAddress(hLibrary, "lib3mf_model_getboundaryshapes"); + pWrapperTable->m_Model_GetLevelSets = (PLib3MFModel_GetLevelSetsPtr) GetProcAddress(hLibrary, "lib3mf_model_getlevelsets"); #else // _WIN32 - pWrapperTable->m_Model_GetBoundaryShapes = (PLib3MFModel_GetBoundaryShapesPtr) dlsym(hLibrary, "lib3mf_model_getboundaryshapes"); + pWrapperTable->m_Model_GetLevelSets = (PLib3MFModel_GetLevelSetsPtr) dlsym(hLibrary, "lib3mf_model_getlevelsets"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_Model_GetBoundaryShapes == NULL) + if (pWrapperTable->m_Model_GetLevelSets == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 diff --git a/Autogenerated/Bindings/CDynamic/lib3mf_dynamic.h b/Autogenerated/Bindings/CDynamic/lib3mf_dynamic.h index 797106a2a..e3c3f201b 100644 --- a/Autogenerated/Bindings/CDynamic/lib3mf_dynamic.h +++ b/Autogenerated/Bindings/CDynamic/lib3mf_dynamic.h @@ -589,17 +589,17 @@ typedef Lib3MFResult (*PLib3MFImage3DIterator_GetCurrentImage3DPtr) (Lib3MF_Imag typedef Lib3MFResult (*PLib3MFFunctionIterator_GetCurrentFunctionPtr) (Lib3MF_FunctionIterator pFunctionIterator, Lib3MF_Function * pResource); /************************************************************************************************************************* - Class definition for BoundaryShapeIterator + Class definition for LevelSetIterator **************************************************************************************************************************/ /** -* Returns the BoundaryShape the iterator points at. +* Returns the LevelSet the iterator points at. * -* @param[in] pBoundaryShapeIterator - BoundaryShapeIterator instance. +* @param[in] pLevelSetIterator - LevelSetIterator instance. * @param[out] pResource - returns the MeshObject instance. * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShapeIterator_GetCurrentBoundaryShapePtr) (Lib3MF_BoundaryShapeIterator pBoundaryShapeIterator, Lib3MF_BoundaryShape * pResource); +typedef Lib3MFResult (*PLib3MFLevelSetIterator_GetCurrentLevelSetPtr) (Lib3MF_LevelSetIterator pLevelSetIterator, Lib3MF_LevelSet * pResource); /************************************************************************************************************************* Class definition for MetaData @@ -1211,154 +1211,154 @@ typedef Lib3MFResult (*PLib3MFMeshObject_GetVolumeDataPtr) (Lib3MF_MeshObject pM typedef Lib3MFResult (*PLib3MFMeshObject_SetVolumeDataPtr) (Lib3MF_MeshObject pMeshObject, Lib3MF_VolumeData pTheVolumeData); /************************************************************************************************************************* - Class definition for BoundaryShape + Class definition for LevelSet **************************************************************************************************************************/ /** * Returns the function that is used as boundary shape. * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[out] pTheFunction - the function to use as boundary shape * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_GetFunctionPtr) (Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_Function * pTheFunction); +typedef Lib3MFResult (*PLib3MFLevelSet_GetFunctionPtr) (Lib3MF_LevelSet pLevelSet, Lib3MF_Function * pTheFunction); /** * Sets the function to use as boundary shape. * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] pTheFunction - the function to use as boundary shape * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_SetFunctionPtr) (Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_Function pTheFunction); +typedef Lib3MFResult (*PLib3MFLevelSet_SetFunctionPtr) (Lib3MF_LevelSet pLevelSet, Lib3MF_Function pTheFunction); /** * Returns the transformation matrix into the coordinate system of the referenced Function. * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[out] pTransform - the transformation matrix * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_GetTransformPtr) (Lib3MF_BoundaryShape pBoundaryShape, sLib3MFTransform * pTransform); +typedef Lib3MFResult (*PLib3MFLevelSet_GetTransformPtr) (Lib3MF_LevelSet pLevelSet, sLib3MFTransform * pTransform); /** * Sets the transformation matrix into the coordinate system of the referenced Function. * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] pTransform - new transformation matrix * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_SetTransformPtr) (Lib3MF_BoundaryShape pBoundaryShape, const sLib3MFTransform * pTransform); +typedef Lib3MFResult (*PLib3MFLevelSet_SetTransformPtr) (Lib3MF_LevelSet pLevelSet, const sLib3MFTransform * pTransform); /** * Returns the name of the function output channel to use. * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] nChannelNameBufferSize - size of the buffer (including trailing 0) * @param[out] pChannelNameNeededChars - will be filled with the count of the written bytes, or needed buffer size. * @param[out] pChannelNameBuffer - buffer of the name of the function output channel, may be NULL * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_GetChannelNamePtr) (Lib3MF_BoundaryShape pBoundaryShape, const Lib3MF_uint32 nChannelNameBufferSize, Lib3MF_uint32* pChannelNameNeededChars, char * pChannelNameBuffer); +typedef Lib3MFResult (*PLib3MFLevelSet_GetChannelNamePtr) (Lib3MF_LevelSet pLevelSet, const Lib3MF_uint32 nChannelNameBufferSize, Lib3MF_uint32* pChannelNameNeededChars, char * pChannelNameBuffer); /** * Sets the name of the function output channel to use. * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] pChannelName - new name of the function output channel * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_SetChannelNamePtr) (Lib3MF_BoundaryShape pBoundaryShape, const char * pChannelName); +typedef Lib3MFResult (*PLib3MFLevelSet_SetChannelNamePtr) (Lib3MF_LevelSet pLevelSet, const char * pChannelName); /** * Sets the minimal feature size as a hint for the function evaluator * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] dMinFeatureSize - minimal feature size * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_SetMinFeatureSizePtr) (Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_double dMinFeatureSize); +typedef Lib3MFResult (*PLib3MFLevelSet_SetMinFeatureSizePtr) (Lib3MF_LevelSet pLevelSet, Lib3MF_double dMinFeatureSize); /** * Returns the minimal feature size as a hint for the function evaluator * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[out] pMinFeatureSize - minimal feature size * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_GetMinFeatureSizePtr) (Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_double * pMinFeatureSize); +typedef Lib3MFResult (*PLib3MFLevelSet_GetMinFeatureSizePtr) (Lib3MF_LevelSet pLevelSet, Lib3MF_double * pMinFeatureSize); /** * Sets the fallback value to use if the function evaluation fails (e.g. evaluates to NaN or Inf). * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] dFallBackValue - fallback value * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_SetFallBackValuePtr) (Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_double dFallBackValue); +typedef Lib3MFResult (*PLib3MFLevelSet_SetFallBackValuePtr) (Lib3MF_LevelSet pLevelSet, Lib3MF_double dFallBackValue); /** * Returns the fallback value to use if the function evaluation fails (e.g. evaluates to NaN or Inf). * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[out] pFallBackValue - fallback value * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_GetFallBackValuePtr) (Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_double * pFallBackValue); +typedef Lib3MFResult (*PLib3MFLevelSet_GetFallBackValuePtr) (Lib3MF_LevelSet pLevelSet, Lib3MF_double * pFallBackValue); /** * If set only the bounding box of the mesh is intersected with the boundary * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] bMeshBBoxOnly - If set only the bounding box of the mesh is intersected with the boundary * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_SetMeshBBoxOnlyPtr) (Lib3MF_BoundaryShape pBoundaryShape, bool bMeshBBoxOnly); +typedef Lib3MFResult (*PLib3MFLevelSet_SetMeshBBoxOnlyPtr) (Lib3MF_LevelSet pLevelSet, bool bMeshBBoxOnly); /** * If set only the bounding box of the mesh is intersected with the boundary * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[out] pMeshBBoxOnly - If set only the bounding box of the mesh is intersected with the boundary * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_GetMeshBBoxOnlyPtr) (Lib3MF_BoundaryShape pBoundaryShape, bool * pMeshBBoxOnly); +typedef Lib3MFResult (*PLib3MFLevelSet_GetMeshBBoxOnlyPtr) (Lib3MF_LevelSet pLevelSet, bool * pMeshBBoxOnly); /** * Sets the mesh to use as evaluation domain * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] pTheMesh - The mesh * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_SetMeshPtr) (Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_MeshObject pTheMesh); +typedef Lib3MFResult (*PLib3MFLevelSet_SetMeshPtr) (Lib3MF_LevelSet pLevelSet, Lib3MF_MeshObject pTheMesh); /** * Returns the mesh that is used as evaluation domain * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[out] pTheMesh - The mesh * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_GetMeshPtr) (Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_MeshObject * pTheMesh); +typedef Lib3MFResult (*PLib3MFLevelSet_GetMeshPtr) (Lib3MF_LevelSet pLevelSet, Lib3MF_MeshObject * pTheMesh); /** * Retrieves the VolumeData this MeshObject. * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[out] pTheVolumeData - the VolumeData of this MeshObject * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_GetVolumeDataPtr) (Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_VolumeData * pTheVolumeData); +typedef Lib3MFResult (*PLib3MFLevelSet_GetVolumeDataPtr) (Lib3MF_LevelSet pLevelSet, Lib3MF_VolumeData * pTheVolumeData); /** -* Sets the VolumeData of this BoundaryShape. +* Sets the VolumeData of this LevelSet. * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] pTheVolumeData - the VolumeData of this MeshObject * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_SetVolumeDataPtr) (Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_VolumeData pTheVolumeData); +typedef Lib3MFResult (*PLib3MFLevelSet_SetVolumeDataPtr) (Lib3MF_LevelSet pLevelSet, Lib3MF_VolumeData pTheVolumeData); /************************************************************************************************************************* Class definition for BeamLattice @@ -6194,10 +6194,10 @@ typedef Lib3MFResult (*PLib3MFModel_AddVolumeDataPtr) (Lib3MF_Model pModel, Lib3 * adds an empty boundary shape object to the model. * * @param[in] pModel - Model instance. -* @param[out] pBoundaryShapeInstance - returns the mesh object instance +* @param[out] pLevelSetInstance - returns the mesh object instance * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFModel_AddBoundaryShapePtr) (Lib3MF_Model pModel, Lib3MF_BoundaryShape * pBoundaryShapeInstance); +typedef Lib3MFResult (*PLib3MFModel_AddLevelSetPtr) (Lib3MF_Model pModel, Lib3MF_LevelSet * pLevelSetInstance); /** * creates a resource iterator instance with all boundary shape resources. @@ -6206,7 +6206,7 @@ typedef Lib3MFResult (*PLib3MFModel_AddBoundaryShapePtr) (Lib3MF_Model pModel, L * @param[out] pResourceIterator - returns the iterator instance. * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFModel_GetBoundaryShapesPtr) (Lib3MF_Model pModel, Lib3MF_BoundaryShapeIterator * pResourceIterator); +typedef Lib3MFResult (*PLib3MFModel_GetLevelSetsPtr) (Lib3MF_Model pModel, Lib3MF_LevelSetIterator * pResourceIterator); /************************************************************************************************************************* Global functions @@ -6462,7 +6462,7 @@ typedef struct { PLib3MFMultiPropertyGroupIterator_GetCurrentMultiPropertyGroupPtr m_MultiPropertyGroupIterator_GetCurrentMultiPropertyGroup; PLib3MFImage3DIterator_GetCurrentImage3DPtr m_Image3DIterator_GetCurrentImage3D; PLib3MFFunctionIterator_GetCurrentFunctionPtr m_FunctionIterator_GetCurrentFunction; - PLib3MFBoundaryShapeIterator_GetCurrentBoundaryShapePtr m_BoundaryShapeIterator_GetCurrentBoundaryShape; + PLib3MFLevelSetIterator_GetCurrentLevelSetPtr m_LevelSetIterator_GetCurrentLevelSet; PLib3MFMetaData_GetNameSpacePtr m_MetaData_GetNameSpace; PLib3MFMetaData_SetNameSpacePtr m_MetaData_SetNameSpace; PLib3MFMetaData_GetNamePtr m_MetaData_GetName; @@ -6524,22 +6524,22 @@ typedef struct { PLib3MFMeshObject_BeamLatticePtr m_MeshObject_BeamLattice; PLib3MFMeshObject_GetVolumeDataPtr m_MeshObject_GetVolumeData; PLib3MFMeshObject_SetVolumeDataPtr m_MeshObject_SetVolumeData; - PLib3MFBoundaryShape_GetFunctionPtr m_BoundaryShape_GetFunction; - PLib3MFBoundaryShape_SetFunctionPtr m_BoundaryShape_SetFunction; - PLib3MFBoundaryShape_GetTransformPtr m_BoundaryShape_GetTransform; - PLib3MFBoundaryShape_SetTransformPtr m_BoundaryShape_SetTransform; - PLib3MFBoundaryShape_GetChannelNamePtr m_BoundaryShape_GetChannelName; - PLib3MFBoundaryShape_SetChannelNamePtr m_BoundaryShape_SetChannelName; - PLib3MFBoundaryShape_SetMinFeatureSizePtr m_BoundaryShape_SetMinFeatureSize; - PLib3MFBoundaryShape_GetMinFeatureSizePtr m_BoundaryShape_GetMinFeatureSize; - PLib3MFBoundaryShape_SetFallBackValuePtr m_BoundaryShape_SetFallBackValue; - PLib3MFBoundaryShape_GetFallBackValuePtr m_BoundaryShape_GetFallBackValue; - PLib3MFBoundaryShape_SetMeshBBoxOnlyPtr m_BoundaryShape_SetMeshBBoxOnly; - PLib3MFBoundaryShape_GetMeshBBoxOnlyPtr m_BoundaryShape_GetMeshBBoxOnly; - PLib3MFBoundaryShape_SetMeshPtr m_BoundaryShape_SetMesh; - PLib3MFBoundaryShape_GetMeshPtr m_BoundaryShape_GetMesh; - PLib3MFBoundaryShape_GetVolumeDataPtr m_BoundaryShape_GetVolumeData; - PLib3MFBoundaryShape_SetVolumeDataPtr m_BoundaryShape_SetVolumeData; + PLib3MFLevelSet_GetFunctionPtr m_LevelSet_GetFunction; + PLib3MFLevelSet_SetFunctionPtr m_LevelSet_SetFunction; + PLib3MFLevelSet_GetTransformPtr m_LevelSet_GetTransform; + PLib3MFLevelSet_SetTransformPtr m_LevelSet_SetTransform; + PLib3MFLevelSet_GetChannelNamePtr m_LevelSet_GetChannelName; + PLib3MFLevelSet_SetChannelNamePtr m_LevelSet_SetChannelName; + PLib3MFLevelSet_SetMinFeatureSizePtr m_LevelSet_SetMinFeatureSize; + PLib3MFLevelSet_GetMinFeatureSizePtr m_LevelSet_GetMinFeatureSize; + PLib3MFLevelSet_SetFallBackValuePtr m_LevelSet_SetFallBackValue; + PLib3MFLevelSet_GetFallBackValuePtr m_LevelSet_GetFallBackValue; + PLib3MFLevelSet_SetMeshBBoxOnlyPtr m_LevelSet_SetMeshBBoxOnly; + PLib3MFLevelSet_GetMeshBBoxOnlyPtr m_LevelSet_GetMeshBBoxOnly; + PLib3MFLevelSet_SetMeshPtr m_LevelSet_SetMesh; + PLib3MFLevelSet_GetMeshPtr m_LevelSet_GetMesh; + PLib3MFLevelSet_GetVolumeDataPtr m_LevelSet_GetVolumeData; + PLib3MFLevelSet_SetVolumeDataPtr m_LevelSet_SetVolumeData; PLib3MFBeamLattice_GetMinLengthPtr m_BeamLattice_GetMinLength; PLib3MFBeamLattice_SetMinLengthPtr m_BeamLattice_SetMinLength; PLib3MFBeamLattice_GetClippingPtr m_BeamLattice_GetClipping; @@ -6990,8 +6990,8 @@ typedef struct { PLib3MFModel_AddImplicitFunctionPtr m_Model_AddImplicitFunction; PLib3MFModel_AddFunctionFromImage3DPtr m_Model_AddFunctionFromImage3D; PLib3MFModel_AddVolumeDataPtr m_Model_AddVolumeData; - PLib3MFModel_AddBoundaryShapePtr m_Model_AddBoundaryShape; - PLib3MFModel_GetBoundaryShapesPtr m_Model_GetBoundaryShapes; + PLib3MFModel_AddLevelSetPtr m_Model_AddLevelSet; + PLib3MFModel_GetLevelSetsPtr m_Model_GetLevelSets; PLib3MFGetLibraryVersionPtr m_GetLibraryVersion; PLib3MFGetPrereleaseInformationPtr m_GetPrereleaseInformation; PLib3MFGetBuildInformationPtr m_GetBuildInformation; diff --git a/Autogenerated/Bindings/CDynamic/lib3mf_types.h b/Autogenerated/Bindings/CDynamic/lib3mf_types.h index 924d2a66f..4e858bf19 100644 --- a/Autogenerated/Bindings/CDynamic/lib3mf_types.h +++ b/Autogenerated/Bindings/CDynamic/lib3mf_types.h @@ -222,12 +222,12 @@ typedef Lib3MFHandle Lib3MF_CompositeMaterialsIterator; typedef Lib3MFHandle Lib3MF_MultiPropertyGroupIterator; typedef Lib3MFHandle Lib3MF_Image3DIterator; typedef Lib3MFHandle Lib3MF_FunctionIterator; -typedef Lib3MFHandle Lib3MF_BoundaryShapeIterator; +typedef Lib3MFHandle Lib3MF_LevelSetIterator; typedef Lib3MFHandle Lib3MF_MetaData; typedef Lib3MFHandle Lib3MF_MetaDataGroup; typedef Lib3MFHandle Lib3MF_Object; typedef Lib3MFHandle Lib3MF_MeshObject; -typedef Lib3MFHandle Lib3MF_BoundaryShape; +typedef Lib3MFHandle Lib3MF_LevelSet; typedef Lib3MFHandle Lib3MF_BeamLattice; typedef Lib3MFHandle Lib3MF_FunctionReference; typedef Lib3MFHandle Lib3MF_VolumeDataColor; diff --git a/Autogenerated/Bindings/CSharp/Lib3MF.cs b/Autogenerated/Bindings/CSharp/Lib3MF.cs index 6b32cb95b..069f6f6f4 100644 --- a/Autogenerated/Bindings/CSharp/Lib3MF.cs +++ b/Autogenerated/Bindings/CSharp/Lib3MF.cs @@ -584,8 +584,8 @@ public class Lib3MFWrapper [DllImport("lib3mf.dll", EntryPoint = "lib3mf_functioniterator_getcurrentfunction", CallingConvention=CallingConvention.Cdecl)] public unsafe extern static Int32 FunctionIterator_GetCurrentFunction (IntPtr Handle, out IntPtr AResource); - [DllImport("lib3mf.dll", EntryPoint = "lib3mf_boundaryshapeiterator_getcurrentboundaryshape", CallingConvention=CallingConvention.Cdecl)] - public unsafe extern static Int32 BoundaryShapeIterator_GetCurrentBoundaryShape (IntPtr Handle, out IntPtr AResource); + [DllImport("lib3mf.dll", EntryPoint = "lib3mf_levelsetiterator_getcurrentlevelset", CallingConvention=CallingConvention.Cdecl)] + public unsafe extern static Int32 LevelSetIterator_GetCurrentLevelSet (IntPtr Handle, out IntPtr AResource); [DllImport("lib3mf.dll", EntryPoint = "lib3mf_metadata_getnamespace", CallingConvention=CallingConvention.Cdecl)] public unsafe extern static Int32 MetaData_GetNameSpace (IntPtr Handle, UInt32 sizeNameSpace, out UInt32 neededNameSpace, IntPtr dataNameSpace); @@ -770,53 +770,53 @@ public class Lib3MFWrapper [DllImport("lib3mf.dll", EntryPoint = "lib3mf_meshobject_setvolumedata", CallingConvention=CallingConvention.Cdecl)] public unsafe extern static Int32 MeshObject_SetVolumeData (IntPtr Handle, IntPtr ATheVolumeData); - [DllImport("lib3mf.dll", EntryPoint = "lib3mf_boundaryshape_getfunction", CallingConvention=CallingConvention.Cdecl)] - public unsafe extern static Int32 BoundaryShape_GetFunction (IntPtr Handle, out IntPtr ATheFunction); + [DllImport("lib3mf.dll", EntryPoint = "lib3mf_levelset_getfunction", CallingConvention=CallingConvention.Cdecl)] + public unsafe extern static Int32 LevelSet_GetFunction (IntPtr Handle, out IntPtr ATheFunction); - [DllImport("lib3mf.dll", EntryPoint = "lib3mf_boundaryshape_setfunction", CallingConvention=CallingConvention.Cdecl)] - public unsafe extern static Int32 BoundaryShape_SetFunction (IntPtr Handle, IntPtr ATheFunction); + [DllImport("lib3mf.dll", EntryPoint = "lib3mf_levelset_setfunction", CallingConvention=CallingConvention.Cdecl)] + public unsafe extern static Int32 LevelSet_SetFunction (IntPtr Handle, IntPtr ATheFunction); - [DllImport("lib3mf.dll", EntryPoint = "lib3mf_boundaryshape_gettransform", CallingConvention=CallingConvention.Cdecl)] - public unsafe extern static Int32 BoundaryShape_GetTransform (IntPtr Handle, out InternalTransform ATransform); + [DllImport("lib3mf.dll", EntryPoint = "lib3mf_levelset_gettransform", CallingConvention=CallingConvention.Cdecl)] + public unsafe extern static Int32 LevelSet_GetTransform (IntPtr Handle, out InternalTransform ATransform); - [DllImport("lib3mf.dll", EntryPoint = "lib3mf_boundaryshape_settransform", CallingConvention=CallingConvention.Cdecl)] - public unsafe extern static Int32 BoundaryShape_SetTransform (IntPtr Handle, InternalTransform ATransform); + [DllImport("lib3mf.dll", EntryPoint = "lib3mf_levelset_settransform", CallingConvention=CallingConvention.Cdecl)] + public unsafe extern static Int32 LevelSet_SetTransform (IntPtr Handle, InternalTransform ATransform); - [DllImport("lib3mf.dll", EntryPoint = "lib3mf_boundaryshape_getchannelname", CallingConvention=CallingConvention.Cdecl)] - public unsafe extern static Int32 BoundaryShape_GetChannelName (IntPtr Handle, UInt32 sizeChannelName, out UInt32 neededChannelName, IntPtr dataChannelName); + [DllImport("lib3mf.dll", EntryPoint = "lib3mf_levelset_getchannelname", CallingConvention=CallingConvention.Cdecl)] + public unsafe extern static Int32 LevelSet_GetChannelName (IntPtr Handle, UInt32 sizeChannelName, out UInt32 neededChannelName, IntPtr dataChannelName); - [DllImport("lib3mf.dll", EntryPoint = "lib3mf_boundaryshape_setchannelname", CallingConvention=CallingConvention.Cdecl)] - public unsafe extern static Int32 BoundaryShape_SetChannelName (IntPtr Handle, byte[] AChannelName); + [DllImport("lib3mf.dll", EntryPoint = "lib3mf_levelset_setchannelname", CallingConvention=CallingConvention.Cdecl)] + public unsafe extern static Int32 LevelSet_SetChannelName (IntPtr Handle, byte[] AChannelName); - [DllImport("lib3mf.dll", EntryPoint = "lib3mf_boundaryshape_setminfeaturesize", CallingConvention=CallingConvention.Cdecl)] - public unsafe extern static Int32 BoundaryShape_SetMinFeatureSize (IntPtr Handle, Double AMinFeatureSize); + [DllImport("lib3mf.dll", EntryPoint = "lib3mf_levelset_setminfeaturesize", CallingConvention=CallingConvention.Cdecl)] + public unsafe extern static Int32 LevelSet_SetMinFeatureSize (IntPtr Handle, Double AMinFeatureSize); - [DllImport("lib3mf.dll", EntryPoint = "lib3mf_boundaryshape_getminfeaturesize", CallingConvention=CallingConvention.Cdecl)] - public unsafe extern static Int32 BoundaryShape_GetMinFeatureSize (IntPtr Handle, out Double AMinFeatureSize); + [DllImport("lib3mf.dll", EntryPoint = "lib3mf_levelset_getminfeaturesize", CallingConvention=CallingConvention.Cdecl)] + public unsafe extern static Int32 LevelSet_GetMinFeatureSize (IntPtr Handle, out Double AMinFeatureSize); - [DllImport("lib3mf.dll", EntryPoint = "lib3mf_boundaryshape_setfallbackvalue", CallingConvention=CallingConvention.Cdecl)] - public unsafe extern static Int32 BoundaryShape_SetFallBackValue (IntPtr Handle, Double AFallBackValue); + [DllImport("lib3mf.dll", EntryPoint = "lib3mf_levelset_setfallbackvalue", CallingConvention=CallingConvention.Cdecl)] + public unsafe extern static Int32 LevelSet_SetFallBackValue (IntPtr Handle, Double AFallBackValue); - [DllImport("lib3mf.dll", EntryPoint = "lib3mf_boundaryshape_getfallbackvalue", CallingConvention=CallingConvention.Cdecl)] - public unsafe extern static Int32 BoundaryShape_GetFallBackValue (IntPtr Handle, out Double AFallBackValue); + [DllImport("lib3mf.dll", EntryPoint = "lib3mf_levelset_getfallbackvalue", CallingConvention=CallingConvention.Cdecl)] + public unsafe extern static Int32 LevelSet_GetFallBackValue (IntPtr Handle, out Double AFallBackValue); - [DllImport("lib3mf.dll", EntryPoint = "lib3mf_boundaryshape_setmeshbboxonly", CallingConvention=CallingConvention.Cdecl)] - public unsafe extern static Int32 BoundaryShape_SetMeshBBoxOnly (IntPtr Handle, Byte AMeshBBoxOnly); + [DllImport("lib3mf.dll", EntryPoint = "lib3mf_levelset_setmeshbboxonly", CallingConvention=CallingConvention.Cdecl)] + public unsafe extern static Int32 LevelSet_SetMeshBBoxOnly (IntPtr Handle, Byte AMeshBBoxOnly); - [DllImport("lib3mf.dll", EntryPoint = "lib3mf_boundaryshape_getmeshbboxonly", CallingConvention=CallingConvention.Cdecl)] - public unsafe extern static Int32 BoundaryShape_GetMeshBBoxOnly (IntPtr Handle, out Byte AMeshBBoxOnly); + [DllImport("lib3mf.dll", EntryPoint = "lib3mf_levelset_getmeshbboxonly", CallingConvention=CallingConvention.Cdecl)] + public unsafe extern static Int32 LevelSet_GetMeshBBoxOnly (IntPtr Handle, out Byte AMeshBBoxOnly); - [DllImport("lib3mf.dll", EntryPoint = "lib3mf_boundaryshape_setmesh", CallingConvention=CallingConvention.Cdecl)] - public unsafe extern static Int32 BoundaryShape_SetMesh (IntPtr Handle, IntPtr ATheMesh); + [DllImport("lib3mf.dll", EntryPoint = "lib3mf_levelset_setmesh", CallingConvention=CallingConvention.Cdecl)] + public unsafe extern static Int32 LevelSet_SetMesh (IntPtr Handle, IntPtr ATheMesh); - [DllImport("lib3mf.dll", EntryPoint = "lib3mf_boundaryshape_getmesh", CallingConvention=CallingConvention.Cdecl)] - public unsafe extern static Int32 BoundaryShape_GetMesh (IntPtr Handle, out IntPtr ATheMesh); + [DllImport("lib3mf.dll", EntryPoint = "lib3mf_levelset_getmesh", CallingConvention=CallingConvention.Cdecl)] + public unsafe extern static Int32 LevelSet_GetMesh (IntPtr Handle, out IntPtr ATheMesh); - [DllImport("lib3mf.dll", EntryPoint = "lib3mf_boundaryshape_getvolumedata", CallingConvention=CallingConvention.Cdecl)] - public unsafe extern static Int32 BoundaryShape_GetVolumeData (IntPtr Handle, out IntPtr ATheVolumeData); + [DllImport("lib3mf.dll", EntryPoint = "lib3mf_levelset_getvolumedata", CallingConvention=CallingConvention.Cdecl)] + public unsafe extern static Int32 LevelSet_GetVolumeData (IntPtr Handle, out IntPtr ATheVolumeData); - [DllImport("lib3mf.dll", EntryPoint = "lib3mf_boundaryshape_setvolumedata", CallingConvention=CallingConvention.Cdecl)] - public unsafe extern static Int32 BoundaryShape_SetVolumeData (IntPtr Handle, IntPtr ATheVolumeData); + [DllImport("lib3mf.dll", EntryPoint = "lib3mf_levelset_setvolumedata", CallingConvention=CallingConvention.Cdecl)] + public unsafe extern static Int32 LevelSet_SetVolumeData (IntPtr Handle, IntPtr ATheVolumeData); [DllImport("lib3mf.dll", EntryPoint = "lib3mf_beamlattice_getminlength", CallingConvention=CallingConvention.Cdecl)] public unsafe extern static Int32 BeamLattice_GetMinLength (IntPtr Handle, out Double AMinLength); @@ -2168,11 +2168,11 @@ public class Lib3MFWrapper [DllImport("lib3mf.dll", EntryPoint = "lib3mf_model_addvolumedata", CallingConvention=CallingConvention.Cdecl)] public unsafe extern static Int32 Model_AddVolumeData (IntPtr Handle, out IntPtr AVolumeDataInstance); - [DllImport("lib3mf.dll", EntryPoint = "lib3mf_model_addboundaryshape", CallingConvention=CallingConvention.Cdecl)] - public unsafe extern static Int32 Model_AddBoundaryShape (IntPtr Handle, out IntPtr ABoundaryShapeInstance); + [DllImport("lib3mf.dll", EntryPoint = "lib3mf_model_addlevelset", CallingConvention=CallingConvention.Cdecl)] + public unsafe extern static Int32 Model_AddLevelSet (IntPtr Handle, out IntPtr ALevelSetInstance); - [DllImport("lib3mf.dll", EntryPoint = "lib3mf_model_getboundaryshapes", CallingConvention=CallingConvention.Cdecl)] - public unsafe extern static Int32 Model_GetBoundaryShapes (IntPtr Handle, out IntPtr AResourceIterator); + [DllImport("lib3mf.dll", EntryPoint = "lib3mf_model_getlevelsets", CallingConvention=CallingConvention.Cdecl)] + public unsafe extern static Int32 Model_GetLevelSets (IntPtr Handle, out IntPtr AResourceIterator); [DllImport("lib3mf.dll", EntryPoint = "lib3mf_getlibraryversion", CharSet = CharSet.Ansi, CallingConvention=CallingConvention.Cdecl)] public extern static Int32 GetLibraryVersion (out UInt32 AMajor, out UInt32 AMinor, out UInt32 AMicro); @@ -2604,12 +2604,12 @@ public static T PolymorphicFactory(IntPtr Handle) where T : class case 0xC2BDF5D8CBBDB1F0: Object = new CMultiPropertyGroupIterator(Handle) as T; break; // First 64 bits of SHA1 of a string: "Lib3MF::MultiPropertyGroupIterator" case 0xC4B8EC00A82BF336: Object = new CImage3DIterator(Handle) as T; break; // First 64 bits of SHA1 of a string: "Lib3MF::Image3DIterator" case 0x40E9035363ACE65E: Object = new CFunctionIterator(Handle) as T; break; // First 64 bits of SHA1 of a string: "Lib3MF::FunctionIterator" - case 0x9FBC898CF30CDEF3: Object = new CBoundaryShapeIterator(Handle) as T; break; // First 64 bits of SHA1 of a string: "Lib3MF::BoundaryShapeIterator" + case 0x9FBC898CF30CDEF3: Object = new CLevelSetIterator(Handle) as T; break; // First 64 bits of SHA1 of a string: "Lib3MF::LevelSetIterator" case 0xD17716D063DE2C22: Object = new CMetaData(Handle) as T; break; // First 64 bits of SHA1 of a string: "Lib3MF::MetaData" case 0x0C3B85369E9B25D3: Object = new CMetaDataGroup(Handle) as T; break; // First 64 bits of SHA1 of a string: "Lib3MF::MetaDataGroup" case 0x2DA2136F577A779C: Object = new CObject(Handle) as T; break; // First 64 bits of SHA1 of a string: "Lib3MF::Object" case 0x3B3A6DC6EC610497: Object = new CMeshObject(Handle) as T; break; // First 64 bits of SHA1 of a string: "Lib3MF::MeshObject" - case 0x2BE0E57BA81B2ECB: Object = new CBoundaryShape(Handle) as T; break; // First 64 bits of SHA1 of a string: "Lib3MF::BoundaryShape" + case 0x2BE0E57BA81B2ECB: Object = new CLevelSet(Handle) as T; break; // First 64 bits of SHA1 of a string: "Lib3MF::LevelSet" case 0x63B3B461B30B4BA5: Object = new CBeamLattice(Handle) as T; break; // First 64 bits of SHA1 of a string: "Lib3MF::BeamLattice" case 0x4DF17E76926221C2: Object = new CFunctionReference(Handle) as T; break; // First 64 bits of SHA1 of a string: "Lib3MF::FunctionReference" case 0xD85B5B6143E787E3: Object = new CVolumeDataColor(Handle) as T; break; // First 64 bits of SHA1 of a string: "Lib3MF::VolumeDataColor" @@ -3289,18 +3289,18 @@ public CFunction GetCurrentFunction () } - public class CBoundaryShapeIterator : CResourceIterator + public class CLevelSetIterator : CResourceIterator { - public CBoundaryShapeIterator (IntPtr NewHandle) : base (NewHandle) + public CLevelSetIterator (IntPtr NewHandle) : base (NewHandle) { } - public CBoundaryShape GetCurrentBoundaryShape () + public CLevelSet GetCurrentLevelSet () { IntPtr newResource = IntPtr.Zero; - CheckError(Internal.Lib3MFWrapper.BoundaryShapeIterator_GetCurrentBoundaryShape (Handle, out newResource)); - return Internal.Lib3MFWrapper.PolymorphicFactory(newResource); + CheckError(Internal.Lib3MFWrapper.LevelSetIterator_GetCurrentLevelSet (Handle, out newResource)); + return Internal.Lib3MFWrapper.PolymorphicFactory(newResource); } } @@ -3898,9 +3898,9 @@ public void SetVolumeData (CVolumeData ATheVolumeData) } - public class CBoundaryShape : CObject + public class CLevelSet : CObject { - public CBoundaryShape (IntPtr NewHandle) : base (NewHandle) + public CLevelSet (IntPtr NewHandle) : base (NewHandle) { } @@ -3908,7 +3908,7 @@ public CFunction GetFunction () { IntPtr newTheFunction = IntPtr.Zero; - CheckError(Internal.Lib3MFWrapper.BoundaryShape_GetFunction (Handle, out newTheFunction)); + CheckError(Internal.Lib3MFWrapper.LevelSet_GetFunction (Handle, out newTheFunction)); return Internal.Lib3MFWrapper.PolymorphicFactory(newTheFunction); } @@ -3918,14 +3918,14 @@ public void SetFunction (CFunction ATheFunction) if (ATheFunction != null) ATheFunctionHandle = ATheFunction.GetHandle(); - CheckError(Internal.Lib3MFWrapper.BoundaryShape_SetFunction (Handle, ATheFunctionHandle)); + CheckError(Internal.Lib3MFWrapper.LevelSet_SetFunction (Handle, ATheFunctionHandle)); } public sTransform GetTransform () { Internal.InternalTransform intresultTransform; - CheckError(Internal.Lib3MFWrapper.BoundaryShape_GetTransform (Handle, out intresultTransform)); + CheckError(Internal.Lib3MFWrapper.LevelSet_GetTransform (Handle, out intresultTransform)); return Internal.Lib3MFWrapper.convertInternalToStruct_Transform (intresultTransform); } @@ -3933,19 +3933,19 @@ public void SetTransform (sTransform ATransform) { Internal.InternalTransform intTransform = Internal.Lib3MFWrapper.convertStructToInternal_Transform (ATransform); - CheckError(Internal.Lib3MFWrapper.BoundaryShape_SetTransform (Handle, intTransform)); + CheckError(Internal.Lib3MFWrapper.LevelSet_SetTransform (Handle, intTransform)); } public String GetChannelName () { UInt32 sizeChannelName = 0; UInt32 neededChannelName = 0; - CheckError(Internal.Lib3MFWrapper.BoundaryShape_GetChannelName (Handle, sizeChannelName, out neededChannelName, IntPtr.Zero)); + CheckError(Internal.Lib3MFWrapper.LevelSet_GetChannelName (Handle, sizeChannelName, out neededChannelName, IntPtr.Zero)); sizeChannelName = neededChannelName; byte[] bytesChannelName = new byte[sizeChannelName]; GCHandle dataChannelName = GCHandle.Alloc(bytesChannelName, GCHandleType.Pinned); - CheckError(Internal.Lib3MFWrapper.BoundaryShape_GetChannelName (Handle, sizeChannelName, out neededChannelName, dataChannelName.AddrOfPinnedObject())); + CheckError(Internal.Lib3MFWrapper.LevelSet_GetChannelName (Handle, sizeChannelName, out neededChannelName, dataChannelName.AddrOfPinnedObject())); dataChannelName.Free(); return Encoding.UTF8.GetString(bytesChannelName).TrimEnd(char.MinValue); } @@ -3954,48 +3954,48 @@ public void SetChannelName (String AChannelName) { byte[] byteChannelName = Encoding.UTF8.GetBytes(AChannelName + char.MinValue); - CheckError(Internal.Lib3MFWrapper.BoundaryShape_SetChannelName (Handle, byteChannelName)); + CheckError(Internal.Lib3MFWrapper.LevelSet_SetChannelName (Handle, byteChannelName)); } public void SetMinFeatureSize (Double AMinFeatureSize) { - CheckError(Internal.Lib3MFWrapper.BoundaryShape_SetMinFeatureSize (Handle, AMinFeatureSize)); + CheckError(Internal.Lib3MFWrapper.LevelSet_SetMinFeatureSize (Handle, AMinFeatureSize)); } public Double GetMinFeatureSize () { Double resultMinFeatureSize = 0; - CheckError(Internal.Lib3MFWrapper.BoundaryShape_GetMinFeatureSize (Handle, out resultMinFeatureSize)); + CheckError(Internal.Lib3MFWrapper.LevelSet_GetMinFeatureSize (Handle, out resultMinFeatureSize)); return resultMinFeatureSize; } public void SetFallBackValue (Double AFallBackValue) { - CheckError(Internal.Lib3MFWrapper.BoundaryShape_SetFallBackValue (Handle, AFallBackValue)); + CheckError(Internal.Lib3MFWrapper.LevelSet_SetFallBackValue (Handle, AFallBackValue)); } public Double GetFallBackValue () { Double resultFallBackValue = 0; - CheckError(Internal.Lib3MFWrapper.BoundaryShape_GetFallBackValue (Handle, out resultFallBackValue)); + CheckError(Internal.Lib3MFWrapper.LevelSet_GetFallBackValue (Handle, out resultFallBackValue)); return resultFallBackValue; } public void SetMeshBBoxOnly (bool AMeshBBoxOnly) { - CheckError(Internal.Lib3MFWrapper.BoundaryShape_SetMeshBBoxOnly (Handle, (Byte)( AMeshBBoxOnly ? 1 : 0 ))); + CheckError(Internal.Lib3MFWrapper.LevelSet_SetMeshBBoxOnly (Handle, (Byte)( AMeshBBoxOnly ? 1 : 0 ))); } public bool GetMeshBBoxOnly () { Byte resultMeshBBoxOnly = 0; - CheckError(Internal.Lib3MFWrapper.BoundaryShape_GetMeshBBoxOnly (Handle, out resultMeshBBoxOnly)); + CheckError(Internal.Lib3MFWrapper.LevelSet_GetMeshBBoxOnly (Handle, out resultMeshBBoxOnly)); return (resultMeshBBoxOnly != 0); } @@ -4005,14 +4005,14 @@ public void SetMesh (CMeshObject ATheMesh) if (ATheMesh != null) ATheMeshHandle = ATheMesh.GetHandle(); - CheckError(Internal.Lib3MFWrapper.BoundaryShape_SetMesh (Handle, ATheMeshHandle)); + CheckError(Internal.Lib3MFWrapper.LevelSet_SetMesh (Handle, ATheMeshHandle)); } public CMeshObject GetMesh () { IntPtr newTheMesh = IntPtr.Zero; - CheckError(Internal.Lib3MFWrapper.BoundaryShape_GetMesh (Handle, out newTheMesh)); + CheckError(Internal.Lib3MFWrapper.LevelSet_GetMesh (Handle, out newTheMesh)); return Internal.Lib3MFWrapper.PolymorphicFactory(newTheMesh); } @@ -4020,7 +4020,7 @@ public CVolumeData GetVolumeData () { IntPtr newTheVolumeData = IntPtr.Zero; - CheckError(Internal.Lib3MFWrapper.BoundaryShape_GetVolumeData (Handle, out newTheVolumeData)); + CheckError(Internal.Lib3MFWrapper.LevelSet_GetVolumeData (Handle, out newTheVolumeData)); return Internal.Lib3MFWrapper.PolymorphicFactory(newTheVolumeData); } @@ -4030,7 +4030,7 @@ public void SetVolumeData (CVolumeData ATheVolumeData) if (ATheVolumeData != null) ATheVolumeDataHandle = ATheVolumeData.GetHandle(); - CheckError(Internal.Lib3MFWrapper.BoundaryShape_SetVolumeData (Handle, ATheVolumeDataHandle)); + CheckError(Internal.Lib3MFWrapper.LevelSet_SetVolumeData (Handle, ATheVolumeDataHandle)); } } @@ -8859,20 +8859,20 @@ public CVolumeData AddVolumeData () return Internal.Lib3MFWrapper.PolymorphicFactory(newVolumeDataInstance); } - public CBoundaryShape AddBoundaryShape () + public CLevelSet AddLevelSet () { - IntPtr newBoundaryShapeInstance = IntPtr.Zero; + IntPtr newLevelSetInstance = IntPtr.Zero; - CheckError(Internal.Lib3MFWrapper.Model_AddBoundaryShape (Handle, out newBoundaryShapeInstance)); - return Internal.Lib3MFWrapper.PolymorphicFactory(newBoundaryShapeInstance); + CheckError(Internal.Lib3MFWrapper.Model_AddLevelSet (Handle, out newLevelSetInstance)); + return Internal.Lib3MFWrapper.PolymorphicFactory(newLevelSetInstance); } - public CBoundaryShapeIterator GetBoundaryShapes () + public CLevelSetIterator GetLevelSets () { IntPtr newResourceIterator = IntPtr.Zero; - CheckError(Internal.Lib3MFWrapper.Model_GetBoundaryShapes (Handle, out newResourceIterator)); - return Internal.Lib3MFWrapper.PolymorphicFactory(newResourceIterator); + CheckError(Internal.Lib3MFWrapper.Model_GetLevelSets (Handle, out newResourceIterator)); + return Internal.Lib3MFWrapper.PolymorphicFactory(newResourceIterator); } } diff --git a/Autogenerated/Bindings/Cpp/lib3mf_abi.hpp b/Autogenerated/Bindings/Cpp/lib3mf_abi.hpp index d0e6cb422..a968b54c5 100644 --- a/Autogenerated/Bindings/Cpp/lib3mf_abi.hpp +++ b/Autogenerated/Bindings/Cpp/lib3mf_abi.hpp @@ -602,17 +602,17 @@ LIB3MF_DECLSPEC Lib3MFResult lib3mf_image3diterator_getcurrentimage3d(Lib3MF_Ima LIB3MF_DECLSPEC Lib3MFResult lib3mf_functioniterator_getcurrentfunction(Lib3MF_FunctionIterator pFunctionIterator, Lib3MF_Function * pResource); /************************************************************************************************************************* - Class definition for BoundaryShapeIterator + Class definition for LevelSetIterator **************************************************************************************************************************/ /** -* Returns the BoundaryShape the iterator points at. +* Returns the LevelSet the iterator points at. * -* @param[in] pBoundaryShapeIterator - BoundaryShapeIterator instance. +* @param[in] pLevelSetIterator - LevelSetIterator instance. * @param[out] pResource - returns the MeshObject instance. * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_boundaryshapeiterator_getcurrentboundaryshape(Lib3MF_BoundaryShapeIterator pBoundaryShapeIterator, Lib3MF_BoundaryShape * pResource); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_levelsetiterator_getcurrentlevelset(Lib3MF_LevelSetIterator pLevelSetIterator, Lib3MF_LevelSet * pResource); /************************************************************************************************************************* Class definition for MetaData @@ -1224,154 +1224,154 @@ LIB3MF_DECLSPEC Lib3MFResult lib3mf_meshobject_getvolumedata(Lib3MF_MeshObject p LIB3MF_DECLSPEC Lib3MFResult lib3mf_meshobject_setvolumedata(Lib3MF_MeshObject pMeshObject, Lib3MF_VolumeData pTheVolumeData); /************************************************************************************************************************* - Class definition for BoundaryShape + Class definition for LevelSet **************************************************************************************************************************/ /** * Returns the function that is used as boundary shape. * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[out] pTheFunction - the function to use as boundary shape * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_boundaryshape_getfunction(Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_Function * pTheFunction); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_levelset_getfunction(Lib3MF_LevelSet pLevelSet, Lib3MF_Function * pTheFunction); /** * Sets the function to use as boundary shape. * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] pTheFunction - the function to use as boundary shape * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_boundaryshape_setfunction(Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_Function pTheFunction); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_levelset_setfunction(Lib3MF_LevelSet pLevelSet, Lib3MF_Function pTheFunction); /** * Returns the transformation matrix into the coordinate system of the referenced Function. * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[out] pTransform - the transformation matrix * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_boundaryshape_gettransform(Lib3MF_BoundaryShape pBoundaryShape, Lib3MF::sTransform * pTransform); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_levelset_gettransform(Lib3MF_LevelSet pLevelSet, Lib3MF::sTransform * pTransform); /** * Sets the transformation matrix into the coordinate system of the referenced Function. * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] pTransform - new transformation matrix * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_boundaryshape_settransform(Lib3MF_BoundaryShape pBoundaryShape, const Lib3MF::sTransform * pTransform); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_levelset_settransform(Lib3MF_LevelSet pLevelSet, const Lib3MF::sTransform * pTransform); /** * Returns the name of the function output channel to use. * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] nChannelNameBufferSize - size of the buffer (including trailing 0) * @param[out] pChannelNameNeededChars - will be filled with the count of the written bytes, or needed buffer size. * @param[out] pChannelNameBuffer - buffer of the name of the function output channel, may be NULL * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_boundaryshape_getchannelname(Lib3MF_BoundaryShape pBoundaryShape, const Lib3MF_uint32 nChannelNameBufferSize, Lib3MF_uint32* pChannelNameNeededChars, char * pChannelNameBuffer); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_levelset_getchannelname(Lib3MF_LevelSet pLevelSet, const Lib3MF_uint32 nChannelNameBufferSize, Lib3MF_uint32* pChannelNameNeededChars, char * pChannelNameBuffer); /** * Sets the name of the function output channel to use. * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] pChannelName - new name of the function output channel * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_boundaryshape_setchannelname(Lib3MF_BoundaryShape pBoundaryShape, const char * pChannelName); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_levelset_setchannelname(Lib3MF_LevelSet pLevelSet, const char * pChannelName); /** * Sets the minimal feature size as a hint for the function evaluator * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] dMinFeatureSize - minimal feature size * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_boundaryshape_setminfeaturesize(Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_double dMinFeatureSize); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_levelset_setminfeaturesize(Lib3MF_LevelSet pLevelSet, Lib3MF_double dMinFeatureSize); /** * Returns the minimal feature size as a hint for the function evaluator * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[out] pMinFeatureSize - minimal feature size * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_boundaryshape_getminfeaturesize(Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_double * pMinFeatureSize); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_levelset_getminfeaturesize(Lib3MF_LevelSet pLevelSet, Lib3MF_double * pMinFeatureSize); /** * Sets the fallback value to use if the function evaluation fails (e.g. evaluates to NaN or Inf). * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] dFallBackValue - fallback value * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_boundaryshape_setfallbackvalue(Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_double dFallBackValue); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_levelset_setfallbackvalue(Lib3MF_LevelSet pLevelSet, Lib3MF_double dFallBackValue); /** * Returns the fallback value to use if the function evaluation fails (e.g. evaluates to NaN or Inf). * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[out] pFallBackValue - fallback value * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_boundaryshape_getfallbackvalue(Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_double * pFallBackValue); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_levelset_getfallbackvalue(Lib3MF_LevelSet pLevelSet, Lib3MF_double * pFallBackValue); /** * If set only the bounding box of the mesh is intersected with the boundary * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] bMeshBBoxOnly - If set only the bounding box of the mesh is intersected with the boundary * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_boundaryshape_setmeshbboxonly(Lib3MF_BoundaryShape pBoundaryShape, bool bMeshBBoxOnly); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_levelset_setmeshbboxonly(Lib3MF_LevelSet pLevelSet, bool bMeshBBoxOnly); /** * If set only the bounding box of the mesh is intersected with the boundary * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[out] pMeshBBoxOnly - If set only the bounding box of the mesh is intersected with the boundary * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_boundaryshape_getmeshbboxonly(Lib3MF_BoundaryShape pBoundaryShape, bool * pMeshBBoxOnly); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_levelset_getmeshbboxonly(Lib3MF_LevelSet pLevelSet, bool * pMeshBBoxOnly); /** * Sets the mesh to use as evaluation domain * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] pTheMesh - The mesh * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_boundaryshape_setmesh(Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_MeshObject pTheMesh); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_levelset_setmesh(Lib3MF_LevelSet pLevelSet, Lib3MF_MeshObject pTheMesh); /** * Returns the mesh that is used as evaluation domain * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[out] pTheMesh - The mesh * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_boundaryshape_getmesh(Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_MeshObject * pTheMesh); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_levelset_getmesh(Lib3MF_LevelSet pLevelSet, Lib3MF_MeshObject * pTheMesh); /** * Retrieves the VolumeData this MeshObject. * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[out] pTheVolumeData - the VolumeData of this MeshObject * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_boundaryshape_getvolumedata(Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_VolumeData * pTheVolumeData); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_levelset_getvolumedata(Lib3MF_LevelSet pLevelSet, Lib3MF_VolumeData * pTheVolumeData); /** -* Sets the VolumeData of this BoundaryShape. +* Sets the VolumeData of this LevelSet. * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] pTheVolumeData - the VolumeData of this MeshObject * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_boundaryshape_setvolumedata(Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_VolumeData pTheVolumeData); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_levelset_setvolumedata(Lib3MF_LevelSet pLevelSet, Lib3MF_VolumeData pTheVolumeData); /************************************************************************************************************************* Class definition for BeamLattice @@ -6207,10 +6207,10 @@ LIB3MF_DECLSPEC Lib3MFResult lib3mf_model_addvolumedata(Lib3MF_Model pModel, Lib * adds an empty boundary shape object to the model. * * @param[in] pModel - Model instance. -* @param[out] pBoundaryShapeInstance - returns the mesh object instance +* @param[out] pLevelSetInstance - returns the mesh object instance * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_model_addboundaryshape(Lib3MF_Model pModel, Lib3MF_BoundaryShape * pBoundaryShapeInstance); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_model_addlevelset(Lib3MF_Model pModel, Lib3MF_LevelSet * pLevelSetInstance); /** * creates a resource iterator instance with all boundary shape resources. @@ -6219,7 +6219,7 @@ LIB3MF_DECLSPEC Lib3MFResult lib3mf_model_addboundaryshape(Lib3MF_Model pModel, * @param[out] pResourceIterator - returns the iterator instance. * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_model_getboundaryshapes(Lib3MF_Model pModel, Lib3MF_BoundaryShapeIterator * pResourceIterator); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_model_getlevelsets(Lib3MF_Model pModel, Lib3MF_LevelSetIterator * pResourceIterator); /************************************************************************************************************************* Global functions diff --git a/Autogenerated/Bindings/Cpp/lib3mf_implicit.hpp b/Autogenerated/Bindings/Cpp/lib3mf_implicit.hpp index b8020c083..e2d01cb09 100644 --- a/Autogenerated/Bindings/Cpp/lib3mf_implicit.hpp +++ b/Autogenerated/Bindings/Cpp/lib3mf_implicit.hpp @@ -75,12 +75,12 @@ class CCompositeMaterialsIterator; class CMultiPropertyGroupIterator; class CImage3DIterator; class CFunctionIterator; -class CBoundaryShapeIterator; +class CLevelSetIterator; class CMetaData; class CMetaDataGroup; class CObject; class CMeshObject; -class CBoundaryShape; +class CLevelSet; class CBeamLattice; class CFunctionReference; class CVolumeDataColor; @@ -194,12 +194,12 @@ typedef CCompositeMaterialsIterator CLib3MFCompositeMaterialsIterator; typedef CMultiPropertyGroupIterator CLib3MFMultiPropertyGroupIterator; typedef CImage3DIterator CLib3MFImage3DIterator; typedef CFunctionIterator CLib3MFFunctionIterator; -typedef CBoundaryShapeIterator CLib3MFBoundaryShapeIterator; +typedef CLevelSetIterator CLib3MFLevelSetIterator; typedef CMetaData CLib3MFMetaData; typedef CMetaDataGroup CLib3MFMetaDataGroup; typedef CObject CLib3MFObject; typedef CMeshObject CLib3MFMeshObject; -typedef CBoundaryShape CLib3MFBoundaryShape; +typedef CLevelSet CLib3MFLevelSet; typedef CBeamLattice CLib3MFBeamLattice; typedef CFunctionReference CLib3MFFunctionReference; typedef CVolumeDataColor CLib3MFVolumeDataColor; @@ -313,12 +313,12 @@ typedef std::shared_ptr PCompositeMaterialsIterator typedef std::shared_ptr PMultiPropertyGroupIterator; typedef std::shared_ptr PImage3DIterator; typedef std::shared_ptr PFunctionIterator; -typedef std::shared_ptr PBoundaryShapeIterator; +typedef std::shared_ptr PLevelSetIterator; typedef std::shared_ptr PMetaData; typedef std::shared_ptr PMetaDataGroup; typedef std::shared_ptr PObject; typedef std::shared_ptr PMeshObject; -typedef std::shared_ptr PBoundaryShape; +typedef std::shared_ptr PLevelSet; typedef std::shared_ptr PBeamLattice; typedef std::shared_ptr PFunctionReference; typedef std::shared_ptr PVolumeDataColor; @@ -432,12 +432,12 @@ typedef PCompositeMaterialsIterator PLib3MFCompositeMaterialsIterator; typedef PMultiPropertyGroupIterator PLib3MFMultiPropertyGroupIterator; typedef PImage3DIterator PLib3MFImage3DIterator; typedef PFunctionIterator PLib3MFFunctionIterator; -typedef PBoundaryShapeIterator PLib3MFBoundaryShapeIterator; +typedef PLevelSetIterator PLib3MFLevelSetIterator; typedef PMetaData PLib3MFMetaData; typedef PMetaDataGroup PLib3MFMetaDataGroup; typedef PObject PLib3MFObject; typedef PMeshObject PLib3MFMeshObject; -typedef PBoundaryShape PLib3MFBoundaryShape; +typedef PLevelSet PLib3MFLevelSet; typedef PBeamLattice PLib3MFBeamLattice; typedef PFunctionReference PLib3MFFunctionReference; typedef PVolumeDataColor PLib3MFVolumeDataColor; @@ -835,12 +835,12 @@ class CWrapper { friend class CMultiPropertyGroupIterator; friend class CImage3DIterator; friend class CFunctionIterator; - friend class CBoundaryShapeIterator; + friend class CLevelSetIterator; friend class CMetaData; friend class CMetaDataGroup; friend class CObject; friend class CMeshObject; - friend class CBoundaryShape; + friend class CLevelSet; friend class CBeamLattice; friend class CFunctionReference; friend class CVolumeDataColor; @@ -1314,20 +1314,20 @@ class CFunctionIterator : public CResourceIterator { }; /************************************************************************************************************************* - Class CBoundaryShapeIterator + Class CLevelSetIterator **************************************************************************************************************************/ -class CBoundaryShapeIterator : public CResourceIterator { +class CLevelSetIterator : public CResourceIterator { public: /** - * CBoundaryShapeIterator::CBoundaryShapeIterator - Constructor for BoundaryShapeIterator class. + * CLevelSetIterator::CLevelSetIterator - Constructor for LevelSetIterator class. */ - CBoundaryShapeIterator(CWrapper* pWrapper, Lib3MFHandle pHandle) + CLevelSetIterator(CWrapper* pWrapper, Lib3MFHandle pHandle) : CResourceIterator(pWrapper, pHandle) { } - inline PBoundaryShape GetCurrentBoundaryShape(); + inline PLevelSet GetCurrentLevelSet(); }; /************************************************************************************************************************* @@ -1456,15 +1456,15 @@ class CMeshObject : public CObject { }; /************************************************************************************************************************* - Class CBoundaryShape + Class CLevelSet **************************************************************************************************************************/ -class CBoundaryShape : public CObject { +class CLevelSet : public CObject { public: /** - * CBoundaryShape::CBoundaryShape - Constructor for BoundaryShape class. + * CLevelSet::CLevelSet - Constructor for LevelSet class. */ - CBoundaryShape(CWrapper* pWrapper, Lib3MFHandle pHandle) + CLevelSet(CWrapper* pWrapper, Lib3MFHandle pHandle) : CObject(pWrapper, pHandle) { } @@ -3375,8 +3375,8 @@ class CModel : public CBase { inline PImplicitFunction AddImplicitFunction(); inline PFunctionFromImage3D AddFunctionFromImage3D(classParam pImage3DInstance); inline PVolumeData AddVolumeData(); - inline PBoundaryShape AddBoundaryShape(); - inline PBoundaryShapeIterator GetBoundaryShapes(); + inline PLevelSet AddLevelSet(); + inline PLevelSetIterator GetLevelSets(); }; /************************************************************************************************************************* @@ -3413,12 +3413,12 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) case 0xC2BDF5D8CBBDB1F0UL: return new CMultiPropertyGroupIterator(this, pHandle); break; // First 64 bits of SHA1 of a string: "Lib3MF::MultiPropertyGroupIterator" case 0xC4B8EC00A82BF336UL: return new CImage3DIterator(this, pHandle); break; // First 64 bits of SHA1 of a string: "Lib3MF::Image3DIterator" case 0x40E9035363ACE65EUL: return new CFunctionIterator(this, pHandle); break; // First 64 bits of SHA1 of a string: "Lib3MF::FunctionIterator" - case 0x9FBC898CF30CDEF3UL: return new CBoundaryShapeIterator(this, pHandle); break; // First 64 bits of SHA1 of a string: "Lib3MF::BoundaryShapeIterator" + case 0x9FBC898CF30CDEF3UL: return new CLevelSetIterator(this, pHandle); break; // First 64 bits of SHA1 of a string: "Lib3MF::LevelSetIterator" case 0xD17716D063DE2C22UL: return new CMetaData(this, pHandle); break; // First 64 bits of SHA1 of a string: "Lib3MF::MetaData" case 0x0C3B85369E9B25D3UL: return new CMetaDataGroup(this, pHandle); break; // First 64 bits of SHA1 of a string: "Lib3MF::MetaDataGroup" case 0x2DA2136F577A779CUL: return new CObject(this, pHandle); break; // First 64 bits of SHA1 of a string: "Lib3MF::Object" case 0x3B3A6DC6EC610497UL: return new CMeshObject(this, pHandle); break; // First 64 bits of SHA1 of a string: "Lib3MF::MeshObject" - case 0x2BE0E57BA81B2ECBUL: return new CBoundaryShape(this, pHandle); break; // First 64 bits of SHA1 of a string: "Lib3MF::BoundaryShape" + case 0x2BE0E57BA81B2ECBUL: return new CLevelSet(this, pHandle); break; // First 64 bits of SHA1 of a string: "Lib3MF::LevelSet" case 0x63B3B461B30B4BA5UL: return new CBeamLattice(this, pHandle); break; // First 64 bits of SHA1 of a string: "Lib3MF::BeamLattice" case 0x4DF17E76926221C2UL: return new CFunctionReference(this, pHandle); break; // First 64 bits of SHA1 of a string: "Lib3MF::FunctionReference" case 0xD85B5B6143E787E3UL: return new CVolumeDataColor(this, pHandle); break; // First 64 bits of SHA1 of a string: "Lib3MF::VolumeDataColor" @@ -4482,22 +4482,22 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) } /** - * Method definitions for class CBoundaryShapeIterator + * Method definitions for class CLevelSetIterator */ /** - * CBoundaryShapeIterator::GetCurrentBoundaryShape - Returns the BoundaryShape the iterator points at. + * CLevelSetIterator::GetCurrentLevelSet - Returns the LevelSet the iterator points at. * @return returns the MeshObject instance. */ - PBoundaryShape CBoundaryShapeIterator::GetCurrentBoundaryShape() + PLevelSet CLevelSetIterator::GetCurrentLevelSet() { Lib3MFHandle hResource = nullptr; - CheckError(lib3mf_boundaryshapeiterator_getcurrentboundaryshape(m_pHandle, &hResource)); + CheckError(lib3mf_levelsetiterator_getcurrentlevelset(m_pHandle, &hResource)); if (!hResource) { CheckError(LIB3MF_ERROR_INVALIDPARAM); } - return std::shared_ptr(dynamic_cast(m_pWrapper->polymorphicFactory(hResource))); + return std::shared_ptr(dynamic_cast(m_pWrapper->polymorphicFactory(hResource))); } /** @@ -5250,17 +5250,17 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) } /** - * Method definitions for class CBoundaryShape + * Method definitions for class CLevelSet */ /** - * CBoundaryShape::GetFunction - Returns the function that is used as boundary shape. + * CLevelSet::GetFunction - Returns the function that is used as boundary shape. * @return the function to use as boundary shape */ - PFunction CBoundaryShape::GetFunction() + PFunction CLevelSet::GetFunction() { Lib3MFHandle hTheFunction = nullptr; - CheckError(lib3mf_boundaryshape_getfunction(m_pHandle, &hTheFunction)); + CheckError(lib3mf_levelset_getfunction(m_pHandle, &hTheFunction)); if (hTheFunction) { return std::shared_ptr(dynamic_cast(m_pWrapper->polymorphicFactory(hTheFunction))); @@ -5270,141 +5270,141 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) } /** - * CBoundaryShape::SetFunction - Sets the function to use as boundary shape. + * CLevelSet::SetFunction - Sets the function to use as boundary shape. * @param[in] pTheFunction - the function to use as boundary shape */ - void CBoundaryShape::SetFunction(classParam pTheFunction) + void CLevelSet::SetFunction(classParam pTheFunction) { Lib3MFHandle hTheFunction = pTheFunction.GetHandle(); - CheckError(lib3mf_boundaryshape_setfunction(m_pHandle, hTheFunction)); + CheckError(lib3mf_levelset_setfunction(m_pHandle, hTheFunction)); } /** - * CBoundaryShape::GetTransform - Returns the transformation matrix into the coordinate system of the referenced Function. + * CLevelSet::GetTransform - Returns the transformation matrix into the coordinate system of the referenced Function. * @return the transformation matrix */ - sTransform CBoundaryShape::GetTransform() + sTransform CLevelSet::GetTransform() { sTransform resultTransform; - CheckError(lib3mf_boundaryshape_gettransform(m_pHandle, &resultTransform)); + CheckError(lib3mf_levelset_gettransform(m_pHandle, &resultTransform)); return resultTransform; } /** - * CBoundaryShape::SetTransform - Sets the transformation matrix into the coordinate system of the referenced Function. + * CLevelSet::SetTransform - Sets the transformation matrix into the coordinate system of the referenced Function. * @param[in] Transform - new transformation matrix */ - void CBoundaryShape::SetTransform(const sTransform & Transform) + void CLevelSet::SetTransform(const sTransform & Transform) { - CheckError(lib3mf_boundaryshape_settransform(m_pHandle, &Transform)); + CheckError(lib3mf_levelset_settransform(m_pHandle, &Transform)); } /** - * CBoundaryShape::GetChannelName - Returns the name of the function output channel to use. + * CLevelSet::GetChannelName - Returns the name of the function output channel to use. * @return the name of the function output channel */ - std::string CBoundaryShape::GetChannelName() + std::string CLevelSet::GetChannelName() { Lib3MF_uint32 bytesNeededChannelName = 0; Lib3MF_uint32 bytesWrittenChannelName = 0; - CheckError(lib3mf_boundaryshape_getchannelname(m_pHandle, 0, &bytesNeededChannelName, nullptr)); + CheckError(lib3mf_levelset_getchannelname(m_pHandle, 0, &bytesNeededChannelName, nullptr)); std::vector bufferChannelName(bytesNeededChannelName); - CheckError(lib3mf_boundaryshape_getchannelname(m_pHandle, bytesNeededChannelName, &bytesWrittenChannelName, &bufferChannelName[0])); + CheckError(lib3mf_levelset_getchannelname(m_pHandle, bytesNeededChannelName, &bytesWrittenChannelName, &bufferChannelName[0])); return std::string(&bufferChannelName[0]); } /** - * CBoundaryShape::SetChannelName - Sets the name of the function output channel to use. + * CLevelSet::SetChannelName - Sets the name of the function output channel to use. * @param[in] sChannelName - new name of the function output channel */ - void CBoundaryShape::SetChannelName(const std::string & sChannelName) + void CLevelSet::SetChannelName(const std::string & sChannelName) { - CheckError(lib3mf_boundaryshape_setchannelname(m_pHandle, sChannelName.c_str())); + CheckError(lib3mf_levelset_setchannelname(m_pHandle, sChannelName.c_str())); } /** - * CBoundaryShape::SetMinFeatureSize - Sets the minimal feature size as a hint for the function evaluator + * CLevelSet::SetMinFeatureSize - Sets the minimal feature size as a hint for the function evaluator * @param[in] dMinFeatureSize - minimal feature size */ - void CBoundaryShape::SetMinFeatureSize(const Lib3MF_double dMinFeatureSize) + void CLevelSet::SetMinFeatureSize(const Lib3MF_double dMinFeatureSize) { - CheckError(lib3mf_boundaryshape_setminfeaturesize(m_pHandle, dMinFeatureSize)); + CheckError(lib3mf_levelset_setminfeaturesize(m_pHandle, dMinFeatureSize)); } /** - * CBoundaryShape::GetMinFeatureSize - Returns the minimal feature size as a hint for the function evaluator + * CLevelSet::GetMinFeatureSize - Returns the minimal feature size as a hint for the function evaluator * @return minimal feature size */ - Lib3MF_double CBoundaryShape::GetMinFeatureSize() + Lib3MF_double CLevelSet::GetMinFeatureSize() { Lib3MF_double resultMinFeatureSize = 0; - CheckError(lib3mf_boundaryshape_getminfeaturesize(m_pHandle, &resultMinFeatureSize)); + CheckError(lib3mf_levelset_getminfeaturesize(m_pHandle, &resultMinFeatureSize)); return resultMinFeatureSize; } /** - * CBoundaryShape::SetFallBackValue - Sets the fallback value to use if the function evaluation fails (e.g. evaluates to NaN or Inf). + * CLevelSet::SetFallBackValue - Sets the fallback value to use if the function evaluation fails (e.g. evaluates to NaN or Inf). * @param[in] dFallBackValue - fallback value */ - void CBoundaryShape::SetFallBackValue(const Lib3MF_double dFallBackValue) + void CLevelSet::SetFallBackValue(const Lib3MF_double dFallBackValue) { - CheckError(lib3mf_boundaryshape_setfallbackvalue(m_pHandle, dFallBackValue)); + CheckError(lib3mf_levelset_setfallbackvalue(m_pHandle, dFallBackValue)); } /** - * CBoundaryShape::GetFallBackValue - Returns the fallback value to use if the function evaluation fails (e.g. evaluates to NaN or Inf). + * CLevelSet::GetFallBackValue - Returns the fallback value to use if the function evaluation fails (e.g. evaluates to NaN or Inf). * @return fallback value */ - Lib3MF_double CBoundaryShape::GetFallBackValue() + Lib3MF_double CLevelSet::GetFallBackValue() { Lib3MF_double resultFallBackValue = 0; - CheckError(lib3mf_boundaryshape_getfallbackvalue(m_pHandle, &resultFallBackValue)); + CheckError(lib3mf_levelset_getfallbackvalue(m_pHandle, &resultFallBackValue)); return resultFallBackValue; } /** - * CBoundaryShape::SetMeshBBoxOnly - If set only the bounding box of the mesh is intersected with the boundary + * CLevelSet::SetMeshBBoxOnly - If set only the bounding box of the mesh is intersected with the boundary * @param[in] bMeshBBoxOnly - If set only the bounding box of the mesh is intersected with the boundary */ - void CBoundaryShape::SetMeshBBoxOnly(const bool bMeshBBoxOnly) + void CLevelSet::SetMeshBBoxOnly(const bool bMeshBBoxOnly) { - CheckError(lib3mf_boundaryshape_setmeshbboxonly(m_pHandle, bMeshBBoxOnly)); + CheckError(lib3mf_levelset_setmeshbboxonly(m_pHandle, bMeshBBoxOnly)); } /** - * CBoundaryShape::GetMeshBBoxOnly - If set only the bounding box of the mesh is intersected with the boundary + * CLevelSet::GetMeshBBoxOnly - If set only the bounding box of the mesh is intersected with the boundary * @return If set only the bounding box of the mesh is intersected with the boundary */ - bool CBoundaryShape::GetMeshBBoxOnly() + bool CLevelSet::GetMeshBBoxOnly() { bool resultMeshBBoxOnly = 0; - CheckError(lib3mf_boundaryshape_getmeshbboxonly(m_pHandle, &resultMeshBBoxOnly)); + CheckError(lib3mf_levelset_getmeshbboxonly(m_pHandle, &resultMeshBBoxOnly)); return resultMeshBBoxOnly; } /** - * CBoundaryShape::SetMesh - Sets the mesh to use as evaluation domain + * CLevelSet::SetMesh - Sets the mesh to use as evaluation domain * @param[in] pTheMesh - The mesh */ - void CBoundaryShape::SetMesh(classParam pTheMesh) + void CLevelSet::SetMesh(classParam pTheMesh) { Lib3MFHandle hTheMesh = pTheMesh.GetHandle(); - CheckError(lib3mf_boundaryshape_setmesh(m_pHandle, hTheMesh)); + CheckError(lib3mf_levelset_setmesh(m_pHandle, hTheMesh)); } /** - * CBoundaryShape::GetMesh - Returns the mesh that is used as evaluation domain + * CLevelSet::GetMesh - Returns the mesh that is used as evaluation domain * @return The mesh */ - PMeshObject CBoundaryShape::GetMesh() + PMeshObject CLevelSet::GetMesh() { Lib3MFHandle hTheMesh = nullptr; - CheckError(lib3mf_boundaryshape_getmesh(m_pHandle, &hTheMesh)); + CheckError(lib3mf_levelset_getmesh(m_pHandle, &hTheMesh)); if (hTheMesh) { return std::shared_ptr(dynamic_cast(m_pWrapper->polymorphicFactory(hTheMesh))); @@ -5414,13 +5414,13 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) } /** - * CBoundaryShape::GetVolumeData - Retrieves the VolumeData this MeshObject. + * CLevelSet::GetVolumeData - Retrieves the VolumeData this MeshObject. * @return the VolumeData of this MeshObject */ - PVolumeData CBoundaryShape::GetVolumeData() + PVolumeData CLevelSet::GetVolumeData() { Lib3MFHandle hTheVolumeData = nullptr; - CheckError(lib3mf_boundaryshape_getvolumedata(m_pHandle, &hTheVolumeData)); + CheckError(lib3mf_levelset_getvolumedata(m_pHandle, &hTheVolumeData)); if (hTheVolumeData) { return std::shared_ptr(dynamic_cast(m_pWrapper->polymorphicFactory(hTheVolumeData))); @@ -5430,13 +5430,13 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) } /** - * CBoundaryShape::SetVolumeData - Sets the VolumeData of this BoundaryShape. + * CLevelSet::SetVolumeData - Sets the VolumeData of this LevelSet. * @param[in] pTheVolumeData - the VolumeData of this MeshObject */ - void CBoundaryShape::SetVolumeData(classParam pTheVolumeData) + void CLevelSet::SetVolumeData(classParam pTheVolumeData) { Lib3MFHandle hTheVolumeData = pTheVolumeData.GetHandle(); - CheckError(lib3mf_boundaryshape_setvolumedata(m_pHandle, hTheVolumeData)); + CheckError(lib3mf_levelset_setvolumedata(m_pHandle, hTheVolumeData)); } /** @@ -11992,33 +11992,33 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) } /** - * CModel::AddBoundaryShape - adds an empty boundary shape object to the model. + * CModel::AddLevelSet - adds an empty boundary shape object to the model. * @return returns the mesh object instance */ - PBoundaryShape CModel::AddBoundaryShape() + PLevelSet CModel::AddLevelSet() { - Lib3MFHandle hBoundaryShapeInstance = nullptr; - CheckError(lib3mf_model_addboundaryshape(m_pHandle, &hBoundaryShapeInstance)); + Lib3MFHandle hLevelSetInstance = nullptr; + CheckError(lib3mf_model_addlevelset(m_pHandle, &hLevelSetInstance)); - if (!hBoundaryShapeInstance) { + if (!hLevelSetInstance) { CheckError(LIB3MF_ERROR_INVALIDPARAM); } - return std::shared_ptr(dynamic_cast(m_pWrapper->polymorphicFactory(hBoundaryShapeInstance))); + return std::shared_ptr(dynamic_cast(m_pWrapper->polymorphicFactory(hLevelSetInstance))); } /** - * CModel::GetBoundaryShapes - creates a resource iterator instance with all boundary shape resources. + * CModel::GetLevelSets - creates a resource iterator instance with all boundary shape resources. * @return returns the iterator instance. */ - PBoundaryShapeIterator CModel::GetBoundaryShapes() + PLevelSetIterator CModel::GetLevelSets() { Lib3MFHandle hResourceIterator = nullptr; - CheckError(lib3mf_model_getboundaryshapes(m_pHandle, &hResourceIterator)); + CheckError(lib3mf_model_getlevelsets(m_pHandle, &hResourceIterator)); if (!hResourceIterator) { CheckError(LIB3MF_ERROR_INVALIDPARAM); } - return std::shared_ptr(dynamic_cast(m_pWrapper->polymorphicFactory(hResourceIterator))); + return std::shared_ptr(dynamic_cast(m_pWrapper->polymorphicFactory(hResourceIterator))); } } // namespace Lib3MF diff --git a/Autogenerated/Bindings/Cpp/lib3mf_types.hpp b/Autogenerated/Bindings/Cpp/lib3mf_types.hpp index 3860a5709..8c709a77e 100644 --- a/Autogenerated/Bindings/Cpp/lib3mf_types.hpp +++ b/Autogenerated/Bindings/Cpp/lib3mf_types.hpp @@ -221,12 +221,12 @@ typedef Lib3MFHandle Lib3MF_CompositeMaterialsIterator; typedef Lib3MFHandle Lib3MF_MultiPropertyGroupIterator; typedef Lib3MFHandle Lib3MF_Image3DIterator; typedef Lib3MFHandle Lib3MF_FunctionIterator; -typedef Lib3MFHandle Lib3MF_BoundaryShapeIterator; +typedef Lib3MFHandle Lib3MF_LevelSetIterator; typedef Lib3MFHandle Lib3MF_MetaData; typedef Lib3MFHandle Lib3MF_MetaDataGroup; typedef Lib3MFHandle Lib3MF_Object; typedef Lib3MFHandle Lib3MF_MeshObject; -typedef Lib3MFHandle Lib3MF_BoundaryShape; +typedef Lib3MFHandle Lib3MF_LevelSet; typedef Lib3MFHandle Lib3MF_BeamLattice; typedef Lib3MFHandle Lib3MF_FunctionReference; typedef Lib3MFHandle Lib3MF_VolumeDataColor; diff --git a/Autogenerated/Bindings/CppDynamic/lib3mf_abi.hpp b/Autogenerated/Bindings/CppDynamic/lib3mf_abi.hpp index 24eaa37b9..bf885ea48 100644 --- a/Autogenerated/Bindings/CppDynamic/lib3mf_abi.hpp +++ b/Autogenerated/Bindings/CppDynamic/lib3mf_abi.hpp @@ -2213,20 +2213,20 @@ LIB3MF_DECLSPEC Lib3MFResult lib3mf_volumedataproperty_isrequired(Lib3MF_VolumeD * Returns the VolumeDataBoundary of this VolumeData instance * * @param[in] pVolumeData - VolumeData instance. -* @param[out] pTheBoundaryData - filled with the VolumeDataBoundary of this VolumeData instance. +* @param[out] pTheLevelSetData - filled with the VolumeDataBoundary of this VolumeData instance. * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_volumedata_getboundary(Lib3MF_VolumeData pVolumeData, Lib3MF_VolumeDataBoundary * pTheBoundaryData); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_volumedata_getboundary(Lib3MF_VolumeData pVolumeData, Lib3MF_VolumeDataBoundary * pTheLevelSetData); /** * Creates a new VolumeDataBoundary for this VolumeData instance * * @param[in] pVolumeData - VolumeData instance. * @param[in] pTheScalarField - ScalarField used in this element -* @param[out] pTheBoundaryData - The new VolumeDataBoundary of this VolumeData instance. +* @param[out] pTheLevelSetData - The new VolumeDataBoundary of this VolumeData instance. * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_volumedata_createnewboundary(Lib3MF_VolumeData pVolumeData, Lib3MF_ScalarField pTheScalarField, Lib3MF_VolumeDataBoundary * pTheBoundaryData); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_volumedata_createnewboundary(Lib3MF_VolumeData pVolumeData, Lib3MF_ScalarField pTheScalarField, Lib3MF_VolumeDataBoundary * pTheLevelSetData); /** * Removes the VolumeDataBoundary of this VolumeData instance diff --git a/Autogenerated/Bindings/CppDynamic/lib3mf_dynamic.h b/Autogenerated/Bindings/CppDynamic/lib3mf_dynamic.h index 7695b6191..81812cb61 100644 --- a/Autogenerated/Bindings/CppDynamic/lib3mf_dynamic.h +++ b/Autogenerated/Bindings/CppDynamic/lib3mf_dynamic.h @@ -589,17 +589,17 @@ typedef Lib3MFResult (*PLib3MFImage3DIterator_GetCurrentImage3DPtr) (Lib3MF_Imag typedef Lib3MFResult (*PLib3MFFunctionIterator_GetCurrentFunctionPtr) (Lib3MF_FunctionIterator pFunctionIterator, Lib3MF_Function * pResource); /************************************************************************************************************************* - Class definition for BoundaryShapeIterator + Class definition for LevelSetIterator **************************************************************************************************************************/ /** -* Returns the BoundaryShape the iterator points at. +* Returns the LevelSet the iterator points at. * -* @param[in] pBoundaryShapeIterator - BoundaryShapeIterator instance. +* @param[in] pLevelSetIterator - LevelSetIterator instance. * @param[out] pResource - returns the MeshObject instance. * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShapeIterator_GetCurrentBoundaryShapePtr) (Lib3MF_BoundaryShapeIterator pBoundaryShapeIterator, Lib3MF_BoundaryShape * pResource); +typedef Lib3MFResult (*PLib3MFLevelSetIterator_GetCurrentLevelSetPtr) (Lib3MF_LevelSetIterator pLevelSetIterator, Lib3MF_LevelSet * pResource); /************************************************************************************************************************* Class definition for MetaData @@ -1211,154 +1211,154 @@ typedef Lib3MFResult (*PLib3MFMeshObject_GetVolumeDataPtr) (Lib3MF_MeshObject pM typedef Lib3MFResult (*PLib3MFMeshObject_SetVolumeDataPtr) (Lib3MF_MeshObject pMeshObject, Lib3MF_VolumeData pTheVolumeData); /************************************************************************************************************************* - Class definition for BoundaryShape + Class definition for LevelSet **************************************************************************************************************************/ /** * Returns the function that is used as boundary shape. * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[out] pTheFunction - the function to use as boundary shape * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_GetFunctionPtr) (Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_Function * pTheFunction); +typedef Lib3MFResult (*PLib3MFLevelSet_GetFunctionPtr) (Lib3MF_LevelSet pLevelSet, Lib3MF_Function * pTheFunction); /** * Sets the function to use as boundary shape. * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] pTheFunction - the function to use as boundary shape * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_SetFunctionPtr) (Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_Function pTheFunction); +typedef Lib3MFResult (*PLib3MFLevelSet_SetFunctionPtr) (Lib3MF_LevelSet pLevelSet, Lib3MF_Function pTheFunction); /** * Returns the transformation matrix into the coordinate system of the referenced Function. * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[out] pTransform - the transformation matrix * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_GetTransformPtr) (Lib3MF_BoundaryShape pBoundaryShape, Lib3MF::sTransform * pTransform); +typedef Lib3MFResult (*PLib3MFLevelSet_GetTransformPtr) (Lib3MF_LevelSet pLevelSet, Lib3MF::sTransform * pTransform); /** * Sets the transformation matrix into the coordinate system of the referenced Function. * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] pTransform - new transformation matrix * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_SetTransformPtr) (Lib3MF_BoundaryShape pBoundaryShape, const Lib3MF::sTransform * pTransform); +typedef Lib3MFResult (*PLib3MFLevelSet_SetTransformPtr) (Lib3MF_LevelSet pLevelSet, const Lib3MF::sTransform * pTransform); /** * Returns the name of the function output channel to use. * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] nChannelNameBufferSize - size of the buffer (including trailing 0) * @param[out] pChannelNameNeededChars - will be filled with the count of the written bytes, or needed buffer size. * @param[out] pChannelNameBuffer - buffer of the name of the function output channel, may be NULL * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_GetChannelNamePtr) (Lib3MF_BoundaryShape pBoundaryShape, const Lib3MF_uint32 nChannelNameBufferSize, Lib3MF_uint32* pChannelNameNeededChars, char * pChannelNameBuffer); +typedef Lib3MFResult (*PLib3MFLevelSet_GetChannelNamePtr) (Lib3MF_LevelSet pLevelSet, const Lib3MF_uint32 nChannelNameBufferSize, Lib3MF_uint32* pChannelNameNeededChars, char * pChannelNameBuffer); /** * Sets the name of the function output channel to use. * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] pChannelName - new name of the function output channel * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_SetChannelNamePtr) (Lib3MF_BoundaryShape pBoundaryShape, const char * pChannelName); +typedef Lib3MFResult (*PLib3MFLevelSet_SetChannelNamePtr) (Lib3MF_LevelSet pLevelSet, const char * pChannelName); /** * Sets the minimal feature size as a hint for the function evaluator * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] dMinFeatureSize - minimal feature size * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_SetMinFeatureSizePtr) (Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_double dMinFeatureSize); +typedef Lib3MFResult (*PLib3MFLevelSet_SetMinFeatureSizePtr) (Lib3MF_LevelSet pLevelSet, Lib3MF_double dMinFeatureSize); /** * Returns the minimal feature size as a hint for the function evaluator * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[out] pMinFeatureSize - minimal feature size * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_GetMinFeatureSizePtr) (Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_double * pMinFeatureSize); +typedef Lib3MFResult (*PLib3MFLevelSet_GetMinFeatureSizePtr) (Lib3MF_LevelSet pLevelSet, Lib3MF_double * pMinFeatureSize); /** * Sets the fallback value to use if the function evaluation fails (e.g. evaluates to NaN or Inf). * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] dFallBackValue - fallback value * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_SetFallBackValuePtr) (Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_double dFallBackValue); +typedef Lib3MFResult (*PLib3MFLevelSet_SetFallBackValuePtr) (Lib3MF_LevelSet pLevelSet, Lib3MF_double dFallBackValue); /** * Returns the fallback value to use if the function evaluation fails (e.g. evaluates to NaN or Inf). * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[out] pFallBackValue - fallback value * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_GetFallBackValuePtr) (Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_double * pFallBackValue); +typedef Lib3MFResult (*PLib3MFLevelSet_GetFallBackValuePtr) (Lib3MF_LevelSet pLevelSet, Lib3MF_double * pFallBackValue); /** * If set only the bounding box of the mesh is intersected with the boundary * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] bMeshBBoxOnly - If set only the bounding box of the mesh is intersected with the boundary * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_SetMeshBBoxOnlyPtr) (Lib3MF_BoundaryShape pBoundaryShape, bool bMeshBBoxOnly); +typedef Lib3MFResult (*PLib3MFLevelSet_SetMeshBBoxOnlyPtr) (Lib3MF_LevelSet pLevelSet, bool bMeshBBoxOnly); /** * If set only the bounding box of the mesh is intersected with the boundary * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[out] pMeshBBoxOnly - If set only the bounding box of the mesh is intersected with the boundary * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_GetMeshBBoxOnlyPtr) (Lib3MF_BoundaryShape pBoundaryShape, bool * pMeshBBoxOnly); +typedef Lib3MFResult (*PLib3MFLevelSet_GetMeshBBoxOnlyPtr) (Lib3MF_LevelSet pLevelSet, bool * pMeshBBoxOnly); /** * Sets the mesh to use as evaluation domain * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] pTheMesh - The mesh * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_SetMeshPtr) (Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_MeshObject pTheMesh); +typedef Lib3MFResult (*PLib3MFLevelSet_SetMeshPtr) (Lib3MF_LevelSet pLevelSet, Lib3MF_MeshObject pTheMesh); /** * Returns the mesh that is used as evaluation domain * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[out] pTheMesh - The mesh * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_GetMeshPtr) (Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_MeshObject * pTheMesh); +typedef Lib3MFResult (*PLib3MFLevelSet_GetMeshPtr) (Lib3MF_LevelSet pLevelSet, Lib3MF_MeshObject * pTheMesh); /** * Retrieves the VolumeData this MeshObject. * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[out] pTheVolumeData - the VolumeData of this MeshObject * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_GetVolumeDataPtr) (Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_VolumeData * pTheVolumeData); +typedef Lib3MFResult (*PLib3MFLevelSet_GetVolumeDataPtr) (Lib3MF_LevelSet pLevelSet, Lib3MF_VolumeData * pTheVolumeData); /** -* Sets the VolumeData of this BoundaryShape. +* Sets the VolumeData of this LevelSet. * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] pTheVolumeData - the VolumeData of this MeshObject * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_SetVolumeDataPtr) (Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_VolumeData pTheVolumeData); +typedef Lib3MFResult (*PLib3MFLevelSet_SetVolumeDataPtr) (Lib3MF_LevelSet pLevelSet, Lib3MF_VolumeData pTheVolumeData); /************************************************************************************************************************* Class definition for BeamLattice @@ -6194,10 +6194,10 @@ typedef Lib3MFResult (*PLib3MFModel_AddVolumeDataPtr) (Lib3MF_Model pModel, Lib3 * adds an empty boundary shape object to the model. * * @param[in] pModel - Model instance. -* @param[out] pBoundaryShapeInstance - returns the mesh object instance +* @param[out] pLevelSetInstance - returns the mesh object instance * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFModel_AddBoundaryShapePtr) (Lib3MF_Model pModel, Lib3MF_BoundaryShape * pBoundaryShapeInstance); +typedef Lib3MFResult (*PLib3MFModel_AddLevelSetPtr) (Lib3MF_Model pModel, Lib3MF_LevelSet * pLevelSetInstance); /** * creates a resource iterator instance with all boundary shape resources. @@ -6206,7 +6206,7 @@ typedef Lib3MFResult (*PLib3MFModel_AddBoundaryShapePtr) (Lib3MF_Model pModel, L * @param[out] pResourceIterator - returns the iterator instance. * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFModel_GetBoundaryShapesPtr) (Lib3MF_Model pModel, Lib3MF_BoundaryShapeIterator * pResourceIterator); +typedef Lib3MFResult (*PLib3MFModel_GetLevelSetsPtr) (Lib3MF_Model pModel, Lib3MF_LevelSetIterator * pResourceIterator); /************************************************************************************************************************* Global functions @@ -6462,7 +6462,7 @@ typedef struct { PLib3MFMultiPropertyGroupIterator_GetCurrentMultiPropertyGroupPtr m_MultiPropertyGroupIterator_GetCurrentMultiPropertyGroup; PLib3MFImage3DIterator_GetCurrentImage3DPtr m_Image3DIterator_GetCurrentImage3D; PLib3MFFunctionIterator_GetCurrentFunctionPtr m_FunctionIterator_GetCurrentFunction; - PLib3MFBoundaryShapeIterator_GetCurrentBoundaryShapePtr m_BoundaryShapeIterator_GetCurrentBoundaryShape; + PLib3MFLevelSetIterator_GetCurrentLevelSetPtr m_LevelSetIterator_GetCurrentLevelSet; PLib3MFMetaData_GetNameSpacePtr m_MetaData_GetNameSpace; PLib3MFMetaData_SetNameSpacePtr m_MetaData_SetNameSpace; PLib3MFMetaData_GetNamePtr m_MetaData_GetName; @@ -6524,22 +6524,22 @@ typedef struct { PLib3MFMeshObject_BeamLatticePtr m_MeshObject_BeamLattice; PLib3MFMeshObject_GetVolumeDataPtr m_MeshObject_GetVolumeData; PLib3MFMeshObject_SetVolumeDataPtr m_MeshObject_SetVolumeData; - PLib3MFBoundaryShape_GetFunctionPtr m_BoundaryShape_GetFunction; - PLib3MFBoundaryShape_SetFunctionPtr m_BoundaryShape_SetFunction; - PLib3MFBoundaryShape_GetTransformPtr m_BoundaryShape_GetTransform; - PLib3MFBoundaryShape_SetTransformPtr m_BoundaryShape_SetTransform; - PLib3MFBoundaryShape_GetChannelNamePtr m_BoundaryShape_GetChannelName; - PLib3MFBoundaryShape_SetChannelNamePtr m_BoundaryShape_SetChannelName; - PLib3MFBoundaryShape_SetMinFeatureSizePtr m_BoundaryShape_SetMinFeatureSize; - PLib3MFBoundaryShape_GetMinFeatureSizePtr m_BoundaryShape_GetMinFeatureSize; - PLib3MFBoundaryShape_SetFallBackValuePtr m_BoundaryShape_SetFallBackValue; - PLib3MFBoundaryShape_GetFallBackValuePtr m_BoundaryShape_GetFallBackValue; - PLib3MFBoundaryShape_SetMeshBBoxOnlyPtr m_BoundaryShape_SetMeshBBoxOnly; - PLib3MFBoundaryShape_GetMeshBBoxOnlyPtr m_BoundaryShape_GetMeshBBoxOnly; - PLib3MFBoundaryShape_SetMeshPtr m_BoundaryShape_SetMesh; - PLib3MFBoundaryShape_GetMeshPtr m_BoundaryShape_GetMesh; - PLib3MFBoundaryShape_GetVolumeDataPtr m_BoundaryShape_GetVolumeData; - PLib3MFBoundaryShape_SetVolumeDataPtr m_BoundaryShape_SetVolumeData; + PLib3MFLevelSet_GetFunctionPtr m_LevelSet_GetFunction; + PLib3MFLevelSet_SetFunctionPtr m_LevelSet_SetFunction; + PLib3MFLevelSet_GetTransformPtr m_LevelSet_GetTransform; + PLib3MFLevelSet_SetTransformPtr m_LevelSet_SetTransform; + PLib3MFLevelSet_GetChannelNamePtr m_LevelSet_GetChannelName; + PLib3MFLevelSet_SetChannelNamePtr m_LevelSet_SetChannelName; + PLib3MFLevelSet_SetMinFeatureSizePtr m_LevelSet_SetMinFeatureSize; + PLib3MFLevelSet_GetMinFeatureSizePtr m_LevelSet_GetMinFeatureSize; + PLib3MFLevelSet_SetFallBackValuePtr m_LevelSet_SetFallBackValue; + PLib3MFLevelSet_GetFallBackValuePtr m_LevelSet_GetFallBackValue; + PLib3MFLevelSet_SetMeshBBoxOnlyPtr m_LevelSet_SetMeshBBoxOnly; + PLib3MFLevelSet_GetMeshBBoxOnlyPtr m_LevelSet_GetMeshBBoxOnly; + PLib3MFLevelSet_SetMeshPtr m_LevelSet_SetMesh; + PLib3MFLevelSet_GetMeshPtr m_LevelSet_GetMesh; + PLib3MFLevelSet_GetVolumeDataPtr m_LevelSet_GetVolumeData; + PLib3MFLevelSet_SetVolumeDataPtr m_LevelSet_SetVolumeData; PLib3MFBeamLattice_GetMinLengthPtr m_BeamLattice_GetMinLength; PLib3MFBeamLattice_SetMinLengthPtr m_BeamLattice_SetMinLength; PLib3MFBeamLattice_GetClippingPtr m_BeamLattice_GetClipping; @@ -6990,8 +6990,8 @@ typedef struct { PLib3MFModel_AddImplicitFunctionPtr m_Model_AddImplicitFunction; PLib3MFModel_AddFunctionFromImage3DPtr m_Model_AddFunctionFromImage3D; PLib3MFModel_AddVolumeDataPtr m_Model_AddVolumeData; - PLib3MFModel_AddBoundaryShapePtr m_Model_AddBoundaryShape; - PLib3MFModel_GetBoundaryShapesPtr m_Model_GetBoundaryShapes; + PLib3MFModel_AddLevelSetPtr m_Model_AddLevelSet; + PLib3MFModel_GetLevelSetsPtr m_Model_GetLevelSets; PLib3MFGetLibraryVersionPtr m_GetLibraryVersion; PLib3MFGetPrereleaseInformationPtr m_GetPrereleaseInformation; PLib3MFGetBuildInformationPtr m_GetBuildInformation; diff --git a/Autogenerated/Bindings/CppDynamic/lib3mf_dynamic.hpp b/Autogenerated/Bindings/CppDynamic/lib3mf_dynamic.hpp index f99388d32..e7a00f8f2 100644 --- a/Autogenerated/Bindings/CppDynamic/lib3mf_dynamic.hpp +++ b/Autogenerated/Bindings/CppDynamic/lib3mf_dynamic.hpp @@ -75,12 +75,12 @@ class CCompositeMaterialsIterator; class CMultiPropertyGroupIterator; class CImage3DIterator; class CFunctionIterator; -class CBoundaryShapeIterator; +class CLevelSetIterator; class CMetaData; class CMetaDataGroup; class CObject; class CMeshObject; -class CBoundaryShape; +class CLevelSet; class CBeamLattice; class CFunctionReference; class CVolumeDataColor; @@ -194,12 +194,12 @@ typedef CCompositeMaterialsIterator CLib3MFCompositeMaterialsIterator; typedef CMultiPropertyGroupIterator CLib3MFMultiPropertyGroupIterator; typedef CImage3DIterator CLib3MFImage3DIterator; typedef CFunctionIterator CLib3MFFunctionIterator; -typedef CBoundaryShapeIterator CLib3MFBoundaryShapeIterator; +typedef CLevelSetIterator CLib3MFLevelSetIterator; typedef CMetaData CLib3MFMetaData; typedef CMetaDataGroup CLib3MFMetaDataGroup; typedef CObject CLib3MFObject; typedef CMeshObject CLib3MFMeshObject; -typedef CBoundaryShape CLib3MFBoundaryShape; +typedef CLevelSet CLib3MFLevelSet; typedef CBeamLattice CLib3MFBeamLattice; typedef CFunctionReference CLib3MFFunctionReference; typedef CVolumeDataColor CLib3MFVolumeDataColor; @@ -313,12 +313,12 @@ typedef std::shared_ptr PCompositeMaterialsIterator typedef std::shared_ptr PMultiPropertyGroupIterator; typedef std::shared_ptr PImage3DIterator; typedef std::shared_ptr PFunctionIterator; -typedef std::shared_ptr PBoundaryShapeIterator; +typedef std::shared_ptr PLevelSetIterator; typedef std::shared_ptr PMetaData; typedef std::shared_ptr PMetaDataGroup; typedef std::shared_ptr PObject; typedef std::shared_ptr PMeshObject; -typedef std::shared_ptr PBoundaryShape; +typedef std::shared_ptr PLevelSet; typedef std::shared_ptr PBeamLattice; typedef std::shared_ptr PFunctionReference; typedef std::shared_ptr PVolumeDataColor; @@ -432,12 +432,12 @@ typedef PCompositeMaterialsIterator PLib3MFCompositeMaterialsIterator; typedef PMultiPropertyGroupIterator PLib3MFMultiPropertyGroupIterator; typedef PImage3DIterator PLib3MFImage3DIterator; typedef PFunctionIterator PLib3MFFunctionIterator; -typedef PBoundaryShapeIterator PLib3MFBoundaryShapeIterator; +typedef PLevelSetIterator PLib3MFLevelSetIterator; typedef PMetaData PLib3MFMetaData; typedef PMetaDataGroup PLib3MFMetaDataGroup; typedef PObject PLib3MFObject; typedef PMeshObject PLib3MFMeshObject; -typedef PBoundaryShape PLib3MFBoundaryShape; +typedef PLevelSet PLib3MFLevelSet; typedef PBeamLattice PLib3MFBeamLattice; typedef PFunctionReference PLib3MFFunctionReference; typedef PVolumeDataColor PLib3MFVolumeDataColor; @@ -859,12 +859,12 @@ class CWrapper { friend class CMultiPropertyGroupIterator; friend class CImage3DIterator; friend class CFunctionIterator; - friend class CBoundaryShapeIterator; + friend class CLevelSetIterator; friend class CMetaData; friend class CMetaDataGroup; friend class CObject; friend class CMeshObject; - friend class CBoundaryShape; + friend class CLevelSet; friend class CBeamLattice; friend class CFunctionReference; friend class CVolumeDataColor; @@ -1338,20 +1338,20 @@ class CFunctionIterator : public CResourceIterator { }; /************************************************************************************************************************* - Class CBoundaryShapeIterator + Class CLevelSetIterator **************************************************************************************************************************/ -class CBoundaryShapeIterator : public CResourceIterator { +class CLevelSetIterator : public CResourceIterator { public: /** - * CBoundaryShapeIterator::CBoundaryShapeIterator - Constructor for BoundaryShapeIterator class. + * CLevelSetIterator::CLevelSetIterator - Constructor for LevelSetIterator class. */ - CBoundaryShapeIterator(CWrapper* pWrapper, Lib3MFHandle pHandle) + CLevelSetIterator(CWrapper* pWrapper, Lib3MFHandle pHandle) : CResourceIterator(pWrapper, pHandle) { } - inline PBoundaryShape GetCurrentBoundaryShape(); + inline PLevelSet GetCurrentLevelSet(); }; /************************************************************************************************************************* @@ -1480,15 +1480,15 @@ class CMeshObject : public CObject { }; /************************************************************************************************************************* - Class CBoundaryShape + Class CLevelSet **************************************************************************************************************************/ -class CBoundaryShape : public CObject { +class CLevelSet : public CObject { public: /** - * CBoundaryShape::CBoundaryShape - Constructor for BoundaryShape class. + * CLevelSet::CLevelSet - Constructor for LevelSet class. */ - CBoundaryShape(CWrapper* pWrapper, Lib3MFHandle pHandle) + CLevelSet(CWrapper* pWrapper, Lib3MFHandle pHandle) : CObject(pWrapper, pHandle) { } @@ -3399,8 +3399,8 @@ class CModel : public CBase { inline PImplicitFunction AddImplicitFunction(); inline PFunctionFromImage3D AddFunctionFromImage3D(classParam pImage3DInstance); inline PVolumeData AddVolumeData(); - inline PBoundaryShape AddBoundaryShape(); - inline PBoundaryShapeIterator GetBoundaryShapes(); + inline PLevelSet AddLevelSet(); + inline PLevelSetIterator GetLevelSets(); }; /************************************************************************************************************************* @@ -3437,12 +3437,12 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) case 0xC2BDF5D8CBBDB1F0UL: return new CMultiPropertyGroupIterator(this, pHandle); break; // First 64 bits of SHA1 of a string: "Lib3MF::MultiPropertyGroupIterator" case 0xC4B8EC00A82BF336UL: return new CImage3DIterator(this, pHandle); break; // First 64 bits of SHA1 of a string: "Lib3MF::Image3DIterator" case 0x40E9035363ACE65EUL: return new CFunctionIterator(this, pHandle); break; // First 64 bits of SHA1 of a string: "Lib3MF::FunctionIterator" - case 0x9FBC898CF30CDEF3UL: return new CBoundaryShapeIterator(this, pHandle); break; // First 64 bits of SHA1 of a string: "Lib3MF::BoundaryShapeIterator" + case 0x9FBC898CF30CDEF3UL: return new CLevelSetIterator(this, pHandle); break; // First 64 bits of SHA1 of a string: "Lib3MF::LevelSetIterator" case 0xD17716D063DE2C22UL: return new CMetaData(this, pHandle); break; // First 64 bits of SHA1 of a string: "Lib3MF::MetaData" case 0x0C3B85369E9B25D3UL: return new CMetaDataGroup(this, pHandle); break; // First 64 bits of SHA1 of a string: "Lib3MF::MetaDataGroup" case 0x2DA2136F577A779CUL: return new CObject(this, pHandle); break; // First 64 bits of SHA1 of a string: "Lib3MF::Object" case 0x3B3A6DC6EC610497UL: return new CMeshObject(this, pHandle); break; // First 64 bits of SHA1 of a string: "Lib3MF::MeshObject" - case 0x2BE0E57BA81B2ECBUL: return new CBoundaryShape(this, pHandle); break; // First 64 bits of SHA1 of a string: "Lib3MF::BoundaryShape" + case 0x2BE0E57BA81B2ECBUL: return new CLevelSet(this, pHandle); break; // First 64 bits of SHA1 of a string: "Lib3MF::LevelSet" case 0x63B3B461B30B4BA5UL: return new CBeamLattice(this, pHandle); break; // First 64 bits of SHA1 of a string: "Lib3MF::BeamLattice" case 0x4DF17E76926221C2UL: return new CFunctionReference(this, pHandle); break; // First 64 bits of SHA1 of a string: "Lib3MF::FunctionReference" case 0xD85B5B6143E787E3UL: return new CVolumeDataColor(this, pHandle); break; // First 64 bits of SHA1 of a string: "Lib3MF::VolumeDataColor" @@ -3869,7 +3869,7 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) pWrapperTable->m_MultiPropertyGroupIterator_GetCurrentMultiPropertyGroup = nullptr; pWrapperTable->m_Image3DIterator_GetCurrentImage3D = nullptr; pWrapperTable->m_FunctionIterator_GetCurrentFunction = nullptr; - pWrapperTable->m_BoundaryShapeIterator_GetCurrentBoundaryShape = nullptr; + pWrapperTable->m_LevelSetIterator_GetCurrentLevelSet = nullptr; pWrapperTable->m_MetaData_GetNameSpace = nullptr; pWrapperTable->m_MetaData_SetNameSpace = nullptr; pWrapperTable->m_MetaData_GetName = nullptr; @@ -3931,22 +3931,22 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) pWrapperTable->m_MeshObject_BeamLattice = nullptr; pWrapperTable->m_MeshObject_GetVolumeData = nullptr; pWrapperTable->m_MeshObject_SetVolumeData = nullptr; - pWrapperTable->m_BoundaryShape_GetFunction = nullptr; - pWrapperTable->m_BoundaryShape_SetFunction = nullptr; - pWrapperTable->m_BoundaryShape_GetTransform = nullptr; - pWrapperTable->m_BoundaryShape_SetTransform = nullptr; - pWrapperTable->m_BoundaryShape_GetChannelName = nullptr; - pWrapperTable->m_BoundaryShape_SetChannelName = nullptr; - pWrapperTable->m_BoundaryShape_SetMinFeatureSize = nullptr; - pWrapperTable->m_BoundaryShape_GetMinFeatureSize = nullptr; - pWrapperTable->m_BoundaryShape_SetFallBackValue = nullptr; - pWrapperTable->m_BoundaryShape_GetFallBackValue = nullptr; - pWrapperTable->m_BoundaryShape_SetMeshBBoxOnly = nullptr; - pWrapperTable->m_BoundaryShape_GetMeshBBoxOnly = nullptr; - pWrapperTable->m_BoundaryShape_SetMesh = nullptr; - pWrapperTable->m_BoundaryShape_GetMesh = nullptr; - pWrapperTable->m_BoundaryShape_GetVolumeData = nullptr; - pWrapperTable->m_BoundaryShape_SetVolumeData = nullptr; + pWrapperTable->m_LevelSet_GetFunction = nullptr; + pWrapperTable->m_LevelSet_SetFunction = nullptr; + pWrapperTable->m_LevelSet_GetTransform = nullptr; + pWrapperTable->m_LevelSet_SetTransform = nullptr; + pWrapperTable->m_LevelSet_GetChannelName = nullptr; + pWrapperTable->m_LevelSet_SetChannelName = nullptr; + pWrapperTable->m_LevelSet_SetMinFeatureSize = nullptr; + pWrapperTable->m_LevelSet_GetMinFeatureSize = nullptr; + pWrapperTable->m_LevelSet_SetFallBackValue = nullptr; + pWrapperTable->m_LevelSet_GetFallBackValue = nullptr; + pWrapperTable->m_LevelSet_SetMeshBBoxOnly = nullptr; + pWrapperTable->m_LevelSet_GetMeshBBoxOnly = nullptr; + pWrapperTable->m_LevelSet_SetMesh = nullptr; + pWrapperTable->m_LevelSet_GetMesh = nullptr; + pWrapperTable->m_LevelSet_GetVolumeData = nullptr; + pWrapperTable->m_LevelSet_SetVolumeData = nullptr; pWrapperTable->m_BeamLattice_GetMinLength = nullptr; pWrapperTable->m_BeamLattice_SetMinLength = nullptr; pWrapperTable->m_BeamLattice_GetClipping = nullptr; @@ -4397,8 +4397,8 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) pWrapperTable->m_Model_AddImplicitFunction = nullptr; pWrapperTable->m_Model_AddFunctionFromImage3D = nullptr; pWrapperTable->m_Model_AddVolumeData = nullptr; - pWrapperTable->m_Model_AddBoundaryShape = nullptr; - pWrapperTable->m_Model_GetBoundaryShapes = nullptr; + pWrapperTable->m_Model_AddLevelSet = nullptr; + pWrapperTable->m_Model_GetLevelSets = nullptr; pWrapperTable->m_GetLibraryVersion = nullptr; pWrapperTable->m_GetPrereleaseInformation = nullptr; pWrapperTable->m_GetBuildInformation = nullptr; @@ -4919,12 +4919,12 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShapeIterator_GetCurrentBoundaryShape = (PLib3MFBoundaryShapeIterator_GetCurrentBoundaryShapePtr) GetProcAddress(hLibrary, "lib3mf_boundaryshapeiterator_getcurrentboundaryshape"); + pWrapperTable->m_LevelSetIterator_GetCurrentLevelSet = (PLib3MFLevelSetIterator_GetCurrentLevelSetPtr) GetProcAddress(hLibrary, "lib3mf_levelsetiterator_getcurrentlevelset"); #else // _WIN32 - pWrapperTable->m_BoundaryShapeIterator_GetCurrentBoundaryShape = (PLib3MFBoundaryShapeIterator_GetCurrentBoundaryShapePtr) dlsym(hLibrary, "lib3mf_boundaryshapeiterator_getcurrentboundaryshape"); + pWrapperTable->m_LevelSetIterator_GetCurrentLevelSet = (PLib3MFLevelSetIterator_GetCurrentLevelSetPtr) dlsym(hLibrary, "lib3mf_levelsetiterator_getcurrentlevelset"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShapeIterator_GetCurrentBoundaryShape == nullptr) + if (pWrapperTable->m_LevelSetIterator_GetCurrentLevelSet == nullptr) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 @@ -5477,147 +5477,147 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_GetFunction = (PLib3MFBoundaryShape_GetFunctionPtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_getfunction"); + pWrapperTable->m_LevelSet_GetFunction = (PLib3MFLevelSet_GetFunctionPtr) GetProcAddress(hLibrary, "lib3mf_levelset_getfunction"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_GetFunction = (PLib3MFBoundaryShape_GetFunctionPtr) dlsym(hLibrary, "lib3mf_boundaryshape_getfunction"); + pWrapperTable->m_LevelSet_GetFunction = (PLib3MFLevelSet_GetFunctionPtr) dlsym(hLibrary, "lib3mf_levelset_getfunction"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_GetFunction == nullptr) + if (pWrapperTable->m_LevelSet_GetFunction == nullptr) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_SetFunction = (PLib3MFBoundaryShape_SetFunctionPtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_setfunction"); + pWrapperTable->m_LevelSet_SetFunction = (PLib3MFLevelSet_SetFunctionPtr) GetProcAddress(hLibrary, "lib3mf_levelset_setfunction"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_SetFunction = (PLib3MFBoundaryShape_SetFunctionPtr) dlsym(hLibrary, "lib3mf_boundaryshape_setfunction"); + pWrapperTable->m_LevelSet_SetFunction = (PLib3MFLevelSet_SetFunctionPtr) dlsym(hLibrary, "lib3mf_levelset_setfunction"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_SetFunction == nullptr) + if (pWrapperTable->m_LevelSet_SetFunction == nullptr) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_GetTransform = (PLib3MFBoundaryShape_GetTransformPtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_gettransform"); + pWrapperTable->m_LevelSet_GetTransform = (PLib3MFLevelSet_GetTransformPtr) GetProcAddress(hLibrary, "lib3mf_levelset_gettransform"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_GetTransform = (PLib3MFBoundaryShape_GetTransformPtr) dlsym(hLibrary, "lib3mf_boundaryshape_gettransform"); + pWrapperTable->m_LevelSet_GetTransform = (PLib3MFLevelSet_GetTransformPtr) dlsym(hLibrary, "lib3mf_levelset_gettransform"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_GetTransform == nullptr) + if (pWrapperTable->m_LevelSet_GetTransform == nullptr) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_SetTransform = (PLib3MFBoundaryShape_SetTransformPtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_settransform"); + pWrapperTable->m_LevelSet_SetTransform = (PLib3MFLevelSet_SetTransformPtr) GetProcAddress(hLibrary, "lib3mf_levelset_settransform"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_SetTransform = (PLib3MFBoundaryShape_SetTransformPtr) dlsym(hLibrary, "lib3mf_boundaryshape_settransform"); + pWrapperTable->m_LevelSet_SetTransform = (PLib3MFLevelSet_SetTransformPtr) dlsym(hLibrary, "lib3mf_levelset_settransform"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_SetTransform == nullptr) + if (pWrapperTable->m_LevelSet_SetTransform == nullptr) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_GetChannelName = (PLib3MFBoundaryShape_GetChannelNamePtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_getchannelname"); + pWrapperTable->m_LevelSet_GetChannelName = (PLib3MFLevelSet_GetChannelNamePtr) GetProcAddress(hLibrary, "lib3mf_levelset_getchannelname"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_GetChannelName = (PLib3MFBoundaryShape_GetChannelNamePtr) dlsym(hLibrary, "lib3mf_boundaryshape_getchannelname"); + pWrapperTable->m_LevelSet_GetChannelName = (PLib3MFLevelSet_GetChannelNamePtr) dlsym(hLibrary, "lib3mf_levelset_getchannelname"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_GetChannelName == nullptr) + if (pWrapperTable->m_LevelSet_GetChannelName == nullptr) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_SetChannelName = (PLib3MFBoundaryShape_SetChannelNamePtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_setchannelname"); + pWrapperTable->m_LevelSet_SetChannelName = (PLib3MFLevelSet_SetChannelNamePtr) GetProcAddress(hLibrary, "lib3mf_levelset_setchannelname"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_SetChannelName = (PLib3MFBoundaryShape_SetChannelNamePtr) dlsym(hLibrary, "lib3mf_boundaryshape_setchannelname"); + pWrapperTable->m_LevelSet_SetChannelName = (PLib3MFLevelSet_SetChannelNamePtr) dlsym(hLibrary, "lib3mf_levelset_setchannelname"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_SetChannelName == nullptr) + if (pWrapperTable->m_LevelSet_SetChannelName == nullptr) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_SetMinFeatureSize = (PLib3MFBoundaryShape_SetMinFeatureSizePtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_setminfeaturesize"); + pWrapperTable->m_LevelSet_SetMinFeatureSize = (PLib3MFLevelSet_SetMinFeatureSizePtr) GetProcAddress(hLibrary, "lib3mf_levelset_setminfeaturesize"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_SetMinFeatureSize = (PLib3MFBoundaryShape_SetMinFeatureSizePtr) dlsym(hLibrary, "lib3mf_boundaryshape_setminfeaturesize"); + pWrapperTable->m_LevelSet_SetMinFeatureSize = (PLib3MFLevelSet_SetMinFeatureSizePtr) dlsym(hLibrary, "lib3mf_levelset_setminfeaturesize"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_SetMinFeatureSize == nullptr) + if (pWrapperTable->m_LevelSet_SetMinFeatureSize == nullptr) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_GetMinFeatureSize = (PLib3MFBoundaryShape_GetMinFeatureSizePtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_getminfeaturesize"); + pWrapperTable->m_LevelSet_GetMinFeatureSize = (PLib3MFLevelSet_GetMinFeatureSizePtr) GetProcAddress(hLibrary, "lib3mf_levelset_getminfeaturesize"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_GetMinFeatureSize = (PLib3MFBoundaryShape_GetMinFeatureSizePtr) dlsym(hLibrary, "lib3mf_boundaryshape_getminfeaturesize"); + pWrapperTable->m_LevelSet_GetMinFeatureSize = (PLib3MFLevelSet_GetMinFeatureSizePtr) dlsym(hLibrary, "lib3mf_levelset_getminfeaturesize"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_GetMinFeatureSize == nullptr) + if (pWrapperTable->m_LevelSet_GetMinFeatureSize == nullptr) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_SetFallBackValue = (PLib3MFBoundaryShape_SetFallBackValuePtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_setfallbackvalue"); + pWrapperTable->m_LevelSet_SetFallBackValue = (PLib3MFLevelSet_SetFallBackValuePtr) GetProcAddress(hLibrary, "lib3mf_levelset_setfallbackvalue"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_SetFallBackValue = (PLib3MFBoundaryShape_SetFallBackValuePtr) dlsym(hLibrary, "lib3mf_boundaryshape_setfallbackvalue"); + pWrapperTable->m_LevelSet_SetFallBackValue = (PLib3MFLevelSet_SetFallBackValuePtr) dlsym(hLibrary, "lib3mf_levelset_setfallbackvalue"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_SetFallBackValue == nullptr) + if (pWrapperTable->m_LevelSet_SetFallBackValue == nullptr) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_GetFallBackValue = (PLib3MFBoundaryShape_GetFallBackValuePtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_getfallbackvalue"); + pWrapperTable->m_LevelSet_GetFallBackValue = (PLib3MFLevelSet_GetFallBackValuePtr) GetProcAddress(hLibrary, "lib3mf_levelset_getfallbackvalue"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_GetFallBackValue = (PLib3MFBoundaryShape_GetFallBackValuePtr) dlsym(hLibrary, "lib3mf_boundaryshape_getfallbackvalue"); + pWrapperTable->m_LevelSet_GetFallBackValue = (PLib3MFLevelSet_GetFallBackValuePtr) dlsym(hLibrary, "lib3mf_levelset_getfallbackvalue"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_GetFallBackValue == nullptr) + if (pWrapperTable->m_LevelSet_GetFallBackValue == nullptr) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_SetMeshBBoxOnly = (PLib3MFBoundaryShape_SetMeshBBoxOnlyPtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_setmeshbboxonly"); + pWrapperTable->m_LevelSet_SetMeshBBoxOnly = (PLib3MFLevelSet_SetMeshBBoxOnlyPtr) GetProcAddress(hLibrary, "lib3mf_levelset_setmeshbboxonly"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_SetMeshBBoxOnly = (PLib3MFBoundaryShape_SetMeshBBoxOnlyPtr) dlsym(hLibrary, "lib3mf_boundaryshape_setmeshbboxonly"); + pWrapperTable->m_LevelSet_SetMeshBBoxOnly = (PLib3MFLevelSet_SetMeshBBoxOnlyPtr) dlsym(hLibrary, "lib3mf_levelset_setmeshbboxonly"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_SetMeshBBoxOnly == nullptr) + if (pWrapperTable->m_LevelSet_SetMeshBBoxOnly == nullptr) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_GetMeshBBoxOnly = (PLib3MFBoundaryShape_GetMeshBBoxOnlyPtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_getmeshbboxonly"); + pWrapperTable->m_LevelSet_GetMeshBBoxOnly = (PLib3MFLevelSet_GetMeshBBoxOnlyPtr) GetProcAddress(hLibrary, "lib3mf_levelset_getmeshbboxonly"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_GetMeshBBoxOnly = (PLib3MFBoundaryShape_GetMeshBBoxOnlyPtr) dlsym(hLibrary, "lib3mf_boundaryshape_getmeshbboxonly"); + pWrapperTable->m_LevelSet_GetMeshBBoxOnly = (PLib3MFLevelSet_GetMeshBBoxOnlyPtr) dlsym(hLibrary, "lib3mf_levelset_getmeshbboxonly"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_GetMeshBBoxOnly == nullptr) + if (pWrapperTable->m_LevelSet_GetMeshBBoxOnly == nullptr) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_SetMesh = (PLib3MFBoundaryShape_SetMeshPtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_setmesh"); + pWrapperTable->m_LevelSet_SetMesh = (PLib3MFLevelSet_SetMeshPtr) GetProcAddress(hLibrary, "lib3mf_levelset_setmesh"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_SetMesh = (PLib3MFBoundaryShape_SetMeshPtr) dlsym(hLibrary, "lib3mf_boundaryshape_setmesh"); + pWrapperTable->m_LevelSet_SetMesh = (PLib3MFLevelSet_SetMeshPtr) dlsym(hLibrary, "lib3mf_levelset_setmesh"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_SetMesh == nullptr) + if (pWrapperTable->m_LevelSet_SetMesh == nullptr) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_GetMesh = (PLib3MFBoundaryShape_GetMeshPtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_getmesh"); + pWrapperTable->m_LevelSet_GetMesh = (PLib3MFLevelSet_GetMeshPtr) GetProcAddress(hLibrary, "lib3mf_levelset_getmesh"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_GetMesh = (PLib3MFBoundaryShape_GetMeshPtr) dlsym(hLibrary, "lib3mf_boundaryshape_getmesh"); + pWrapperTable->m_LevelSet_GetMesh = (PLib3MFLevelSet_GetMeshPtr) dlsym(hLibrary, "lib3mf_levelset_getmesh"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_GetMesh == nullptr) + if (pWrapperTable->m_LevelSet_GetMesh == nullptr) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_GetVolumeData = (PLib3MFBoundaryShape_GetVolumeDataPtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_getvolumedata"); + pWrapperTable->m_LevelSet_GetVolumeData = (PLib3MFLevelSet_GetVolumeDataPtr) GetProcAddress(hLibrary, "lib3mf_levelset_getvolumedata"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_GetVolumeData = (PLib3MFBoundaryShape_GetVolumeDataPtr) dlsym(hLibrary, "lib3mf_boundaryshape_getvolumedata"); + pWrapperTable->m_LevelSet_GetVolumeData = (PLib3MFLevelSet_GetVolumeDataPtr) dlsym(hLibrary, "lib3mf_levelset_getvolumedata"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_GetVolumeData == nullptr) + if (pWrapperTable->m_LevelSet_GetVolumeData == nullptr) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_SetVolumeData = (PLib3MFBoundaryShape_SetVolumeDataPtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_setvolumedata"); + pWrapperTable->m_LevelSet_SetVolumeData = (PLib3MFLevelSet_SetVolumeDataPtr) GetProcAddress(hLibrary, "lib3mf_levelset_setvolumedata"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_SetVolumeData = (PLib3MFBoundaryShape_SetVolumeDataPtr) dlsym(hLibrary, "lib3mf_boundaryshape_setvolumedata"); + pWrapperTable->m_LevelSet_SetVolumeData = (PLib3MFLevelSet_SetVolumeDataPtr) dlsym(hLibrary, "lib3mf_levelset_setvolumedata"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_SetVolumeData == nullptr) + if (pWrapperTable->m_LevelSet_SetVolumeData == nullptr) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 @@ -9671,21 +9671,21 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_Model_AddBoundaryShape = (PLib3MFModel_AddBoundaryShapePtr) GetProcAddress(hLibrary, "lib3mf_model_addboundaryshape"); + pWrapperTable->m_Model_AddLevelSet = (PLib3MFModel_AddLevelSetPtr) GetProcAddress(hLibrary, "lib3mf_model_addlevelset"); #else // _WIN32 - pWrapperTable->m_Model_AddBoundaryShape = (PLib3MFModel_AddBoundaryShapePtr) dlsym(hLibrary, "lib3mf_model_addboundaryshape"); + pWrapperTable->m_Model_AddLevelSet = (PLib3MFModel_AddLevelSetPtr) dlsym(hLibrary, "lib3mf_model_addlevelset"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_Model_AddBoundaryShape == nullptr) + if (pWrapperTable->m_Model_AddLevelSet == nullptr) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_Model_GetBoundaryShapes = (PLib3MFModel_GetBoundaryShapesPtr) GetProcAddress(hLibrary, "lib3mf_model_getboundaryshapes"); + pWrapperTable->m_Model_GetLevelSets = (PLib3MFModel_GetLevelSetsPtr) GetProcAddress(hLibrary, "lib3mf_model_getlevelsets"); #else // _WIN32 - pWrapperTable->m_Model_GetBoundaryShapes = (PLib3MFModel_GetBoundaryShapesPtr) dlsym(hLibrary, "lib3mf_model_getboundaryshapes"); + pWrapperTable->m_Model_GetLevelSets = (PLib3MFModel_GetLevelSetsPtr) dlsym(hLibrary, "lib3mf_model_getlevelsets"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_Model_GetBoundaryShapes == nullptr) + if (pWrapperTable->m_Model_GetLevelSets == nullptr) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 @@ -10075,8 +10075,8 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) if ( (eLookupError != 0) || (pWrapperTable->m_FunctionIterator_GetCurrentFunction == nullptr) ) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; - eLookupError = (*pLookup)("lib3mf_boundaryshapeiterator_getcurrentboundaryshape", (void**)&(pWrapperTable->m_BoundaryShapeIterator_GetCurrentBoundaryShape)); - if ( (eLookupError != 0) || (pWrapperTable->m_BoundaryShapeIterator_GetCurrentBoundaryShape == nullptr) ) + eLookupError = (*pLookup)("lib3mf_levelsetiterator_getcurrentlevelset", (void**)&(pWrapperTable->m_LevelSetIterator_GetCurrentLevelSet)); + if ( (eLookupError != 0) || (pWrapperTable->m_LevelSetIterator_GetCurrentLevelSet == nullptr) ) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; eLookupError = (*pLookup)("lib3mf_metadata_getnamespace", (void**)&(pWrapperTable->m_MetaData_GetNameSpace)); @@ -10323,68 +10323,68 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) if ( (eLookupError != 0) || (pWrapperTable->m_MeshObject_SetVolumeData == nullptr) ) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; - eLookupError = (*pLookup)("lib3mf_boundaryshape_getfunction", (void**)&(pWrapperTable->m_BoundaryShape_GetFunction)); - if ( (eLookupError != 0) || (pWrapperTable->m_BoundaryShape_GetFunction == nullptr) ) + eLookupError = (*pLookup)("lib3mf_levelset_getfunction", (void**)&(pWrapperTable->m_LevelSet_GetFunction)); + if ( (eLookupError != 0) || (pWrapperTable->m_LevelSet_GetFunction == nullptr) ) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; - eLookupError = (*pLookup)("lib3mf_boundaryshape_setfunction", (void**)&(pWrapperTable->m_BoundaryShape_SetFunction)); - if ( (eLookupError != 0) || (pWrapperTable->m_BoundaryShape_SetFunction == nullptr) ) + eLookupError = (*pLookup)("lib3mf_levelset_setfunction", (void**)&(pWrapperTable->m_LevelSet_SetFunction)); + if ( (eLookupError != 0) || (pWrapperTable->m_LevelSet_SetFunction == nullptr) ) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; - eLookupError = (*pLookup)("lib3mf_boundaryshape_gettransform", (void**)&(pWrapperTable->m_BoundaryShape_GetTransform)); - if ( (eLookupError != 0) || (pWrapperTable->m_BoundaryShape_GetTransform == nullptr) ) + eLookupError = (*pLookup)("lib3mf_levelset_gettransform", (void**)&(pWrapperTable->m_LevelSet_GetTransform)); + if ( (eLookupError != 0) || (pWrapperTable->m_LevelSet_GetTransform == nullptr) ) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; - eLookupError = (*pLookup)("lib3mf_boundaryshape_settransform", (void**)&(pWrapperTable->m_BoundaryShape_SetTransform)); - if ( (eLookupError != 0) || (pWrapperTable->m_BoundaryShape_SetTransform == nullptr) ) + eLookupError = (*pLookup)("lib3mf_levelset_settransform", (void**)&(pWrapperTable->m_LevelSet_SetTransform)); + if ( (eLookupError != 0) || (pWrapperTable->m_LevelSet_SetTransform == nullptr) ) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; - eLookupError = (*pLookup)("lib3mf_boundaryshape_getchannelname", (void**)&(pWrapperTable->m_BoundaryShape_GetChannelName)); - if ( (eLookupError != 0) || (pWrapperTable->m_BoundaryShape_GetChannelName == nullptr) ) + eLookupError = (*pLookup)("lib3mf_levelset_getchannelname", (void**)&(pWrapperTable->m_LevelSet_GetChannelName)); + if ( (eLookupError != 0) || (pWrapperTable->m_LevelSet_GetChannelName == nullptr) ) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; - eLookupError = (*pLookup)("lib3mf_boundaryshape_setchannelname", (void**)&(pWrapperTable->m_BoundaryShape_SetChannelName)); - if ( (eLookupError != 0) || (pWrapperTable->m_BoundaryShape_SetChannelName == nullptr) ) + eLookupError = (*pLookup)("lib3mf_levelset_setchannelname", (void**)&(pWrapperTable->m_LevelSet_SetChannelName)); + if ( (eLookupError != 0) || (pWrapperTable->m_LevelSet_SetChannelName == nullptr) ) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; - eLookupError = (*pLookup)("lib3mf_boundaryshape_setminfeaturesize", (void**)&(pWrapperTable->m_BoundaryShape_SetMinFeatureSize)); - if ( (eLookupError != 0) || (pWrapperTable->m_BoundaryShape_SetMinFeatureSize == nullptr) ) + eLookupError = (*pLookup)("lib3mf_levelset_setminfeaturesize", (void**)&(pWrapperTable->m_LevelSet_SetMinFeatureSize)); + if ( (eLookupError != 0) || (pWrapperTable->m_LevelSet_SetMinFeatureSize == nullptr) ) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; - eLookupError = (*pLookup)("lib3mf_boundaryshape_getminfeaturesize", (void**)&(pWrapperTable->m_BoundaryShape_GetMinFeatureSize)); - if ( (eLookupError != 0) || (pWrapperTable->m_BoundaryShape_GetMinFeatureSize == nullptr) ) + eLookupError = (*pLookup)("lib3mf_levelset_getminfeaturesize", (void**)&(pWrapperTable->m_LevelSet_GetMinFeatureSize)); + if ( (eLookupError != 0) || (pWrapperTable->m_LevelSet_GetMinFeatureSize == nullptr) ) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; - eLookupError = (*pLookup)("lib3mf_boundaryshape_setfallbackvalue", (void**)&(pWrapperTable->m_BoundaryShape_SetFallBackValue)); - if ( (eLookupError != 0) || (pWrapperTable->m_BoundaryShape_SetFallBackValue == nullptr) ) + eLookupError = (*pLookup)("lib3mf_levelset_setfallbackvalue", (void**)&(pWrapperTable->m_LevelSet_SetFallBackValue)); + if ( (eLookupError != 0) || (pWrapperTable->m_LevelSet_SetFallBackValue == nullptr) ) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; - eLookupError = (*pLookup)("lib3mf_boundaryshape_getfallbackvalue", (void**)&(pWrapperTable->m_BoundaryShape_GetFallBackValue)); - if ( (eLookupError != 0) || (pWrapperTable->m_BoundaryShape_GetFallBackValue == nullptr) ) + eLookupError = (*pLookup)("lib3mf_levelset_getfallbackvalue", (void**)&(pWrapperTable->m_LevelSet_GetFallBackValue)); + if ( (eLookupError != 0) || (pWrapperTable->m_LevelSet_GetFallBackValue == nullptr) ) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; - eLookupError = (*pLookup)("lib3mf_boundaryshape_setmeshbboxonly", (void**)&(pWrapperTable->m_BoundaryShape_SetMeshBBoxOnly)); - if ( (eLookupError != 0) || (pWrapperTable->m_BoundaryShape_SetMeshBBoxOnly == nullptr) ) + eLookupError = (*pLookup)("lib3mf_levelset_setmeshbboxonly", (void**)&(pWrapperTable->m_LevelSet_SetMeshBBoxOnly)); + if ( (eLookupError != 0) || (pWrapperTable->m_LevelSet_SetMeshBBoxOnly == nullptr) ) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; - eLookupError = (*pLookup)("lib3mf_boundaryshape_getmeshbboxonly", (void**)&(pWrapperTable->m_BoundaryShape_GetMeshBBoxOnly)); - if ( (eLookupError != 0) || (pWrapperTable->m_BoundaryShape_GetMeshBBoxOnly == nullptr) ) + eLookupError = (*pLookup)("lib3mf_levelset_getmeshbboxonly", (void**)&(pWrapperTable->m_LevelSet_GetMeshBBoxOnly)); + if ( (eLookupError != 0) || (pWrapperTable->m_LevelSet_GetMeshBBoxOnly == nullptr) ) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; - eLookupError = (*pLookup)("lib3mf_boundaryshape_setmesh", (void**)&(pWrapperTable->m_BoundaryShape_SetMesh)); - if ( (eLookupError != 0) || (pWrapperTable->m_BoundaryShape_SetMesh == nullptr) ) + eLookupError = (*pLookup)("lib3mf_levelset_setmesh", (void**)&(pWrapperTable->m_LevelSet_SetMesh)); + if ( (eLookupError != 0) || (pWrapperTable->m_LevelSet_SetMesh == nullptr) ) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; - eLookupError = (*pLookup)("lib3mf_boundaryshape_getmesh", (void**)&(pWrapperTable->m_BoundaryShape_GetMesh)); - if ( (eLookupError != 0) || (pWrapperTable->m_BoundaryShape_GetMesh == nullptr) ) + eLookupError = (*pLookup)("lib3mf_levelset_getmesh", (void**)&(pWrapperTable->m_LevelSet_GetMesh)); + if ( (eLookupError != 0) || (pWrapperTable->m_LevelSet_GetMesh == nullptr) ) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; - eLookupError = (*pLookup)("lib3mf_boundaryshape_getvolumedata", (void**)&(pWrapperTable->m_BoundaryShape_GetVolumeData)); - if ( (eLookupError != 0) || (pWrapperTable->m_BoundaryShape_GetVolumeData == nullptr) ) + eLookupError = (*pLookup)("lib3mf_levelset_getvolumedata", (void**)&(pWrapperTable->m_LevelSet_GetVolumeData)); + if ( (eLookupError != 0) || (pWrapperTable->m_LevelSet_GetVolumeData == nullptr) ) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; - eLookupError = (*pLookup)("lib3mf_boundaryshape_setvolumedata", (void**)&(pWrapperTable->m_BoundaryShape_SetVolumeData)); - if ( (eLookupError != 0) || (pWrapperTable->m_BoundaryShape_SetVolumeData == nullptr) ) + eLookupError = (*pLookup)("lib3mf_levelset_setvolumedata", (void**)&(pWrapperTable->m_LevelSet_SetVolumeData)); + if ( (eLookupError != 0) || (pWrapperTable->m_LevelSet_SetVolumeData == nullptr) ) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; eLookupError = (*pLookup)("lib3mf_beamlattice_getminlength", (void**)&(pWrapperTable->m_BeamLattice_GetMinLength)); @@ -12187,12 +12187,12 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) if ( (eLookupError != 0) || (pWrapperTable->m_Model_AddVolumeData == nullptr) ) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; - eLookupError = (*pLookup)("lib3mf_model_addboundaryshape", (void**)&(pWrapperTable->m_Model_AddBoundaryShape)); - if ( (eLookupError != 0) || (pWrapperTable->m_Model_AddBoundaryShape == nullptr) ) + eLookupError = (*pLookup)("lib3mf_model_addlevelset", (void**)&(pWrapperTable->m_Model_AddLevelSet)); + if ( (eLookupError != 0) || (pWrapperTable->m_Model_AddLevelSet == nullptr) ) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; - eLookupError = (*pLookup)("lib3mf_model_getboundaryshapes", (void**)&(pWrapperTable->m_Model_GetBoundaryShapes)); - if ( (eLookupError != 0) || (pWrapperTable->m_Model_GetBoundaryShapes == nullptr) ) + eLookupError = (*pLookup)("lib3mf_model_getlevelsets", (void**)&(pWrapperTable->m_Model_GetLevelSets)); + if ( (eLookupError != 0) || (pWrapperTable->m_Model_GetLevelSets == nullptr) ) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; eLookupError = (*pLookup)("lib3mf_getlibraryversion", (void**)&(pWrapperTable->m_GetLibraryVersion)); @@ -12968,22 +12968,22 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) } /** - * Method definitions for class CBoundaryShapeIterator + * Method definitions for class CLevelSetIterator */ /** - * CBoundaryShapeIterator::GetCurrentBoundaryShape - Returns the BoundaryShape the iterator points at. + * CLevelSetIterator::GetCurrentLevelSet - Returns the LevelSet the iterator points at. * @return returns the MeshObject instance. */ - PBoundaryShape CBoundaryShapeIterator::GetCurrentBoundaryShape() + PLevelSet CLevelSetIterator::GetCurrentLevelSet() { Lib3MFHandle hResource = nullptr; - CheckError(m_pWrapper->m_WrapperTable.m_BoundaryShapeIterator_GetCurrentBoundaryShape(m_pHandle, &hResource)); + CheckError(m_pWrapper->m_WrapperTable.m_LevelSetIterator_GetCurrentLevelSet(m_pHandle, &hResource)); if (!hResource) { CheckError(LIB3MF_ERROR_INVALIDPARAM); } - return std::shared_ptr(dynamic_cast(m_pWrapper->polymorphicFactory(hResource))); + return std::shared_ptr(dynamic_cast(m_pWrapper->polymorphicFactory(hResource))); } /** @@ -13736,17 +13736,17 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) } /** - * Method definitions for class CBoundaryShape + * Method definitions for class CLevelSet */ /** - * CBoundaryShape::GetFunction - Returns the function that is used as boundary shape. + * CLevelSet::GetFunction - Returns the function that is used as boundary shape. * @return the function to use as boundary shape */ - PFunction CBoundaryShape::GetFunction() + PFunction CLevelSet::GetFunction() { Lib3MFHandle hTheFunction = nullptr; - CheckError(m_pWrapper->m_WrapperTable.m_BoundaryShape_GetFunction(m_pHandle, &hTheFunction)); + CheckError(m_pWrapper->m_WrapperTable.m_LevelSet_GetFunction(m_pHandle, &hTheFunction)); if (hTheFunction) { return std::shared_ptr(dynamic_cast(m_pWrapper->polymorphicFactory(hTheFunction))); @@ -13756,141 +13756,141 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) } /** - * CBoundaryShape::SetFunction - Sets the function to use as boundary shape. + * CLevelSet::SetFunction - Sets the function to use as boundary shape. * @param[in] pTheFunction - the function to use as boundary shape */ - void CBoundaryShape::SetFunction(classParam pTheFunction) + void CLevelSet::SetFunction(classParam pTheFunction) { Lib3MFHandle hTheFunction = pTheFunction.GetHandle(); - CheckError(m_pWrapper->m_WrapperTable.m_BoundaryShape_SetFunction(m_pHandle, hTheFunction)); + CheckError(m_pWrapper->m_WrapperTable.m_LevelSet_SetFunction(m_pHandle, hTheFunction)); } /** - * CBoundaryShape::GetTransform - Returns the transformation matrix into the coordinate system of the referenced Function. + * CLevelSet::GetTransform - Returns the transformation matrix into the coordinate system of the referenced Function. * @return the transformation matrix */ - sTransform CBoundaryShape::GetTransform() + sTransform CLevelSet::GetTransform() { sTransform resultTransform; - CheckError(m_pWrapper->m_WrapperTable.m_BoundaryShape_GetTransform(m_pHandle, &resultTransform)); + CheckError(m_pWrapper->m_WrapperTable.m_LevelSet_GetTransform(m_pHandle, &resultTransform)); return resultTransform; } /** - * CBoundaryShape::SetTransform - Sets the transformation matrix into the coordinate system of the referenced Function. + * CLevelSet::SetTransform - Sets the transformation matrix into the coordinate system of the referenced Function. * @param[in] Transform - new transformation matrix */ - void CBoundaryShape::SetTransform(const sTransform & Transform) + void CLevelSet::SetTransform(const sTransform & Transform) { - CheckError(m_pWrapper->m_WrapperTable.m_BoundaryShape_SetTransform(m_pHandle, &Transform)); + CheckError(m_pWrapper->m_WrapperTable.m_LevelSet_SetTransform(m_pHandle, &Transform)); } /** - * CBoundaryShape::GetChannelName - Returns the name of the function output channel to use. + * CLevelSet::GetChannelName - Returns the name of the function output channel to use. * @return the name of the function output channel */ - std::string CBoundaryShape::GetChannelName() + std::string CLevelSet::GetChannelName() { Lib3MF_uint32 bytesNeededChannelName = 0; Lib3MF_uint32 bytesWrittenChannelName = 0; - CheckError(m_pWrapper->m_WrapperTable.m_BoundaryShape_GetChannelName(m_pHandle, 0, &bytesNeededChannelName, nullptr)); + CheckError(m_pWrapper->m_WrapperTable.m_LevelSet_GetChannelName(m_pHandle, 0, &bytesNeededChannelName, nullptr)); std::vector bufferChannelName(bytesNeededChannelName); - CheckError(m_pWrapper->m_WrapperTable.m_BoundaryShape_GetChannelName(m_pHandle, bytesNeededChannelName, &bytesWrittenChannelName, &bufferChannelName[0])); + CheckError(m_pWrapper->m_WrapperTable.m_LevelSet_GetChannelName(m_pHandle, bytesNeededChannelName, &bytesWrittenChannelName, &bufferChannelName[0])); return std::string(&bufferChannelName[0]); } /** - * CBoundaryShape::SetChannelName - Sets the name of the function output channel to use. + * CLevelSet::SetChannelName - Sets the name of the function output channel to use. * @param[in] sChannelName - new name of the function output channel */ - void CBoundaryShape::SetChannelName(const std::string & sChannelName) + void CLevelSet::SetChannelName(const std::string & sChannelName) { - CheckError(m_pWrapper->m_WrapperTable.m_BoundaryShape_SetChannelName(m_pHandle, sChannelName.c_str())); + CheckError(m_pWrapper->m_WrapperTable.m_LevelSet_SetChannelName(m_pHandle, sChannelName.c_str())); } /** - * CBoundaryShape::SetMinFeatureSize - Sets the minimal feature size as a hint for the function evaluator + * CLevelSet::SetMinFeatureSize - Sets the minimal feature size as a hint for the function evaluator * @param[in] dMinFeatureSize - minimal feature size */ - void CBoundaryShape::SetMinFeatureSize(const Lib3MF_double dMinFeatureSize) + void CLevelSet::SetMinFeatureSize(const Lib3MF_double dMinFeatureSize) { - CheckError(m_pWrapper->m_WrapperTable.m_BoundaryShape_SetMinFeatureSize(m_pHandle, dMinFeatureSize)); + CheckError(m_pWrapper->m_WrapperTable.m_LevelSet_SetMinFeatureSize(m_pHandle, dMinFeatureSize)); } /** - * CBoundaryShape::GetMinFeatureSize - Returns the minimal feature size as a hint for the function evaluator + * CLevelSet::GetMinFeatureSize - Returns the minimal feature size as a hint for the function evaluator * @return minimal feature size */ - Lib3MF_double CBoundaryShape::GetMinFeatureSize() + Lib3MF_double CLevelSet::GetMinFeatureSize() { Lib3MF_double resultMinFeatureSize = 0; - CheckError(m_pWrapper->m_WrapperTable.m_BoundaryShape_GetMinFeatureSize(m_pHandle, &resultMinFeatureSize)); + CheckError(m_pWrapper->m_WrapperTable.m_LevelSet_GetMinFeatureSize(m_pHandle, &resultMinFeatureSize)); return resultMinFeatureSize; } /** - * CBoundaryShape::SetFallBackValue - Sets the fallback value to use if the function evaluation fails (e.g. evaluates to NaN or Inf). + * CLevelSet::SetFallBackValue - Sets the fallback value to use if the function evaluation fails (e.g. evaluates to NaN or Inf). * @param[in] dFallBackValue - fallback value */ - void CBoundaryShape::SetFallBackValue(const Lib3MF_double dFallBackValue) + void CLevelSet::SetFallBackValue(const Lib3MF_double dFallBackValue) { - CheckError(m_pWrapper->m_WrapperTable.m_BoundaryShape_SetFallBackValue(m_pHandle, dFallBackValue)); + CheckError(m_pWrapper->m_WrapperTable.m_LevelSet_SetFallBackValue(m_pHandle, dFallBackValue)); } /** - * CBoundaryShape::GetFallBackValue - Returns the fallback value to use if the function evaluation fails (e.g. evaluates to NaN or Inf). + * CLevelSet::GetFallBackValue - Returns the fallback value to use if the function evaluation fails (e.g. evaluates to NaN or Inf). * @return fallback value */ - Lib3MF_double CBoundaryShape::GetFallBackValue() + Lib3MF_double CLevelSet::GetFallBackValue() { Lib3MF_double resultFallBackValue = 0; - CheckError(m_pWrapper->m_WrapperTable.m_BoundaryShape_GetFallBackValue(m_pHandle, &resultFallBackValue)); + CheckError(m_pWrapper->m_WrapperTable.m_LevelSet_GetFallBackValue(m_pHandle, &resultFallBackValue)); return resultFallBackValue; } /** - * CBoundaryShape::SetMeshBBoxOnly - If set only the bounding box of the mesh is intersected with the boundary + * CLevelSet::SetMeshBBoxOnly - If set only the bounding box of the mesh is intersected with the boundary * @param[in] bMeshBBoxOnly - If set only the bounding box of the mesh is intersected with the boundary */ - void CBoundaryShape::SetMeshBBoxOnly(const bool bMeshBBoxOnly) + void CLevelSet::SetMeshBBoxOnly(const bool bMeshBBoxOnly) { - CheckError(m_pWrapper->m_WrapperTable.m_BoundaryShape_SetMeshBBoxOnly(m_pHandle, bMeshBBoxOnly)); + CheckError(m_pWrapper->m_WrapperTable.m_LevelSet_SetMeshBBoxOnly(m_pHandle, bMeshBBoxOnly)); } /** - * CBoundaryShape::GetMeshBBoxOnly - If set only the bounding box of the mesh is intersected with the boundary + * CLevelSet::GetMeshBBoxOnly - If set only the bounding box of the mesh is intersected with the boundary * @return If set only the bounding box of the mesh is intersected with the boundary */ - bool CBoundaryShape::GetMeshBBoxOnly() + bool CLevelSet::GetMeshBBoxOnly() { bool resultMeshBBoxOnly = 0; - CheckError(m_pWrapper->m_WrapperTable.m_BoundaryShape_GetMeshBBoxOnly(m_pHandle, &resultMeshBBoxOnly)); + CheckError(m_pWrapper->m_WrapperTable.m_LevelSet_GetMeshBBoxOnly(m_pHandle, &resultMeshBBoxOnly)); return resultMeshBBoxOnly; } /** - * CBoundaryShape::SetMesh - Sets the mesh to use as evaluation domain + * CLevelSet::SetMesh - Sets the mesh to use as evaluation domain * @param[in] pTheMesh - The mesh */ - void CBoundaryShape::SetMesh(classParam pTheMesh) + void CLevelSet::SetMesh(classParam pTheMesh) { Lib3MFHandle hTheMesh = pTheMesh.GetHandle(); - CheckError(m_pWrapper->m_WrapperTable.m_BoundaryShape_SetMesh(m_pHandle, hTheMesh)); + CheckError(m_pWrapper->m_WrapperTable.m_LevelSet_SetMesh(m_pHandle, hTheMesh)); } /** - * CBoundaryShape::GetMesh - Returns the mesh that is used as evaluation domain + * CLevelSet::GetMesh - Returns the mesh that is used as evaluation domain * @return The mesh */ - PMeshObject CBoundaryShape::GetMesh() + PMeshObject CLevelSet::GetMesh() { Lib3MFHandle hTheMesh = nullptr; - CheckError(m_pWrapper->m_WrapperTable.m_BoundaryShape_GetMesh(m_pHandle, &hTheMesh)); + CheckError(m_pWrapper->m_WrapperTable.m_LevelSet_GetMesh(m_pHandle, &hTheMesh)); if (hTheMesh) { return std::shared_ptr(dynamic_cast(m_pWrapper->polymorphicFactory(hTheMesh))); @@ -13900,13 +13900,13 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) } /** - * CBoundaryShape::GetVolumeData - Retrieves the VolumeData this MeshObject. + * CLevelSet::GetVolumeData - Retrieves the VolumeData this MeshObject. * @return the VolumeData of this MeshObject */ - PVolumeData CBoundaryShape::GetVolumeData() + PVolumeData CLevelSet::GetVolumeData() { Lib3MFHandle hTheVolumeData = nullptr; - CheckError(m_pWrapper->m_WrapperTable.m_BoundaryShape_GetVolumeData(m_pHandle, &hTheVolumeData)); + CheckError(m_pWrapper->m_WrapperTable.m_LevelSet_GetVolumeData(m_pHandle, &hTheVolumeData)); if (hTheVolumeData) { return std::shared_ptr(dynamic_cast(m_pWrapper->polymorphicFactory(hTheVolumeData))); @@ -13916,13 +13916,13 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) } /** - * CBoundaryShape::SetVolumeData - Sets the VolumeData of this BoundaryShape. + * CLevelSet::SetVolumeData - Sets the VolumeData of this LevelSet. * @param[in] pTheVolumeData - the VolumeData of this MeshObject */ - void CBoundaryShape::SetVolumeData(classParam pTheVolumeData) + void CLevelSet::SetVolumeData(classParam pTheVolumeData) { Lib3MFHandle hTheVolumeData = pTheVolumeData.GetHandle(); - CheckError(m_pWrapper->m_WrapperTable.m_BoundaryShape_SetVolumeData(m_pHandle, hTheVolumeData)); + CheckError(m_pWrapper->m_WrapperTable.m_LevelSet_SetVolumeData(m_pHandle, hTheVolumeData)); } /** @@ -20478,33 +20478,33 @@ inline CBase* CWrapper::polymorphicFactory(Lib3MFHandle pHandle) } /** - * CModel::AddBoundaryShape - adds an empty boundary shape object to the model. + * CModel::AddLevelSet - adds an empty boundary shape object to the model. * @return returns the mesh object instance */ - PBoundaryShape CModel::AddBoundaryShape() + PLevelSet CModel::AddLevelSet() { - Lib3MFHandle hBoundaryShapeInstance = nullptr; - CheckError(m_pWrapper->m_WrapperTable.m_Model_AddBoundaryShape(m_pHandle, &hBoundaryShapeInstance)); + Lib3MFHandle hLevelSetInstance = nullptr; + CheckError(m_pWrapper->m_WrapperTable.m_Model_AddLevelSet(m_pHandle, &hLevelSetInstance)); - if (!hBoundaryShapeInstance) { + if (!hLevelSetInstance) { CheckError(LIB3MF_ERROR_INVALIDPARAM); } - return std::shared_ptr(dynamic_cast(m_pWrapper->polymorphicFactory(hBoundaryShapeInstance))); + return std::shared_ptr(dynamic_cast(m_pWrapper->polymorphicFactory(hLevelSetInstance))); } /** - * CModel::GetBoundaryShapes - creates a resource iterator instance with all boundary shape resources. + * CModel::GetLevelSets - creates a resource iterator instance with all boundary shape resources. * @return returns the iterator instance. */ - PBoundaryShapeIterator CModel::GetBoundaryShapes() + PLevelSetIterator CModel::GetLevelSets() { Lib3MFHandle hResourceIterator = nullptr; - CheckError(m_pWrapper->m_WrapperTable.m_Model_GetBoundaryShapes(m_pHandle, &hResourceIterator)); + CheckError(m_pWrapper->m_WrapperTable.m_Model_GetLevelSets(m_pHandle, &hResourceIterator)); if (!hResourceIterator) { CheckError(LIB3MF_ERROR_INVALIDPARAM); } - return std::shared_ptr(dynamic_cast(m_pWrapper->polymorphicFactory(hResourceIterator))); + return std::shared_ptr(dynamic_cast(m_pWrapper->polymorphicFactory(hResourceIterator))); } } // namespace Lib3MF diff --git a/Autogenerated/Bindings/CppDynamic/lib3mf_types.hpp b/Autogenerated/Bindings/CppDynamic/lib3mf_types.hpp index 3860a5709..8c709a77e 100644 --- a/Autogenerated/Bindings/CppDynamic/lib3mf_types.hpp +++ b/Autogenerated/Bindings/CppDynamic/lib3mf_types.hpp @@ -221,12 +221,12 @@ typedef Lib3MFHandle Lib3MF_CompositeMaterialsIterator; typedef Lib3MFHandle Lib3MF_MultiPropertyGroupIterator; typedef Lib3MFHandle Lib3MF_Image3DIterator; typedef Lib3MFHandle Lib3MF_FunctionIterator; -typedef Lib3MFHandle Lib3MF_BoundaryShapeIterator; +typedef Lib3MFHandle Lib3MF_LevelSetIterator; typedef Lib3MFHandle Lib3MF_MetaData; typedef Lib3MFHandle Lib3MF_MetaDataGroup; typedef Lib3MFHandle Lib3MF_Object; typedef Lib3MFHandle Lib3MF_MeshObject; -typedef Lib3MFHandle Lib3MF_BoundaryShape; +typedef Lib3MFHandle Lib3MF_LevelSet; typedef Lib3MFHandle Lib3MF_BeamLattice; typedef Lib3MFHandle Lib3MF_FunctionReference; typedef Lib3MFHandle Lib3MF_VolumeDataColor; diff --git a/Autogenerated/Bindings/Go/lib3mf.go b/Autogenerated/Bindings/Go/lib3mf.go index 83e33abe3..d6bc80860 100644 --- a/Autogenerated/Bindings/Go/lib3mf.go +++ b/Autogenerated/Bindings/Go/lib3mf.go @@ -522,12 +522,12 @@ Lib3MFResult CCall_lib3mf_functioniterator_getcurrentfunction(Lib3MFHandle libra } -Lib3MFResult CCall_lib3mf_boundaryshapeiterator_getcurrentboundaryshape(Lib3MFHandle libraryHandle, Lib3MF_BoundaryShapeIterator pBoundaryShapeIterator, Lib3MF_BoundaryShape * pResource) +Lib3MFResult CCall_lib3mf_levelsetiterator_getcurrentlevelset(Lib3MFHandle libraryHandle, Lib3MF_LevelSetIterator pLevelSetIterator, Lib3MF_LevelSet * pResource) { if (libraryHandle == 0) return LIB3MF_ERROR_INVALIDCAST; sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BoundaryShapeIterator_GetCurrentBoundaryShape (pBoundaryShapeIterator, pResource); + return wrapperTable->m_LevelSetIterator_GetCurrentLevelSet (pLevelSetIterator, pResource); } @@ -1080,147 +1080,147 @@ Lib3MFResult CCall_lib3mf_meshobject_setvolumedata(Lib3MFHandle libraryHandle, L } -Lib3MFResult CCall_lib3mf_boundaryshape_getfunction(Lib3MFHandle libraryHandle, Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_Function * pTheFunction) +Lib3MFResult CCall_lib3mf_levelset_getfunction(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, Lib3MF_Function * pTheFunction) { if (libraryHandle == 0) return LIB3MF_ERROR_INVALIDCAST; sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BoundaryShape_GetFunction (pBoundaryShape, pTheFunction); + return wrapperTable->m_LevelSet_GetFunction (pLevelSet, pTheFunction); } -Lib3MFResult CCall_lib3mf_boundaryshape_setfunction(Lib3MFHandle libraryHandle, Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_Function pTheFunction) +Lib3MFResult CCall_lib3mf_levelset_setfunction(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, Lib3MF_Function pTheFunction) { if (libraryHandle == 0) return LIB3MF_ERROR_INVALIDCAST; sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BoundaryShape_SetFunction (pBoundaryShape, pTheFunction); + return wrapperTable->m_LevelSet_SetFunction (pLevelSet, pTheFunction); } -Lib3MFResult CCall_lib3mf_boundaryshape_gettransform(Lib3MFHandle libraryHandle, Lib3MF_BoundaryShape pBoundaryShape, sLib3MFTransform * pTransform) +Lib3MFResult CCall_lib3mf_levelset_gettransform(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, sLib3MFTransform * pTransform) { if (libraryHandle == 0) return LIB3MF_ERROR_INVALIDCAST; sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BoundaryShape_GetTransform (pBoundaryShape, pTransform); + return wrapperTable->m_LevelSet_GetTransform (pLevelSet, pTransform); } -Lib3MFResult CCall_lib3mf_boundaryshape_settransform(Lib3MFHandle libraryHandle, Lib3MF_BoundaryShape pBoundaryShape, const sLib3MFTransform * pTransform) +Lib3MFResult CCall_lib3mf_levelset_settransform(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, const sLib3MFTransform * pTransform) { if (libraryHandle == 0) return LIB3MF_ERROR_INVALIDCAST; sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BoundaryShape_SetTransform (pBoundaryShape, pTransform); + return wrapperTable->m_LevelSet_SetTransform (pLevelSet, pTransform); } -Lib3MFResult CCall_lib3mf_boundaryshape_getchannelname(Lib3MFHandle libraryHandle, Lib3MF_BoundaryShape pBoundaryShape, const Lib3MF_uint32 nChannelNameBufferSize, Lib3MF_uint32* pChannelNameNeededChars, char * pChannelNameBuffer) +Lib3MFResult CCall_lib3mf_levelset_getchannelname(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, const Lib3MF_uint32 nChannelNameBufferSize, Lib3MF_uint32* pChannelNameNeededChars, char * pChannelNameBuffer) { if (libraryHandle == 0) return LIB3MF_ERROR_INVALIDCAST; sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BoundaryShape_GetChannelName (pBoundaryShape, nChannelNameBufferSize, pChannelNameNeededChars, pChannelNameBuffer); + return wrapperTable->m_LevelSet_GetChannelName (pLevelSet, nChannelNameBufferSize, pChannelNameNeededChars, pChannelNameBuffer); } -Lib3MFResult CCall_lib3mf_boundaryshape_setchannelname(Lib3MFHandle libraryHandle, Lib3MF_BoundaryShape pBoundaryShape, const char * pChannelName) +Lib3MFResult CCall_lib3mf_levelset_setchannelname(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, const char * pChannelName) { if (libraryHandle == 0) return LIB3MF_ERROR_INVALIDCAST; sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BoundaryShape_SetChannelName (pBoundaryShape, pChannelName); + return wrapperTable->m_LevelSet_SetChannelName (pLevelSet, pChannelName); } -Lib3MFResult CCall_lib3mf_boundaryshape_setminfeaturesize(Lib3MFHandle libraryHandle, Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_double dMinFeatureSize) +Lib3MFResult CCall_lib3mf_levelset_setminfeaturesize(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, Lib3MF_double dMinFeatureSize) { if (libraryHandle == 0) return LIB3MF_ERROR_INVALIDCAST; sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BoundaryShape_SetMinFeatureSize (pBoundaryShape, dMinFeatureSize); + return wrapperTable->m_LevelSet_SetMinFeatureSize (pLevelSet, dMinFeatureSize); } -Lib3MFResult CCall_lib3mf_boundaryshape_getminfeaturesize(Lib3MFHandle libraryHandle, Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_double * pMinFeatureSize) +Lib3MFResult CCall_lib3mf_levelset_getminfeaturesize(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, Lib3MF_double * pMinFeatureSize) { if (libraryHandle == 0) return LIB3MF_ERROR_INVALIDCAST; sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BoundaryShape_GetMinFeatureSize (pBoundaryShape, pMinFeatureSize); + return wrapperTable->m_LevelSet_GetMinFeatureSize (pLevelSet, pMinFeatureSize); } -Lib3MFResult CCall_lib3mf_boundaryshape_setfallbackvalue(Lib3MFHandle libraryHandle, Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_double dFallBackValue) +Lib3MFResult CCall_lib3mf_levelset_setfallbackvalue(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, Lib3MF_double dFallBackValue) { if (libraryHandle == 0) return LIB3MF_ERROR_INVALIDCAST; sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BoundaryShape_SetFallBackValue (pBoundaryShape, dFallBackValue); + return wrapperTable->m_LevelSet_SetFallBackValue (pLevelSet, dFallBackValue); } -Lib3MFResult CCall_lib3mf_boundaryshape_getfallbackvalue(Lib3MFHandle libraryHandle, Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_double * pFallBackValue) +Lib3MFResult CCall_lib3mf_levelset_getfallbackvalue(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, Lib3MF_double * pFallBackValue) { if (libraryHandle == 0) return LIB3MF_ERROR_INVALIDCAST; sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BoundaryShape_GetFallBackValue (pBoundaryShape, pFallBackValue); + return wrapperTable->m_LevelSet_GetFallBackValue (pLevelSet, pFallBackValue); } -Lib3MFResult CCall_lib3mf_boundaryshape_setmeshbboxonly(Lib3MFHandle libraryHandle, Lib3MF_BoundaryShape pBoundaryShape, bool bMeshBBoxOnly) +Lib3MFResult CCall_lib3mf_levelset_setmeshbboxonly(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, bool bMeshBBoxOnly) { if (libraryHandle == 0) return LIB3MF_ERROR_INVALIDCAST; sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BoundaryShape_SetMeshBBoxOnly (pBoundaryShape, bMeshBBoxOnly); + return wrapperTable->m_LevelSet_SetMeshBBoxOnly (pLevelSet, bMeshBBoxOnly); } -Lib3MFResult CCall_lib3mf_boundaryshape_getmeshbboxonly(Lib3MFHandle libraryHandle, Lib3MF_BoundaryShape pBoundaryShape, bool * pMeshBBoxOnly) +Lib3MFResult CCall_lib3mf_levelset_getmeshbboxonly(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, bool * pMeshBBoxOnly) { if (libraryHandle == 0) return LIB3MF_ERROR_INVALIDCAST; sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BoundaryShape_GetMeshBBoxOnly (pBoundaryShape, pMeshBBoxOnly); + return wrapperTable->m_LevelSet_GetMeshBBoxOnly (pLevelSet, pMeshBBoxOnly); } -Lib3MFResult CCall_lib3mf_boundaryshape_setmesh(Lib3MFHandle libraryHandle, Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_MeshObject pTheMesh) +Lib3MFResult CCall_lib3mf_levelset_setmesh(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, Lib3MF_MeshObject pTheMesh) { if (libraryHandle == 0) return LIB3MF_ERROR_INVALIDCAST; sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BoundaryShape_SetMesh (pBoundaryShape, pTheMesh); + return wrapperTable->m_LevelSet_SetMesh (pLevelSet, pTheMesh); } -Lib3MFResult CCall_lib3mf_boundaryshape_getmesh(Lib3MFHandle libraryHandle, Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_MeshObject * pTheMesh) +Lib3MFResult CCall_lib3mf_levelset_getmesh(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, Lib3MF_MeshObject * pTheMesh) { if (libraryHandle == 0) return LIB3MF_ERROR_INVALIDCAST; sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BoundaryShape_GetMesh (pBoundaryShape, pTheMesh); + return wrapperTable->m_LevelSet_GetMesh (pLevelSet, pTheMesh); } -Lib3MFResult CCall_lib3mf_boundaryshape_getvolumedata(Lib3MFHandle libraryHandle, Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_VolumeData * pTheVolumeData) +Lib3MFResult CCall_lib3mf_levelset_getvolumedata(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, Lib3MF_VolumeData * pTheVolumeData) { if (libraryHandle == 0) return LIB3MF_ERROR_INVALIDCAST; sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BoundaryShape_GetVolumeData (pBoundaryShape, pTheVolumeData); + return wrapperTable->m_LevelSet_GetVolumeData (pLevelSet, pTheVolumeData); } -Lib3MFResult CCall_lib3mf_boundaryshape_setvolumedata(Lib3MFHandle libraryHandle, Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_VolumeData pTheVolumeData) +Lib3MFResult CCall_lib3mf_levelset_setvolumedata(Lib3MFHandle libraryHandle, Lib3MF_LevelSet pLevelSet, Lib3MF_VolumeData pTheVolumeData) { if (libraryHandle == 0) return LIB3MF_ERROR_INVALIDCAST; sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_BoundaryShape_SetVolumeData (pBoundaryShape, pTheVolumeData); + return wrapperTable->m_LevelSet_SetVolumeData (pLevelSet, pTheVolumeData); } @@ -5274,21 +5274,21 @@ Lib3MFResult CCall_lib3mf_model_addvolumedata(Lib3MFHandle libraryHandle, Lib3MF } -Lib3MFResult CCall_lib3mf_model_addboundaryshape(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_BoundaryShape * pBoundaryShapeInstance) +Lib3MFResult CCall_lib3mf_model_addlevelset(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_LevelSet * pLevelSetInstance) { if (libraryHandle == 0) return LIB3MF_ERROR_INVALIDCAST; sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_AddBoundaryShape (pModel, pBoundaryShapeInstance); + return wrapperTable->m_Model_AddLevelSet (pModel, pLevelSetInstance); } -Lib3MFResult CCall_lib3mf_model_getboundaryshapes(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_BoundaryShapeIterator * pResourceIterator) +Lib3MFResult CCall_lib3mf_model_getlevelsets(Lib3MFHandle libraryHandle, Lib3MF_Model pModel, Lib3MF_LevelSetIterator * pResourceIterator) { if (libraryHandle == 0) return LIB3MF_ERROR_INVALIDCAST; sLib3MFDynamicWrapperTable * wrapperTable = (sLib3MFDynamicWrapperTable *) libraryHandle; - return wrapperTable->m_Model_GetBoundaryShapes (pModel, pResourceIterator); + return wrapperTable->m_Model_GetLevelSets (pModel, pResourceIterator); } @@ -6820,23 +6820,23 @@ func (inst FunctionIterator) GetCurrentFunction() (Function, error) { } -// BoundaryShapeIterator represents a Lib3MF class. -type BoundaryShapeIterator struct { +// LevelSetIterator represents a Lib3MF class. +type LevelSetIterator struct { ResourceIterator } -func (wrapper Wrapper) NewBoundaryShapeIterator(r ref) BoundaryShapeIterator { - return BoundaryShapeIterator{wrapper.NewResourceIterator(r)} +func (wrapper Wrapper) NewLevelSetIterator(r ref) LevelSetIterator { + return LevelSetIterator{wrapper.NewResourceIterator(r)} } -// GetCurrentBoundaryShape returns the BoundaryShape the iterator points at. -func (inst BoundaryShapeIterator) GetCurrentBoundaryShape() (BoundaryShape, error) { +// GetCurrentLevelSet returns the LevelSet the iterator points at. +func (inst LevelSetIterator) GetCurrentLevelSet() (LevelSet, error) { var resource ref - ret := C.CCall_lib3mf_boundaryshapeiterator_getcurrentboundaryshape(inst.wrapperRef.LibraryHandle, inst.Ref, &resource) + ret := C.CCall_lib3mf_levelsetiterator_getcurrentlevelset(inst.wrapperRef.LibraryHandle, inst.Ref, &resource) if ret != 0 { - return BoundaryShape{}, makeError(uint32(ret)) + return LevelSet{}, makeError(uint32(ret)) } - return inst.wrapperRef.NewBoundaryShape(resource), nil + return inst.wrapperRef.NewLevelSet(resource), nil } @@ -7556,19 +7556,19 @@ func (inst MeshObject) SetVolumeData(theVolumeData VolumeData) error { } -// BoundaryShape represents a Lib3MF class. -type BoundaryShape struct { +// LevelSet represents a Lib3MF class. +type LevelSet struct { Object } -func (wrapper Wrapper) NewBoundaryShape(r ref) BoundaryShape { - return BoundaryShape{wrapper.NewObject(r)} +func (wrapper Wrapper) NewLevelSet(r ref) LevelSet { + return LevelSet{wrapper.NewObject(r)} } // GetFunction returns the function that is used as boundary shape. -func (inst BoundaryShape) GetFunction() (*Function, error) { +func (inst LevelSet) GetFunction() (*Function, error) { var theFunction ref - ret := C.CCall_lib3mf_boundaryshape_getfunction(inst.wrapperRef.LibraryHandle, inst.Ref, &theFunction) + ret := C.CCall_lib3mf_levelset_getfunction(inst.wrapperRef.LibraryHandle, inst.Ref, &theFunction) if ret != 0 { return nil, makeError(uint32(ret)) } @@ -7581,8 +7581,8 @@ func (inst BoundaryShape) GetFunction() (*Function, error) { } // SetFunction sets the function to use as boundary shape. -func (inst BoundaryShape) SetFunction(theFunction Function) error { - ret := C.CCall_lib3mf_boundaryshape_setfunction(inst.wrapperRef.LibraryHandle, inst.Ref, theFunction.Ref) +func (inst LevelSet) SetFunction(theFunction Function) error { + ret := C.CCall_lib3mf_levelset_setfunction(inst.wrapperRef.LibraryHandle, inst.Ref, theFunction.Ref) if ret != 0 { return makeError(uint32(ret)) } @@ -7590,9 +7590,9 @@ func (inst BoundaryShape) SetFunction(theFunction Function) error { } // GetTransform returns the transformation matrix into the coordinate system of the referenced Function. -func (inst BoundaryShape) GetTransform() (Transform, error) { +func (inst LevelSet) GetTransform() (Transform, error) { var transform C.sLib3MFTransform - ret := C.CCall_lib3mf_boundaryshape_gettransform(inst.wrapperRef.LibraryHandle, inst.Ref, &transform) + ret := C.CCall_lib3mf_levelset_gettransform(inst.wrapperRef.LibraryHandle, inst.Ref, &transform) if ret != 0 { return Transform{}, makeError(uint32(ret)) } @@ -7600,8 +7600,8 @@ func (inst BoundaryShape) GetTransform() (Transform, error) { } // SetTransform sets the transformation matrix into the coordinate system of the referenced Function. -func (inst BoundaryShape) SetTransform(transform Transform) error { - ret := C.CCall_lib3mf_boundaryshape_settransform(inst.wrapperRef.LibraryHandle, inst.Ref, (*C.sLib3MFTransform)(unsafe.Pointer(&transform))) +func (inst LevelSet) SetTransform(transform Transform) error { + ret := C.CCall_lib3mf_levelset_settransform(inst.wrapperRef.LibraryHandle, inst.Ref, (*C.sLib3MFTransform)(unsafe.Pointer(&transform))) if ret != 0 { return makeError(uint32(ret)) } @@ -7609,16 +7609,16 @@ func (inst BoundaryShape) SetTransform(transform Transform) error { } // GetChannelName returns the name of the function output channel to use. -func (inst BoundaryShape) GetChannelName() (string, error) { +func (inst LevelSet) GetChannelName() (string, error) { var neededforchannelName C.uint32_t var filledinchannelName C.uint32_t - ret := C.CCall_lib3mf_boundaryshape_getchannelname(inst.wrapperRef.LibraryHandle, inst.Ref, 0, &neededforchannelName, nil) + ret := C.CCall_lib3mf_levelset_getchannelname(inst.wrapperRef.LibraryHandle, inst.Ref, 0, &neededforchannelName, nil) if ret != 0 { return "", makeError(uint32(ret)) } bufferSizechannelName := neededforchannelName bufferchannelName := make([]byte, bufferSizechannelName) - ret = C.CCall_lib3mf_boundaryshape_getchannelname(inst.wrapperRef.LibraryHandle, inst.Ref, bufferSizechannelName, &filledinchannelName, (*C.char)(unsafe.Pointer(&bufferchannelName[0]))) + ret = C.CCall_lib3mf_levelset_getchannelname(inst.wrapperRef.LibraryHandle, inst.Ref, bufferSizechannelName, &filledinchannelName, (*C.char)(unsafe.Pointer(&bufferchannelName[0]))) if ret != 0 { return "", makeError(uint32(ret)) } @@ -7626,8 +7626,8 @@ func (inst BoundaryShape) GetChannelName() (string, error) { } // SetChannelName sets the name of the function output channel to use. -func (inst BoundaryShape) SetChannelName(channelName string) error { - ret := C.CCall_lib3mf_boundaryshape_setchannelname(inst.wrapperRef.LibraryHandle, inst.Ref, (*C.char)(unsafe.Pointer(&[]byte(channelName)[0]))) +func (inst LevelSet) SetChannelName(channelName string) error { + ret := C.CCall_lib3mf_levelset_setchannelname(inst.wrapperRef.LibraryHandle, inst.Ref, (*C.char)(unsafe.Pointer(&[]byte(channelName)[0]))) if ret != 0 { return makeError(uint32(ret)) } @@ -7635,8 +7635,8 @@ func (inst BoundaryShape) SetChannelName(channelName string) error { } // SetMinFeatureSize sets the minimal feature size as a hint for the function evaluator. -func (inst BoundaryShape) SetMinFeatureSize(minFeatureSize float64) error { - ret := C.CCall_lib3mf_boundaryshape_setminfeaturesize(inst.wrapperRef.LibraryHandle, inst.Ref, C.double(minFeatureSize)) +func (inst LevelSet) SetMinFeatureSize(minFeatureSize float64) error { + ret := C.CCall_lib3mf_levelset_setminfeaturesize(inst.wrapperRef.LibraryHandle, inst.Ref, C.double(minFeatureSize)) if ret != 0 { return makeError(uint32(ret)) } @@ -7644,9 +7644,9 @@ func (inst BoundaryShape) SetMinFeatureSize(minFeatureSize float64) error { } // GetMinFeatureSize returns the minimal feature size as a hint for the function evaluator. -func (inst BoundaryShape) GetMinFeatureSize() (float64, error) { +func (inst LevelSet) GetMinFeatureSize() (float64, error) { var minFeatureSize C.double - ret := C.CCall_lib3mf_boundaryshape_getminfeaturesize(inst.wrapperRef.LibraryHandle, inst.Ref, &minFeatureSize) + ret := C.CCall_lib3mf_levelset_getminfeaturesize(inst.wrapperRef.LibraryHandle, inst.Ref, &minFeatureSize) if ret != 0 { return 0, makeError(uint32(ret)) } @@ -7654,8 +7654,8 @@ func (inst BoundaryShape) GetMinFeatureSize() (float64, error) { } // SetFallBackValue sets the fallback value to use if the function evaluation fails (e.g. evaluates to NaN or Inf). -func (inst BoundaryShape) SetFallBackValue(fallBackValue float64) error { - ret := C.CCall_lib3mf_boundaryshape_setfallbackvalue(inst.wrapperRef.LibraryHandle, inst.Ref, C.double(fallBackValue)) +func (inst LevelSet) SetFallBackValue(fallBackValue float64) error { + ret := C.CCall_lib3mf_levelset_setfallbackvalue(inst.wrapperRef.LibraryHandle, inst.Ref, C.double(fallBackValue)) if ret != 0 { return makeError(uint32(ret)) } @@ -7663,9 +7663,9 @@ func (inst BoundaryShape) SetFallBackValue(fallBackValue float64) error { } // GetFallBackValue returns the fallback value to use if the function evaluation fails (e.g. evaluates to NaN or Inf). -func (inst BoundaryShape) GetFallBackValue() (float64, error) { +func (inst LevelSet) GetFallBackValue() (float64, error) { var fallBackValue C.double - ret := C.CCall_lib3mf_boundaryshape_getfallbackvalue(inst.wrapperRef.LibraryHandle, inst.Ref, &fallBackValue) + ret := C.CCall_lib3mf_levelset_getfallbackvalue(inst.wrapperRef.LibraryHandle, inst.Ref, &fallBackValue) if ret != 0 { return 0, makeError(uint32(ret)) } @@ -7673,8 +7673,8 @@ func (inst BoundaryShape) GetFallBackValue() (float64, error) { } // SetMeshBBoxOnly if set only the bounding box of the mesh is intersected with the boundary. -func (inst BoundaryShape) SetMeshBBoxOnly(meshBBoxOnly bool) error { - ret := C.CCall_lib3mf_boundaryshape_setmeshbboxonly(inst.wrapperRef.LibraryHandle, inst.Ref, C.bool(meshBBoxOnly)) +func (inst LevelSet) SetMeshBBoxOnly(meshBBoxOnly bool) error { + ret := C.CCall_lib3mf_levelset_setmeshbboxonly(inst.wrapperRef.LibraryHandle, inst.Ref, C.bool(meshBBoxOnly)) if ret != 0 { return makeError(uint32(ret)) } @@ -7682,9 +7682,9 @@ func (inst BoundaryShape) SetMeshBBoxOnly(meshBBoxOnly bool) error { } // GetMeshBBoxOnly if set only the bounding box of the mesh is intersected with the boundary. -func (inst BoundaryShape) GetMeshBBoxOnly() (bool, error) { +func (inst LevelSet) GetMeshBBoxOnly() (bool, error) { var meshBBoxOnly C.bool - ret := C.CCall_lib3mf_boundaryshape_getmeshbboxonly(inst.wrapperRef.LibraryHandle, inst.Ref, &meshBBoxOnly) + ret := C.CCall_lib3mf_levelset_getmeshbboxonly(inst.wrapperRef.LibraryHandle, inst.Ref, &meshBBoxOnly) if ret != 0 { return false, makeError(uint32(ret)) } @@ -7692,8 +7692,8 @@ func (inst BoundaryShape) GetMeshBBoxOnly() (bool, error) { } // SetMesh sets the mesh to use as evaluation domain. -func (inst BoundaryShape) SetMesh(theMesh MeshObject) error { - ret := C.CCall_lib3mf_boundaryshape_setmesh(inst.wrapperRef.LibraryHandle, inst.Ref, theMesh.Ref) +func (inst LevelSet) SetMesh(theMesh MeshObject) error { + ret := C.CCall_lib3mf_levelset_setmesh(inst.wrapperRef.LibraryHandle, inst.Ref, theMesh.Ref) if ret != 0 { return makeError(uint32(ret)) } @@ -7701,9 +7701,9 @@ func (inst BoundaryShape) SetMesh(theMesh MeshObject) error { } // GetMesh returns the mesh that is used as evaluation domain. -func (inst BoundaryShape) GetMesh() (*MeshObject, error) { +func (inst LevelSet) GetMesh() (*MeshObject, error) { var theMesh ref - ret := C.CCall_lib3mf_boundaryshape_getmesh(inst.wrapperRef.LibraryHandle, inst.Ref, &theMesh) + ret := C.CCall_lib3mf_levelset_getmesh(inst.wrapperRef.LibraryHandle, inst.Ref, &theMesh) if ret != 0 { return nil, makeError(uint32(ret)) } @@ -7716,9 +7716,9 @@ func (inst BoundaryShape) GetMesh() (*MeshObject, error) { } // GetVolumeData retrieves the VolumeData this MeshObject. -func (inst BoundaryShape) GetVolumeData() (*VolumeData, error) { +func (inst LevelSet) GetVolumeData() (*VolumeData, error) { var theVolumeData ref - ret := C.CCall_lib3mf_boundaryshape_getvolumedata(inst.wrapperRef.LibraryHandle, inst.Ref, &theVolumeData) + ret := C.CCall_lib3mf_levelset_getvolumedata(inst.wrapperRef.LibraryHandle, inst.Ref, &theVolumeData) if ret != 0 { return nil, makeError(uint32(ret)) } @@ -7730,9 +7730,9 @@ func (inst BoundaryShape) GetVolumeData() (*VolumeData, error) { return _theVolumeDataPtr, nil } -// SetVolumeData sets the VolumeData of this BoundaryShape. -func (inst BoundaryShape) SetVolumeData(theVolumeData VolumeData) error { - ret := C.CCall_lib3mf_boundaryshape_setvolumedata(inst.wrapperRef.LibraryHandle, inst.Ref, theVolumeData.Ref) +// SetVolumeData sets the VolumeData of this LevelSet. +func (inst LevelSet) SetVolumeData(theVolumeData VolumeData) error { + ret := C.CCall_lib3mf_levelset_setvolumedata(inst.wrapperRef.LibraryHandle, inst.Ref, theVolumeData.Ref) if ret != 0 { return makeError(uint32(ret)) } @@ -13428,24 +13428,24 @@ func (inst Model) AddVolumeData() (VolumeData, error) { return inst.wrapperRef.NewVolumeData(volumeDataInstance), nil } -// AddBoundaryShape adds an empty boundary shape object to the model. -func (inst Model) AddBoundaryShape() (BoundaryShape, error) { - var boundaryShapeInstance ref - ret := C.CCall_lib3mf_model_addboundaryshape(inst.wrapperRef.LibraryHandle, inst.Ref, &boundaryShapeInstance) +// AddLevelSet adds an empty boundary shape object to the model. +func (inst Model) AddLevelSet() (LevelSet, error) { + var levelSetInstance ref + ret := C.CCall_lib3mf_model_addlevelset(inst.wrapperRef.LibraryHandle, inst.Ref, &levelSetInstance) if ret != 0 { - return BoundaryShape{}, makeError(uint32(ret)) + return LevelSet{}, makeError(uint32(ret)) } - return inst.wrapperRef.NewBoundaryShape(boundaryShapeInstance), nil + return inst.wrapperRef.NewLevelSet(levelSetInstance), nil } -// GetBoundaryShapes creates a resource iterator instance with all boundary shape resources. -func (inst Model) GetBoundaryShapes() (BoundaryShapeIterator, error) { +// GetLevelSets creates a resource iterator instance with all boundary shape resources. +func (inst Model) GetLevelSets() (LevelSetIterator, error) { var resourceIterator ref - ret := C.CCall_lib3mf_model_getboundaryshapes(inst.wrapperRef.LibraryHandle, inst.Ref, &resourceIterator) + ret := C.CCall_lib3mf_model_getlevelsets(inst.wrapperRef.LibraryHandle, inst.Ref, &resourceIterator) if ret != 0 { - return BoundaryShapeIterator{}, makeError(uint32(ret)) + return LevelSetIterator{}, makeError(uint32(ret)) } - return inst.wrapperRef.NewBoundaryShapeIterator(resourceIterator), nil + return inst.wrapperRef.NewLevelSetIterator(resourceIterator), nil } diff --git a/Autogenerated/Bindings/Go/lib3mf_dynamic.cc b/Autogenerated/Bindings/Go/lib3mf_dynamic.cc index ee1146da6..ec45f5118 100644 --- a/Autogenerated/Bindings/Go/lib3mf_dynamic.cc +++ b/Autogenerated/Bindings/Go/lib3mf_dynamic.cc @@ -98,7 +98,7 @@ Lib3MFResult InitLib3MFWrapperTable(sLib3MFDynamicWrapperTable * pWrapperTable) pWrapperTable->m_MultiPropertyGroupIterator_GetCurrentMultiPropertyGroup = NULL; pWrapperTable->m_Image3DIterator_GetCurrentImage3D = NULL; pWrapperTable->m_FunctionIterator_GetCurrentFunction = NULL; - pWrapperTable->m_BoundaryShapeIterator_GetCurrentBoundaryShape = NULL; + pWrapperTable->m_LevelSetIterator_GetCurrentLevelSet = NULL; pWrapperTable->m_MetaData_GetNameSpace = NULL; pWrapperTable->m_MetaData_SetNameSpace = NULL; pWrapperTable->m_MetaData_GetName = NULL; @@ -160,22 +160,22 @@ Lib3MFResult InitLib3MFWrapperTable(sLib3MFDynamicWrapperTable * pWrapperTable) pWrapperTable->m_MeshObject_BeamLattice = NULL; pWrapperTable->m_MeshObject_GetVolumeData = NULL; pWrapperTable->m_MeshObject_SetVolumeData = NULL; - pWrapperTable->m_BoundaryShape_GetFunction = NULL; - pWrapperTable->m_BoundaryShape_SetFunction = NULL; - pWrapperTable->m_BoundaryShape_GetTransform = NULL; - pWrapperTable->m_BoundaryShape_SetTransform = NULL; - pWrapperTable->m_BoundaryShape_GetChannelName = NULL; - pWrapperTable->m_BoundaryShape_SetChannelName = NULL; - pWrapperTable->m_BoundaryShape_SetMinFeatureSize = NULL; - pWrapperTable->m_BoundaryShape_GetMinFeatureSize = NULL; - pWrapperTable->m_BoundaryShape_SetFallBackValue = NULL; - pWrapperTable->m_BoundaryShape_GetFallBackValue = NULL; - pWrapperTable->m_BoundaryShape_SetMeshBBoxOnly = NULL; - pWrapperTable->m_BoundaryShape_GetMeshBBoxOnly = NULL; - pWrapperTable->m_BoundaryShape_SetMesh = NULL; - pWrapperTable->m_BoundaryShape_GetMesh = NULL; - pWrapperTable->m_BoundaryShape_GetVolumeData = NULL; - pWrapperTable->m_BoundaryShape_SetVolumeData = NULL; + pWrapperTable->m_LevelSet_GetFunction = NULL; + pWrapperTable->m_LevelSet_SetFunction = NULL; + pWrapperTable->m_LevelSet_GetTransform = NULL; + pWrapperTable->m_LevelSet_SetTransform = NULL; + pWrapperTable->m_LevelSet_GetChannelName = NULL; + pWrapperTable->m_LevelSet_SetChannelName = NULL; + pWrapperTable->m_LevelSet_SetMinFeatureSize = NULL; + pWrapperTable->m_LevelSet_GetMinFeatureSize = NULL; + pWrapperTable->m_LevelSet_SetFallBackValue = NULL; + pWrapperTable->m_LevelSet_GetFallBackValue = NULL; + pWrapperTable->m_LevelSet_SetMeshBBoxOnly = NULL; + pWrapperTable->m_LevelSet_GetMeshBBoxOnly = NULL; + pWrapperTable->m_LevelSet_SetMesh = NULL; + pWrapperTable->m_LevelSet_GetMesh = NULL; + pWrapperTable->m_LevelSet_GetVolumeData = NULL; + pWrapperTable->m_LevelSet_SetVolumeData = NULL; pWrapperTable->m_BeamLattice_GetMinLength = NULL; pWrapperTable->m_BeamLattice_SetMinLength = NULL; pWrapperTable->m_BeamLattice_GetClipping = NULL; @@ -626,8 +626,8 @@ Lib3MFResult InitLib3MFWrapperTable(sLib3MFDynamicWrapperTable * pWrapperTable) pWrapperTable->m_Model_AddImplicitFunction = NULL; pWrapperTable->m_Model_AddFunctionFromImage3D = NULL; pWrapperTable->m_Model_AddVolumeData = NULL; - pWrapperTable->m_Model_AddBoundaryShape = NULL; - pWrapperTable->m_Model_GetBoundaryShapes = NULL; + pWrapperTable->m_Model_AddLevelSet = NULL; + pWrapperTable->m_Model_GetLevelSets = NULL; pWrapperTable->m_GetLibraryVersion = NULL; pWrapperTable->m_GetPrereleaseInformation = NULL; pWrapperTable->m_GetBuildInformation = NULL; @@ -1152,12 +1152,12 @@ Lib3MFResult LoadLib3MFWrapperTable(sLib3MFDynamicWrapperTable * pWrapperTable, return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShapeIterator_GetCurrentBoundaryShape = (PLib3MFBoundaryShapeIterator_GetCurrentBoundaryShapePtr) GetProcAddress(hLibrary, "lib3mf_boundaryshapeiterator_getcurrentboundaryshape"); + pWrapperTable->m_LevelSetIterator_GetCurrentLevelSet = (PLib3MFLevelSetIterator_GetCurrentLevelSetPtr) GetProcAddress(hLibrary, "lib3mf_levelsetiterator_getcurrentlevelset"); #else // _WIN32 - pWrapperTable->m_BoundaryShapeIterator_GetCurrentBoundaryShape = (PLib3MFBoundaryShapeIterator_GetCurrentBoundaryShapePtr) dlsym(hLibrary, "lib3mf_boundaryshapeiterator_getcurrentboundaryshape"); + pWrapperTable->m_LevelSetIterator_GetCurrentLevelSet = (PLib3MFLevelSetIterator_GetCurrentLevelSetPtr) dlsym(hLibrary, "lib3mf_levelsetiterator_getcurrentlevelset"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShapeIterator_GetCurrentBoundaryShape == NULL) + if (pWrapperTable->m_LevelSetIterator_GetCurrentLevelSet == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 @@ -1710,147 +1710,147 @@ Lib3MFResult LoadLib3MFWrapperTable(sLib3MFDynamicWrapperTable * pWrapperTable, return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_GetFunction = (PLib3MFBoundaryShape_GetFunctionPtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_getfunction"); + pWrapperTable->m_LevelSet_GetFunction = (PLib3MFLevelSet_GetFunctionPtr) GetProcAddress(hLibrary, "lib3mf_levelset_getfunction"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_GetFunction = (PLib3MFBoundaryShape_GetFunctionPtr) dlsym(hLibrary, "lib3mf_boundaryshape_getfunction"); + pWrapperTable->m_LevelSet_GetFunction = (PLib3MFLevelSet_GetFunctionPtr) dlsym(hLibrary, "lib3mf_levelset_getfunction"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_GetFunction == NULL) + if (pWrapperTable->m_LevelSet_GetFunction == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_SetFunction = (PLib3MFBoundaryShape_SetFunctionPtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_setfunction"); + pWrapperTable->m_LevelSet_SetFunction = (PLib3MFLevelSet_SetFunctionPtr) GetProcAddress(hLibrary, "lib3mf_levelset_setfunction"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_SetFunction = (PLib3MFBoundaryShape_SetFunctionPtr) dlsym(hLibrary, "lib3mf_boundaryshape_setfunction"); + pWrapperTable->m_LevelSet_SetFunction = (PLib3MFLevelSet_SetFunctionPtr) dlsym(hLibrary, "lib3mf_levelset_setfunction"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_SetFunction == NULL) + if (pWrapperTable->m_LevelSet_SetFunction == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_GetTransform = (PLib3MFBoundaryShape_GetTransformPtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_gettransform"); + pWrapperTable->m_LevelSet_GetTransform = (PLib3MFLevelSet_GetTransformPtr) GetProcAddress(hLibrary, "lib3mf_levelset_gettransform"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_GetTransform = (PLib3MFBoundaryShape_GetTransformPtr) dlsym(hLibrary, "lib3mf_boundaryshape_gettransform"); + pWrapperTable->m_LevelSet_GetTransform = (PLib3MFLevelSet_GetTransformPtr) dlsym(hLibrary, "lib3mf_levelset_gettransform"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_GetTransform == NULL) + if (pWrapperTable->m_LevelSet_GetTransform == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_SetTransform = (PLib3MFBoundaryShape_SetTransformPtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_settransform"); + pWrapperTable->m_LevelSet_SetTransform = (PLib3MFLevelSet_SetTransformPtr) GetProcAddress(hLibrary, "lib3mf_levelset_settransform"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_SetTransform = (PLib3MFBoundaryShape_SetTransformPtr) dlsym(hLibrary, "lib3mf_boundaryshape_settransform"); + pWrapperTable->m_LevelSet_SetTransform = (PLib3MFLevelSet_SetTransformPtr) dlsym(hLibrary, "lib3mf_levelset_settransform"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_SetTransform == NULL) + if (pWrapperTable->m_LevelSet_SetTransform == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_GetChannelName = (PLib3MFBoundaryShape_GetChannelNamePtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_getchannelname"); + pWrapperTable->m_LevelSet_GetChannelName = (PLib3MFLevelSet_GetChannelNamePtr) GetProcAddress(hLibrary, "lib3mf_levelset_getchannelname"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_GetChannelName = (PLib3MFBoundaryShape_GetChannelNamePtr) dlsym(hLibrary, "lib3mf_boundaryshape_getchannelname"); + pWrapperTable->m_LevelSet_GetChannelName = (PLib3MFLevelSet_GetChannelNamePtr) dlsym(hLibrary, "lib3mf_levelset_getchannelname"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_GetChannelName == NULL) + if (pWrapperTable->m_LevelSet_GetChannelName == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_SetChannelName = (PLib3MFBoundaryShape_SetChannelNamePtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_setchannelname"); + pWrapperTable->m_LevelSet_SetChannelName = (PLib3MFLevelSet_SetChannelNamePtr) GetProcAddress(hLibrary, "lib3mf_levelset_setchannelname"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_SetChannelName = (PLib3MFBoundaryShape_SetChannelNamePtr) dlsym(hLibrary, "lib3mf_boundaryshape_setchannelname"); + pWrapperTable->m_LevelSet_SetChannelName = (PLib3MFLevelSet_SetChannelNamePtr) dlsym(hLibrary, "lib3mf_levelset_setchannelname"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_SetChannelName == NULL) + if (pWrapperTable->m_LevelSet_SetChannelName == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_SetMinFeatureSize = (PLib3MFBoundaryShape_SetMinFeatureSizePtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_setminfeaturesize"); + pWrapperTable->m_LevelSet_SetMinFeatureSize = (PLib3MFLevelSet_SetMinFeatureSizePtr) GetProcAddress(hLibrary, "lib3mf_levelset_setminfeaturesize"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_SetMinFeatureSize = (PLib3MFBoundaryShape_SetMinFeatureSizePtr) dlsym(hLibrary, "lib3mf_boundaryshape_setminfeaturesize"); + pWrapperTable->m_LevelSet_SetMinFeatureSize = (PLib3MFLevelSet_SetMinFeatureSizePtr) dlsym(hLibrary, "lib3mf_levelset_setminfeaturesize"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_SetMinFeatureSize == NULL) + if (pWrapperTable->m_LevelSet_SetMinFeatureSize == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_GetMinFeatureSize = (PLib3MFBoundaryShape_GetMinFeatureSizePtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_getminfeaturesize"); + pWrapperTable->m_LevelSet_GetMinFeatureSize = (PLib3MFLevelSet_GetMinFeatureSizePtr) GetProcAddress(hLibrary, "lib3mf_levelset_getminfeaturesize"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_GetMinFeatureSize = (PLib3MFBoundaryShape_GetMinFeatureSizePtr) dlsym(hLibrary, "lib3mf_boundaryshape_getminfeaturesize"); + pWrapperTable->m_LevelSet_GetMinFeatureSize = (PLib3MFLevelSet_GetMinFeatureSizePtr) dlsym(hLibrary, "lib3mf_levelset_getminfeaturesize"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_GetMinFeatureSize == NULL) + if (pWrapperTable->m_LevelSet_GetMinFeatureSize == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_SetFallBackValue = (PLib3MFBoundaryShape_SetFallBackValuePtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_setfallbackvalue"); + pWrapperTable->m_LevelSet_SetFallBackValue = (PLib3MFLevelSet_SetFallBackValuePtr) GetProcAddress(hLibrary, "lib3mf_levelset_setfallbackvalue"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_SetFallBackValue = (PLib3MFBoundaryShape_SetFallBackValuePtr) dlsym(hLibrary, "lib3mf_boundaryshape_setfallbackvalue"); + pWrapperTable->m_LevelSet_SetFallBackValue = (PLib3MFLevelSet_SetFallBackValuePtr) dlsym(hLibrary, "lib3mf_levelset_setfallbackvalue"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_SetFallBackValue == NULL) + if (pWrapperTable->m_LevelSet_SetFallBackValue == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_GetFallBackValue = (PLib3MFBoundaryShape_GetFallBackValuePtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_getfallbackvalue"); + pWrapperTable->m_LevelSet_GetFallBackValue = (PLib3MFLevelSet_GetFallBackValuePtr) GetProcAddress(hLibrary, "lib3mf_levelset_getfallbackvalue"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_GetFallBackValue = (PLib3MFBoundaryShape_GetFallBackValuePtr) dlsym(hLibrary, "lib3mf_boundaryshape_getfallbackvalue"); + pWrapperTable->m_LevelSet_GetFallBackValue = (PLib3MFLevelSet_GetFallBackValuePtr) dlsym(hLibrary, "lib3mf_levelset_getfallbackvalue"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_GetFallBackValue == NULL) + if (pWrapperTable->m_LevelSet_GetFallBackValue == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_SetMeshBBoxOnly = (PLib3MFBoundaryShape_SetMeshBBoxOnlyPtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_setmeshbboxonly"); + pWrapperTable->m_LevelSet_SetMeshBBoxOnly = (PLib3MFLevelSet_SetMeshBBoxOnlyPtr) GetProcAddress(hLibrary, "lib3mf_levelset_setmeshbboxonly"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_SetMeshBBoxOnly = (PLib3MFBoundaryShape_SetMeshBBoxOnlyPtr) dlsym(hLibrary, "lib3mf_boundaryshape_setmeshbboxonly"); + pWrapperTable->m_LevelSet_SetMeshBBoxOnly = (PLib3MFLevelSet_SetMeshBBoxOnlyPtr) dlsym(hLibrary, "lib3mf_levelset_setmeshbboxonly"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_SetMeshBBoxOnly == NULL) + if (pWrapperTable->m_LevelSet_SetMeshBBoxOnly == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_GetMeshBBoxOnly = (PLib3MFBoundaryShape_GetMeshBBoxOnlyPtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_getmeshbboxonly"); + pWrapperTable->m_LevelSet_GetMeshBBoxOnly = (PLib3MFLevelSet_GetMeshBBoxOnlyPtr) GetProcAddress(hLibrary, "lib3mf_levelset_getmeshbboxonly"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_GetMeshBBoxOnly = (PLib3MFBoundaryShape_GetMeshBBoxOnlyPtr) dlsym(hLibrary, "lib3mf_boundaryshape_getmeshbboxonly"); + pWrapperTable->m_LevelSet_GetMeshBBoxOnly = (PLib3MFLevelSet_GetMeshBBoxOnlyPtr) dlsym(hLibrary, "lib3mf_levelset_getmeshbboxonly"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_GetMeshBBoxOnly == NULL) + if (pWrapperTable->m_LevelSet_GetMeshBBoxOnly == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_SetMesh = (PLib3MFBoundaryShape_SetMeshPtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_setmesh"); + pWrapperTable->m_LevelSet_SetMesh = (PLib3MFLevelSet_SetMeshPtr) GetProcAddress(hLibrary, "lib3mf_levelset_setmesh"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_SetMesh = (PLib3MFBoundaryShape_SetMeshPtr) dlsym(hLibrary, "lib3mf_boundaryshape_setmesh"); + pWrapperTable->m_LevelSet_SetMesh = (PLib3MFLevelSet_SetMeshPtr) dlsym(hLibrary, "lib3mf_levelset_setmesh"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_SetMesh == NULL) + if (pWrapperTable->m_LevelSet_SetMesh == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_GetMesh = (PLib3MFBoundaryShape_GetMeshPtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_getmesh"); + pWrapperTable->m_LevelSet_GetMesh = (PLib3MFLevelSet_GetMeshPtr) GetProcAddress(hLibrary, "lib3mf_levelset_getmesh"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_GetMesh = (PLib3MFBoundaryShape_GetMeshPtr) dlsym(hLibrary, "lib3mf_boundaryshape_getmesh"); + pWrapperTable->m_LevelSet_GetMesh = (PLib3MFLevelSet_GetMeshPtr) dlsym(hLibrary, "lib3mf_levelset_getmesh"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_GetMesh == NULL) + if (pWrapperTable->m_LevelSet_GetMesh == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_GetVolumeData = (PLib3MFBoundaryShape_GetVolumeDataPtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_getvolumedata"); + pWrapperTable->m_LevelSet_GetVolumeData = (PLib3MFLevelSet_GetVolumeDataPtr) GetProcAddress(hLibrary, "lib3mf_levelset_getvolumedata"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_GetVolumeData = (PLib3MFBoundaryShape_GetVolumeDataPtr) dlsym(hLibrary, "lib3mf_boundaryshape_getvolumedata"); + pWrapperTable->m_LevelSet_GetVolumeData = (PLib3MFLevelSet_GetVolumeDataPtr) dlsym(hLibrary, "lib3mf_levelset_getvolumedata"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_GetVolumeData == NULL) + if (pWrapperTable->m_LevelSet_GetVolumeData == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_SetVolumeData = (PLib3MFBoundaryShape_SetVolumeDataPtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_setvolumedata"); + pWrapperTable->m_LevelSet_SetVolumeData = (PLib3MFLevelSet_SetVolumeDataPtr) GetProcAddress(hLibrary, "lib3mf_levelset_setvolumedata"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_SetVolumeData = (PLib3MFBoundaryShape_SetVolumeDataPtr) dlsym(hLibrary, "lib3mf_boundaryshape_setvolumedata"); + pWrapperTable->m_LevelSet_SetVolumeData = (PLib3MFLevelSet_SetVolumeDataPtr) dlsym(hLibrary, "lib3mf_levelset_setvolumedata"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_SetVolumeData == NULL) + if (pWrapperTable->m_LevelSet_SetVolumeData == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 @@ -5904,21 +5904,21 @@ Lib3MFResult LoadLib3MFWrapperTable(sLib3MFDynamicWrapperTable * pWrapperTable, return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_Model_AddBoundaryShape = (PLib3MFModel_AddBoundaryShapePtr) GetProcAddress(hLibrary, "lib3mf_model_addboundaryshape"); + pWrapperTable->m_Model_AddLevelSet = (PLib3MFModel_AddLevelSetPtr) GetProcAddress(hLibrary, "lib3mf_model_addlevelset"); #else // _WIN32 - pWrapperTable->m_Model_AddBoundaryShape = (PLib3MFModel_AddBoundaryShapePtr) dlsym(hLibrary, "lib3mf_model_addboundaryshape"); + pWrapperTable->m_Model_AddLevelSet = (PLib3MFModel_AddLevelSetPtr) dlsym(hLibrary, "lib3mf_model_addlevelset"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_Model_AddBoundaryShape == NULL) + if (pWrapperTable->m_Model_AddLevelSet == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_Model_GetBoundaryShapes = (PLib3MFModel_GetBoundaryShapesPtr) GetProcAddress(hLibrary, "lib3mf_model_getboundaryshapes"); + pWrapperTable->m_Model_GetLevelSets = (PLib3MFModel_GetLevelSetsPtr) GetProcAddress(hLibrary, "lib3mf_model_getlevelsets"); #else // _WIN32 - pWrapperTable->m_Model_GetBoundaryShapes = (PLib3MFModel_GetBoundaryShapesPtr) dlsym(hLibrary, "lib3mf_model_getboundaryshapes"); + pWrapperTable->m_Model_GetLevelSets = (PLib3MFModel_GetLevelSetsPtr) dlsym(hLibrary, "lib3mf_model_getlevelsets"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_Model_GetBoundaryShapes == NULL) + if (pWrapperTable->m_Model_GetLevelSets == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 diff --git a/Autogenerated/Bindings/Go/lib3mf_dynamic.h b/Autogenerated/Bindings/Go/lib3mf_dynamic.h index 797106a2a..e3c3f201b 100644 --- a/Autogenerated/Bindings/Go/lib3mf_dynamic.h +++ b/Autogenerated/Bindings/Go/lib3mf_dynamic.h @@ -589,17 +589,17 @@ typedef Lib3MFResult (*PLib3MFImage3DIterator_GetCurrentImage3DPtr) (Lib3MF_Imag typedef Lib3MFResult (*PLib3MFFunctionIterator_GetCurrentFunctionPtr) (Lib3MF_FunctionIterator pFunctionIterator, Lib3MF_Function * pResource); /************************************************************************************************************************* - Class definition for BoundaryShapeIterator + Class definition for LevelSetIterator **************************************************************************************************************************/ /** -* Returns the BoundaryShape the iterator points at. +* Returns the LevelSet the iterator points at. * -* @param[in] pBoundaryShapeIterator - BoundaryShapeIterator instance. +* @param[in] pLevelSetIterator - LevelSetIterator instance. * @param[out] pResource - returns the MeshObject instance. * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShapeIterator_GetCurrentBoundaryShapePtr) (Lib3MF_BoundaryShapeIterator pBoundaryShapeIterator, Lib3MF_BoundaryShape * pResource); +typedef Lib3MFResult (*PLib3MFLevelSetIterator_GetCurrentLevelSetPtr) (Lib3MF_LevelSetIterator pLevelSetIterator, Lib3MF_LevelSet * pResource); /************************************************************************************************************************* Class definition for MetaData @@ -1211,154 +1211,154 @@ typedef Lib3MFResult (*PLib3MFMeshObject_GetVolumeDataPtr) (Lib3MF_MeshObject pM typedef Lib3MFResult (*PLib3MFMeshObject_SetVolumeDataPtr) (Lib3MF_MeshObject pMeshObject, Lib3MF_VolumeData pTheVolumeData); /************************************************************************************************************************* - Class definition for BoundaryShape + Class definition for LevelSet **************************************************************************************************************************/ /** * Returns the function that is used as boundary shape. * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[out] pTheFunction - the function to use as boundary shape * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_GetFunctionPtr) (Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_Function * pTheFunction); +typedef Lib3MFResult (*PLib3MFLevelSet_GetFunctionPtr) (Lib3MF_LevelSet pLevelSet, Lib3MF_Function * pTheFunction); /** * Sets the function to use as boundary shape. * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] pTheFunction - the function to use as boundary shape * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_SetFunctionPtr) (Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_Function pTheFunction); +typedef Lib3MFResult (*PLib3MFLevelSet_SetFunctionPtr) (Lib3MF_LevelSet pLevelSet, Lib3MF_Function pTheFunction); /** * Returns the transformation matrix into the coordinate system of the referenced Function. * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[out] pTransform - the transformation matrix * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_GetTransformPtr) (Lib3MF_BoundaryShape pBoundaryShape, sLib3MFTransform * pTransform); +typedef Lib3MFResult (*PLib3MFLevelSet_GetTransformPtr) (Lib3MF_LevelSet pLevelSet, sLib3MFTransform * pTransform); /** * Sets the transformation matrix into the coordinate system of the referenced Function. * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] pTransform - new transformation matrix * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_SetTransformPtr) (Lib3MF_BoundaryShape pBoundaryShape, const sLib3MFTransform * pTransform); +typedef Lib3MFResult (*PLib3MFLevelSet_SetTransformPtr) (Lib3MF_LevelSet pLevelSet, const sLib3MFTransform * pTransform); /** * Returns the name of the function output channel to use. * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] nChannelNameBufferSize - size of the buffer (including trailing 0) * @param[out] pChannelNameNeededChars - will be filled with the count of the written bytes, or needed buffer size. * @param[out] pChannelNameBuffer - buffer of the name of the function output channel, may be NULL * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_GetChannelNamePtr) (Lib3MF_BoundaryShape pBoundaryShape, const Lib3MF_uint32 nChannelNameBufferSize, Lib3MF_uint32* pChannelNameNeededChars, char * pChannelNameBuffer); +typedef Lib3MFResult (*PLib3MFLevelSet_GetChannelNamePtr) (Lib3MF_LevelSet pLevelSet, const Lib3MF_uint32 nChannelNameBufferSize, Lib3MF_uint32* pChannelNameNeededChars, char * pChannelNameBuffer); /** * Sets the name of the function output channel to use. * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] pChannelName - new name of the function output channel * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_SetChannelNamePtr) (Lib3MF_BoundaryShape pBoundaryShape, const char * pChannelName); +typedef Lib3MFResult (*PLib3MFLevelSet_SetChannelNamePtr) (Lib3MF_LevelSet pLevelSet, const char * pChannelName); /** * Sets the minimal feature size as a hint for the function evaluator * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] dMinFeatureSize - minimal feature size * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_SetMinFeatureSizePtr) (Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_double dMinFeatureSize); +typedef Lib3MFResult (*PLib3MFLevelSet_SetMinFeatureSizePtr) (Lib3MF_LevelSet pLevelSet, Lib3MF_double dMinFeatureSize); /** * Returns the minimal feature size as a hint for the function evaluator * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[out] pMinFeatureSize - minimal feature size * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_GetMinFeatureSizePtr) (Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_double * pMinFeatureSize); +typedef Lib3MFResult (*PLib3MFLevelSet_GetMinFeatureSizePtr) (Lib3MF_LevelSet pLevelSet, Lib3MF_double * pMinFeatureSize); /** * Sets the fallback value to use if the function evaluation fails (e.g. evaluates to NaN or Inf). * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] dFallBackValue - fallback value * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_SetFallBackValuePtr) (Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_double dFallBackValue); +typedef Lib3MFResult (*PLib3MFLevelSet_SetFallBackValuePtr) (Lib3MF_LevelSet pLevelSet, Lib3MF_double dFallBackValue); /** * Returns the fallback value to use if the function evaluation fails (e.g. evaluates to NaN or Inf). * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[out] pFallBackValue - fallback value * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_GetFallBackValuePtr) (Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_double * pFallBackValue); +typedef Lib3MFResult (*PLib3MFLevelSet_GetFallBackValuePtr) (Lib3MF_LevelSet pLevelSet, Lib3MF_double * pFallBackValue); /** * If set only the bounding box of the mesh is intersected with the boundary * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] bMeshBBoxOnly - If set only the bounding box of the mesh is intersected with the boundary * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_SetMeshBBoxOnlyPtr) (Lib3MF_BoundaryShape pBoundaryShape, bool bMeshBBoxOnly); +typedef Lib3MFResult (*PLib3MFLevelSet_SetMeshBBoxOnlyPtr) (Lib3MF_LevelSet pLevelSet, bool bMeshBBoxOnly); /** * If set only the bounding box of the mesh is intersected with the boundary * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[out] pMeshBBoxOnly - If set only the bounding box of the mesh is intersected with the boundary * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_GetMeshBBoxOnlyPtr) (Lib3MF_BoundaryShape pBoundaryShape, bool * pMeshBBoxOnly); +typedef Lib3MFResult (*PLib3MFLevelSet_GetMeshBBoxOnlyPtr) (Lib3MF_LevelSet pLevelSet, bool * pMeshBBoxOnly); /** * Sets the mesh to use as evaluation domain * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] pTheMesh - The mesh * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_SetMeshPtr) (Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_MeshObject pTheMesh); +typedef Lib3MFResult (*PLib3MFLevelSet_SetMeshPtr) (Lib3MF_LevelSet pLevelSet, Lib3MF_MeshObject pTheMesh); /** * Returns the mesh that is used as evaluation domain * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[out] pTheMesh - The mesh * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_GetMeshPtr) (Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_MeshObject * pTheMesh); +typedef Lib3MFResult (*PLib3MFLevelSet_GetMeshPtr) (Lib3MF_LevelSet pLevelSet, Lib3MF_MeshObject * pTheMesh); /** * Retrieves the VolumeData this MeshObject. * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[out] pTheVolumeData - the VolumeData of this MeshObject * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_GetVolumeDataPtr) (Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_VolumeData * pTheVolumeData); +typedef Lib3MFResult (*PLib3MFLevelSet_GetVolumeDataPtr) (Lib3MF_LevelSet pLevelSet, Lib3MF_VolumeData * pTheVolumeData); /** -* Sets the VolumeData of this BoundaryShape. +* Sets the VolumeData of this LevelSet. * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] pTheVolumeData - the VolumeData of this MeshObject * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_SetVolumeDataPtr) (Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_VolumeData pTheVolumeData); +typedef Lib3MFResult (*PLib3MFLevelSet_SetVolumeDataPtr) (Lib3MF_LevelSet pLevelSet, Lib3MF_VolumeData pTheVolumeData); /************************************************************************************************************************* Class definition for BeamLattice @@ -6194,10 +6194,10 @@ typedef Lib3MFResult (*PLib3MFModel_AddVolumeDataPtr) (Lib3MF_Model pModel, Lib3 * adds an empty boundary shape object to the model. * * @param[in] pModel - Model instance. -* @param[out] pBoundaryShapeInstance - returns the mesh object instance +* @param[out] pLevelSetInstance - returns the mesh object instance * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFModel_AddBoundaryShapePtr) (Lib3MF_Model pModel, Lib3MF_BoundaryShape * pBoundaryShapeInstance); +typedef Lib3MFResult (*PLib3MFModel_AddLevelSetPtr) (Lib3MF_Model pModel, Lib3MF_LevelSet * pLevelSetInstance); /** * creates a resource iterator instance with all boundary shape resources. @@ -6206,7 +6206,7 @@ typedef Lib3MFResult (*PLib3MFModel_AddBoundaryShapePtr) (Lib3MF_Model pModel, L * @param[out] pResourceIterator - returns the iterator instance. * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFModel_GetBoundaryShapesPtr) (Lib3MF_Model pModel, Lib3MF_BoundaryShapeIterator * pResourceIterator); +typedef Lib3MFResult (*PLib3MFModel_GetLevelSetsPtr) (Lib3MF_Model pModel, Lib3MF_LevelSetIterator * pResourceIterator); /************************************************************************************************************************* Global functions @@ -6462,7 +6462,7 @@ typedef struct { PLib3MFMultiPropertyGroupIterator_GetCurrentMultiPropertyGroupPtr m_MultiPropertyGroupIterator_GetCurrentMultiPropertyGroup; PLib3MFImage3DIterator_GetCurrentImage3DPtr m_Image3DIterator_GetCurrentImage3D; PLib3MFFunctionIterator_GetCurrentFunctionPtr m_FunctionIterator_GetCurrentFunction; - PLib3MFBoundaryShapeIterator_GetCurrentBoundaryShapePtr m_BoundaryShapeIterator_GetCurrentBoundaryShape; + PLib3MFLevelSetIterator_GetCurrentLevelSetPtr m_LevelSetIterator_GetCurrentLevelSet; PLib3MFMetaData_GetNameSpacePtr m_MetaData_GetNameSpace; PLib3MFMetaData_SetNameSpacePtr m_MetaData_SetNameSpace; PLib3MFMetaData_GetNamePtr m_MetaData_GetName; @@ -6524,22 +6524,22 @@ typedef struct { PLib3MFMeshObject_BeamLatticePtr m_MeshObject_BeamLattice; PLib3MFMeshObject_GetVolumeDataPtr m_MeshObject_GetVolumeData; PLib3MFMeshObject_SetVolumeDataPtr m_MeshObject_SetVolumeData; - PLib3MFBoundaryShape_GetFunctionPtr m_BoundaryShape_GetFunction; - PLib3MFBoundaryShape_SetFunctionPtr m_BoundaryShape_SetFunction; - PLib3MFBoundaryShape_GetTransformPtr m_BoundaryShape_GetTransform; - PLib3MFBoundaryShape_SetTransformPtr m_BoundaryShape_SetTransform; - PLib3MFBoundaryShape_GetChannelNamePtr m_BoundaryShape_GetChannelName; - PLib3MFBoundaryShape_SetChannelNamePtr m_BoundaryShape_SetChannelName; - PLib3MFBoundaryShape_SetMinFeatureSizePtr m_BoundaryShape_SetMinFeatureSize; - PLib3MFBoundaryShape_GetMinFeatureSizePtr m_BoundaryShape_GetMinFeatureSize; - PLib3MFBoundaryShape_SetFallBackValuePtr m_BoundaryShape_SetFallBackValue; - PLib3MFBoundaryShape_GetFallBackValuePtr m_BoundaryShape_GetFallBackValue; - PLib3MFBoundaryShape_SetMeshBBoxOnlyPtr m_BoundaryShape_SetMeshBBoxOnly; - PLib3MFBoundaryShape_GetMeshBBoxOnlyPtr m_BoundaryShape_GetMeshBBoxOnly; - PLib3MFBoundaryShape_SetMeshPtr m_BoundaryShape_SetMesh; - PLib3MFBoundaryShape_GetMeshPtr m_BoundaryShape_GetMesh; - PLib3MFBoundaryShape_GetVolumeDataPtr m_BoundaryShape_GetVolumeData; - PLib3MFBoundaryShape_SetVolumeDataPtr m_BoundaryShape_SetVolumeData; + PLib3MFLevelSet_GetFunctionPtr m_LevelSet_GetFunction; + PLib3MFLevelSet_SetFunctionPtr m_LevelSet_SetFunction; + PLib3MFLevelSet_GetTransformPtr m_LevelSet_GetTransform; + PLib3MFLevelSet_SetTransformPtr m_LevelSet_SetTransform; + PLib3MFLevelSet_GetChannelNamePtr m_LevelSet_GetChannelName; + PLib3MFLevelSet_SetChannelNamePtr m_LevelSet_SetChannelName; + PLib3MFLevelSet_SetMinFeatureSizePtr m_LevelSet_SetMinFeatureSize; + PLib3MFLevelSet_GetMinFeatureSizePtr m_LevelSet_GetMinFeatureSize; + PLib3MFLevelSet_SetFallBackValuePtr m_LevelSet_SetFallBackValue; + PLib3MFLevelSet_GetFallBackValuePtr m_LevelSet_GetFallBackValue; + PLib3MFLevelSet_SetMeshBBoxOnlyPtr m_LevelSet_SetMeshBBoxOnly; + PLib3MFLevelSet_GetMeshBBoxOnlyPtr m_LevelSet_GetMeshBBoxOnly; + PLib3MFLevelSet_SetMeshPtr m_LevelSet_SetMesh; + PLib3MFLevelSet_GetMeshPtr m_LevelSet_GetMesh; + PLib3MFLevelSet_GetVolumeDataPtr m_LevelSet_GetVolumeData; + PLib3MFLevelSet_SetVolumeDataPtr m_LevelSet_SetVolumeData; PLib3MFBeamLattice_GetMinLengthPtr m_BeamLattice_GetMinLength; PLib3MFBeamLattice_SetMinLengthPtr m_BeamLattice_SetMinLength; PLib3MFBeamLattice_GetClippingPtr m_BeamLattice_GetClipping; @@ -6990,8 +6990,8 @@ typedef struct { PLib3MFModel_AddImplicitFunctionPtr m_Model_AddImplicitFunction; PLib3MFModel_AddFunctionFromImage3DPtr m_Model_AddFunctionFromImage3D; PLib3MFModel_AddVolumeDataPtr m_Model_AddVolumeData; - PLib3MFModel_AddBoundaryShapePtr m_Model_AddBoundaryShape; - PLib3MFModel_GetBoundaryShapesPtr m_Model_GetBoundaryShapes; + PLib3MFModel_AddLevelSetPtr m_Model_AddLevelSet; + PLib3MFModel_GetLevelSetsPtr m_Model_GetLevelSets; PLib3MFGetLibraryVersionPtr m_GetLibraryVersion; PLib3MFGetPrereleaseInformationPtr m_GetPrereleaseInformation; PLib3MFGetBuildInformationPtr m_GetBuildInformation; diff --git a/Autogenerated/Bindings/Go/lib3mf_impl.go b/Autogenerated/Bindings/Go/lib3mf_impl.go index 67e99dbe1..ffb4ab72a 100644 --- a/Autogenerated/Bindings/Go/lib3mf_impl.go +++ b/Autogenerated/Bindings/Go/lib3mf_impl.go @@ -6939,46 +6939,46 @@ func (implementation *Lib3MFImplementation) VolumeDataProperty_IsRequired(Volume func (implementation *Lib3MFImplementation) VolumeData_GetBoundary(VolumeData Lib3MFHandle) (Lib3MFHandle, error) { var err error = nil - hTheBoundaryData := implementation.NewHandle() + hTheLevelSetData := implementation.NewHandle() implementation_volumedata, err := implementation.GetWrapperHandle(VolumeData) if (err != nil) { - return hTheBoundaryData, err + return hTheLevelSetData, err } - err = implementation.CallFunction(implementation.Lib3MF_volumedata_getboundary, implementation_volumedata.GetDLLInHandle(), hTheBoundaryData.GetDLLOutHandle()) + err = implementation.CallFunction(implementation.Lib3MF_volumedata_getboundary, implementation_volumedata.GetDLLInHandle(), hTheLevelSetData.GetDLLOutHandle()) if (err != nil) { - return hTheBoundaryData, err + return hTheLevelSetData, err } - return hTheBoundaryData, err + return hTheLevelSetData, err } func (implementation *Lib3MFImplementation) VolumeData_CreateNewBoundary(VolumeData Lib3MFHandle, TheScalarField Lib3MFHandle) (Lib3MFHandle, error) { var err error = nil - hTheBoundaryData := implementation.NewHandle() + hTheLevelSetData := implementation.NewHandle() implementation_volumedata, err := implementation.GetWrapperHandle(VolumeData) if (err != nil) { - return hTheBoundaryData, err + return hTheLevelSetData, err } implementation_thescalarfield, err := implementation.GetWrapperHandle(TheScalarField) if (err != nil) { - return hTheBoundaryData, err + return hTheLevelSetData, err } TheScalarFieldDLLHandle := implementation_thescalarfield.GetDLLInHandle() if (TheScalarFieldDLLHandle == 0) { err := fmt.Errorf("Handle must not be 0.") - return hTheBoundaryData, err + return hTheLevelSetData, err } - err = implementation.CallFunction(implementation.Lib3MF_volumedata_createnewboundary, implementation_volumedata.GetDLLInHandle(), TheScalarFieldDLLHandle, hTheBoundaryData.GetDLLOutHandle()) + err = implementation.CallFunction(implementation.Lib3MF_volumedata_createnewboundary, implementation_volumedata.GetDLLInHandle(), TheScalarFieldDLLHandle, hTheLevelSetData.GetDLLOutHandle()) if (err != nil) { - return hTheBoundaryData, err + return hTheLevelSetData, err } - return hTheBoundaryData, err + return hTheLevelSetData, err } func (implementation *Lib3MFImplementation) VolumeData_RemoveBoundary(VolumeData Lib3MFHandle) (error) { diff --git a/Autogenerated/Bindings/Go/lib3mf_types.h b/Autogenerated/Bindings/Go/lib3mf_types.h index 924d2a66f..4e858bf19 100644 --- a/Autogenerated/Bindings/Go/lib3mf_types.h +++ b/Autogenerated/Bindings/Go/lib3mf_types.h @@ -222,12 +222,12 @@ typedef Lib3MFHandle Lib3MF_CompositeMaterialsIterator; typedef Lib3MFHandle Lib3MF_MultiPropertyGroupIterator; typedef Lib3MFHandle Lib3MF_Image3DIterator; typedef Lib3MFHandle Lib3MF_FunctionIterator; -typedef Lib3MFHandle Lib3MF_BoundaryShapeIterator; +typedef Lib3MFHandle Lib3MF_LevelSetIterator; typedef Lib3MFHandle Lib3MF_MetaData; typedef Lib3MFHandle Lib3MF_MetaDataGroup; typedef Lib3MFHandle Lib3MF_Object; typedef Lib3MFHandle Lib3MF_MeshObject; -typedef Lib3MFHandle Lib3MF_BoundaryShape; +typedef Lib3MFHandle Lib3MF_LevelSet; typedef Lib3MFHandle Lib3MF_BeamLattice; typedef Lib3MFHandle Lib3MF_FunctionReference; typedef Lib3MFHandle Lib3MF_VolumeDataColor; diff --git a/Autogenerated/Bindings/NodeJS/lib3mf_dynamic.cc b/Autogenerated/Bindings/NodeJS/lib3mf_dynamic.cc index ee1146da6..ec45f5118 100644 --- a/Autogenerated/Bindings/NodeJS/lib3mf_dynamic.cc +++ b/Autogenerated/Bindings/NodeJS/lib3mf_dynamic.cc @@ -98,7 +98,7 @@ Lib3MFResult InitLib3MFWrapperTable(sLib3MFDynamicWrapperTable * pWrapperTable) pWrapperTable->m_MultiPropertyGroupIterator_GetCurrentMultiPropertyGroup = NULL; pWrapperTable->m_Image3DIterator_GetCurrentImage3D = NULL; pWrapperTable->m_FunctionIterator_GetCurrentFunction = NULL; - pWrapperTable->m_BoundaryShapeIterator_GetCurrentBoundaryShape = NULL; + pWrapperTable->m_LevelSetIterator_GetCurrentLevelSet = NULL; pWrapperTable->m_MetaData_GetNameSpace = NULL; pWrapperTable->m_MetaData_SetNameSpace = NULL; pWrapperTable->m_MetaData_GetName = NULL; @@ -160,22 +160,22 @@ Lib3MFResult InitLib3MFWrapperTable(sLib3MFDynamicWrapperTable * pWrapperTable) pWrapperTable->m_MeshObject_BeamLattice = NULL; pWrapperTable->m_MeshObject_GetVolumeData = NULL; pWrapperTable->m_MeshObject_SetVolumeData = NULL; - pWrapperTable->m_BoundaryShape_GetFunction = NULL; - pWrapperTable->m_BoundaryShape_SetFunction = NULL; - pWrapperTable->m_BoundaryShape_GetTransform = NULL; - pWrapperTable->m_BoundaryShape_SetTransform = NULL; - pWrapperTable->m_BoundaryShape_GetChannelName = NULL; - pWrapperTable->m_BoundaryShape_SetChannelName = NULL; - pWrapperTable->m_BoundaryShape_SetMinFeatureSize = NULL; - pWrapperTable->m_BoundaryShape_GetMinFeatureSize = NULL; - pWrapperTable->m_BoundaryShape_SetFallBackValue = NULL; - pWrapperTable->m_BoundaryShape_GetFallBackValue = NULL; - pWrapperTable->m_BoundaryShape_SetMeshBBoxOnly = NULL; - pWrapperTable->m_BoundaryShape_GetMeshBBoxOnly = NULL; - pWrapperTable->m_BoundaryShape_SetMesh = NULL; - pWrapperTable->m_BoundaryShape_GetMesh = NULL; - pWrapperTable->m_BoundaryShape_GetVolumeData = NULL; - pWrapperTable->m_BoundaryShape_SetVolumeData = NULL; + pWrapperTable->m_LevelSet_GetFunction = NULL; + pWrapperTable->m_LevelSet_SetFunction = NULL; + pWrapperTable->m_LevelSet_GetTransform = NULL; + pWrapperTable->m_LevelSet_SetTransform = NULL; + pWrapperTable->m_LevelSet_GetChannelName = NULL; + pWrapperTable->m_LevelSet_SetChannelName = NULL; + pWrapperTable->m_LevelSet_SetMinFeatureSize = NULL; + pWrapperTable->m_LevelSet_GetMinFeatureSize = NULL; + pWrapperTable->m_LevelSet_SetFallBackValue = NULL; + pWrapperTable->m_LevelSet_GetFallBackValue = NULL; + pWrapperTable->m_LevelSet_SetMeshBBoxOnly = NULL; + pWrapperTable->m_LevelSet_GetMeshBBoxOnly = NULL; + pWrapperTable->m_LevelSet_SetMesh = NULL; + pWrapperTable->m_LevelSet_GetMesh = NULL; + pWrapperTable->m_LevelSet_GetVolumeData = NULL; + pWrapperTable->m_LevelSet_SetVolumeData = NULL; pWrapperTable->m_BeamLattice_GetMinLength = NULL; pWrapperTable->m_BeamLattice_SetMinLength = NULL; pWrapperTable->m_BeamLattice_GetClipping = NULL; @@ -626,8 +626,8 @@ Lib3MFResult InitLib3MFWrapperTable(sLib3MFDynamicWrapperTable * pWrapperTable) pWrapperTable->m_Model_AddImplicitFunction = NULL; pWrapperTable->m_Model_AddFunctionFromImage3D = NULL; pWrapperTable->m_Model_AddVolumeData = NULL; - pWrapperTable->m_Model_AddBoundaryShape = NULL; - pWrapperTable->m_Model_GetBoundaryShapes = NULL; + pWrapperTable->m_Model_AddLevelSet = NULL; + pWrapperTable->m_Model_GetLevelSets = NULL; pWrapperTable->m_GetLibraryVersion = NULL; pWrapperTable->m_GetPrereleaseInformation = NULL; pWrapperTable->m_GetBuildInformation = NULL; @@ -1152,12 +1152,12 @@ Lib3MFResult LoadLib3MFWrapperTable(sLib3MFDynamicWrapperTable * pWrapperTable, return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShapeIterator_GetCurrentBoundaryShape = (PLib3MFBoundaryShapeIterator_GetCurrentBoundaryShapePtr) GetProcAddress(hLibrary, "lib3mf_boundaryshapeiterator_getcurrentboundaryshape"); + pWrapperTable->m_LevelSetIterator_GetCurrentLevelSet = (PLib3MFLevelSetIterator_GetCurrentLevelSetPtr) GetProcAddress(hLibrary, "lib3mf_levelsetiterator_getcurrentlevelset"); #else // _WIN32 - pWrapperTable->m_BoundaryShapeIterator_GetCurrentBoundaryShape = (PLib3MFBoundaryShapeIterator_GetCurrentBoundaryShapePtr) dlsym(hLibrary, "lib3mf_boundaryshapeiterator_getcurrentboundaryshape"); + pWrapperTable->m_LevelSetIterator_GetCurrentLevelSet = (PLib3MFLevelSetIterator_GetCurrentLevelSetPtr) dlsym(hLibrary, "lib3mf_levelsetiterator_getcurrentlevelset"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShapeIterator_GetCurrentBoundaryShape == NULL) + if (pWrapperTable->m_LevelSetIterator_GetCurrentLevelSet == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 @@ -1710,147 +1710,147 @@ Lib3MFResult LoadLib3MFWrapperTable(sLib3MFDynamicWrapperTable * pWrapperTable, return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_GetFunction = (PLib3MFBoundaryShape_GetFunctionPtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_getfunction"); + pWrapperTable->m_LevelSet_GetFunction = (PLib3MFLevelSet_GetFunctionPtr) GetProcAddress(hLibrary, "lib3mf_levelset_getfunction"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_GetFunction = (PLib3MFBoundaryShape_GetFunctionPtr) dlsym(hLibrary, "lib3mf_boundaryshape_getfunction"); + pWrapperTable->m_LevelSet_GetFunction = (PLib3MFLevelSet_GetFunctionPtr) dlsym(hLibrary, "lib3mf_levelset_getfunction"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_GetFunction == NULL) + if (pWrapperTable->m_LevelSet_GetFunction == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_SetFunction = (PLib3MFBoundaryShape_SetFunctionPtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_setfunction"); + pWrapperTable->m_LevelSet_SetFunction = (PLib3MFLevelSet_SetFunctionPtr) GetProcAddress(hLibrary, "lib3mf_levelset_setfunction"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_SetFunction = (PLib3MFBoundaryShape_SetFunctionPtr) dlsym(hLibrary, "lib3mf_boundaryshape_setfunction"); + pWrapperTable->m_LevelSet_SetFunction = (PLib3MFLevelSet_SetFunctionPtr) dlsym(hLibrary, "lib3mf_levelset_setfunction"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_SetFunction == NULL) + if (pWrapperTable->m_LevelSet_SetFunction == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_GetTransform = (PLib3MFBoundaryShape_GetTransformPtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_gettransform"); + pWrapperTable->m_LevelSet_GetTransform = (PLib3MFLevelSet_GetTransformPtr) GetProcAddress(hLibrary, "lib3mf_levelset_gettransform"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_GetTransform = (PLib3MFBoundaryShape_GetTransformPtr) dlsym(hLibrary, "lib3mf_boundaryshape_gettransform"); + pWrapperTable->m_LevelSet_GetTransform = (PLib3MFLevelSet_GetTransformPtr) dlsym(hLibrary, "lib3mf_levelset_gettransform"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_GetTransform == NULL) + if (pWrapperTable->m_LevelSet_GetTransform == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_SetTransform = (PLib3MFBoundaryShape_SetTransformPtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_settransform"); + pWrapperTable->m_LevelSet_SetTransform = (PLib3MFLevelSet_SetTransformPtr) GetProcAddress(hLibrary, "lib3mf_levelset_settransform"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_SetTransform = (PLib3MFBoundaryShape_SetTransformPtr) dlsym(hLibrary, "lib3mf_boundaryshape_settransform"); + pWrapperTable->m_LevelSet_SetTransform = (PLib3MFLevelSet_SetTransformPtr) dlsym(hLibrary, "lib3mf_levelset_settransform"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_SetTransform == NULL) + if (pWrapperTable->m_LevelSet_SetTransform == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_GetChannelName = (PLib3MFBoundaryShape_GetChannelNamePtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_getchannelname"); + pWrapperTable->m_LevelSet_GetChannelName = (PLib3MFLevelSet_GetChannelNamePtr) GetProcAddress(hLibrary, "lib3mf_levelset_getchannelname"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_GetChannelName = (PLib3MFBoundaryShape_GetChannelNamePtr) dlsym(hLibrary, "lib3mf_boundaryshape_getchannelname"); + pWrapperTable->m_LevelSet_GetChannelName = (PLib3MFLevelSet_GetChannelNamePtr) dlsym(hLibrary, "lib3mf_levelset_getchannelname"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_GetChannelName == NULL) + if (pWrapperTable->m_LevelSet_GetChannelName == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_SetChannelName = (PLib3MFBoundaryShape_SetChannelNamePtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_setchannelname"); + pWrapperTable->m_LevelSet_SetChannelName = (PLib3MFLevelSet_SetChannelNamePtr) GetProcAddress(hLibrary, "lib3mf_levelset_setchannelname"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_SetChannelName = (PLib3MFBoundaryShape_SetChannelNamePtr) dlsym(hLibrary, "lib3mf_boundaryshape_setchannelname"); + pWrapperTable->m_LevelSet_SetChannelName = (PLib3MFLevelSet_SetChannelNamePtr) dlsym(hLibrary, "lib3mf_levelset_setchannelname"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_SetChannelName == NULL) + if (pWrapperTable->m_LevelSet_SetChannelName == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_SetMinFeatureSize = (PLib3MFBoundaryShape_SetMinFeatureSizePtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_setminfeaturesize"); + pWrapperTable->m_LevelSet_SetMinFeatureSize = (PLib3MFLevelSet_SetMinFeatureSizePtr) GetProcAddress(hLibrary, "lib3mf_levelset_setminfeaturesize"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_SetMinFeatureSize = (PLib3MFBoundaryShape_SetMinFeatureSizePtr) dlsym(hLibrary, "lib3mf_boundaryshape_setminfeaturesize"); + pWrapperTable->m_LevelSet_SetMinFeatureSize = (PLib3MFLevelSet_SetMinFeatureSizePtr) dlsym(hLibrary, "lib3mf_levelset_setminfeaturesize"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_SetMinFeatureSize == NULL) + if (pWrapperTable->m_LevelSet_SetMinFeatureSize == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_GetMinFeatureSize = (PLib3MFBoundaryShape_GetMinFeatureSizePtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_getminfeaturesize"); + pWrapperTable->m_LevelSet_GetMinFeatureSize = (PLib3MFLevelSet_GetMinFeatureSizePtr) GetProcAddress(hLibrary, "lib3mf_levelset_getminfeaturesize"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_GetMinFeatureSize = (PLib3MFBoundaryShape_GetMinFeatureSizePtr) dlsym(hLibrary, "lib3mf_boundaryshape_getminfeaturesize"); + pWrapperTable->m_LevelSet_GetMinFeatureSize = (PLib3MFLevelSet_GetMinFeatureSizePtr) dlsym(hLibrary, "lib3mf_levelset_getminfeaturesize"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_GetMinFeatureSize == NULL) + if (pWrapperTable->m_LevelSet_GetMinFeatureSize == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_SetFallBackValue = (PLib3MFBoundaryShape_SetFallBackValuePtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_setfallbackvalue"); + pWrapperTable->m_LevelSet_SetFallBackValue = (PLib3MFLevelSet_SetFallBackValuePtr) GetProcAddress(hLibrary, "lib3mf_levelset_setfallbackvalue"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_SetFallBackValue = (PLib3MFBoundaryShape_SetFallBackValuePtr) dlsym(hLibrary, "lib3mf_boundaryshape_setfallbackvalue"); + pWrapperTable->m_LevelSet_SetFallBackValue = (PLib3MFLevelSet_SetFallBackValuePtr) dlsym(hLibrary, "lib3mf_levelset_setfallbackvalue"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_SetFallBackValue == NULL) + if (pWrapperTable->m_LevelSet_SetFallBackValue == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_GetFallBackValue = (PLib3MFBoundaryShape_GetFallBackValuePtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_getfallbackvalue"); + pWrapperTable->m_LevelSet_GetFallBackValue = (PLib3MFLevelSet_GetFallBackValuePtr) GetProcAddress(hLibrary, "lib3mf_levelset_getfallbackvalue"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_GetFallBackValue = (PLib3MFBoundaryShape_GetFallBackValuePtr) dlsym(hLibrary, "lib3mf_boundaryshape_getfallbackvalue"); + pWrapperTable->m_LevelSet_GetFallBackValue = (PLib3MFLevelSet_GetFallBackValuePtr) dlsym(hLibrary, "lib3mf_levelset_getfallbackvalue"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_GetFallBackValue == NULL) + if (pWrapperTable->m_LevelSet_GetFallBackValue == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_SetMeshBBoxOnly = (PLib3MFBoundaryShape_SetMeshBBoxOnlyPtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_setmeshbboxonly"); + pWrapperTable->m_LevelSet_SetMeshBBoxOnly = (PLib3MFLevelSet_SetMeshBBoxOnlyPtr) GetProcAddress(hLibrary, "lib3mf_levelset_setmeshbboxonly"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_SetMeshBBoxOnly = (PLib3MFBoundaryShape_SetMeshBBoxOnlyPtr) dlsym(hLibrary, "lib3mf_boundaryshape_setmeshbboxonly"); + pWrapperTable->m_LevelSet_SetMeshBBoxOnly = (PLib3MFLevelSet_SetMeshBBoxOnlyPtr) dlsym(hLibrary, "lib3mf_levelset_setmeshbboxonly"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_SetMeshBBoxOnly == NULL) + if (pWrapperTable->m_LevelSet_SetMeshBBoxOnly == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_GetMeshBBoxOnly = (PLib3MFBoundaryShape_GetMeshBBoxOnlyPtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_getmeshbboxonly"); + pWrapperTable->m_LevelSet_GetMeshBBoxOnly = (PLib3MFLevelSet_GetMeshBBoxOnlyPtr) GetProcAddress(hLibrary, "lib3mf_levelset_getmeshbboxonly"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_GetMeshBBoxOnly = (PLib3MFBoundaryShape_GetMeshBBoxOnlyPtr) dlsym(hLibrary, "lib3mf_boundaryshape_getmeshbboxonly"); + pWrapperTable->m_LevelSet_GetMeshBBoxOnly = (PLib3MFLevelSet_GetMeshBBoxOnlyPtr) dlsym(hLibrary, "lib3mf_levelset_getmeshbboxonly"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_GetMeshBBoxOnly == NULL) + if (pWrapperTable->m_LevelSet_GetMeshBBoxOnly == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_SetMesh = (PLib3MFBoundaryShape_SetMeshPtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_setmesh"); + pWrapperTable->m_LevelSet_SetMesh = (PLib3MFLevelSet_SetMeshPtr) GetProcAddress(hLibrary, "lib3mf_levelset_setmesh"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_SetMesh = (PLib3MFBoundaryShape_SetMeshPtr) dlsym(hLibrary, "lib3mf_boundaryshape_setmesh"); + pWrapperTable->m_LevelSet_SetMesh = (PLib3MFLevelSet_SetMeshPtr) dlsym(hLibrary, "lib3mf_levelset_setmesh"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_SetMesh == NULL) + if (pWrapperTable->m_LevelSet_SetMesh == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_GetMesh = (PLib3MFBoundaryShape_GetMeshPtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_getmesh"); + pWrapperTable->m_LevelSet_GetMesh = (PLib3MFLevelSet_GetMeshPtr) GetProcAddress(hLibrary, "lib3mf_levelset_getmesh"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_GetMesh = (PLib3MFBoundaryShape_GetMeshPtr) dlsym(hLibrary, "lib3mf_boundaryshape_getmesh"); + pWrapperTable->m_LevelSet_GetMesh = (PLib3MFLevelSet_GetMeshPtr) dlsym(hLibrary, "lib3mf_levelset_getmesh"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_GetMesh == NULL) + if (pWrapperTable->m_LevelSet_GetMesh == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_GetVolumeData = (PLib3MFBoundaryShape_GetVolumeDataPtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_getvolumedata"); + pWrapperTable->m_LevelSet_GetVolumeData = (PLib3MFLevelSet_GetVolumeDataPtr) GetProcAddress(hLibrary, "lib3mf_levelset_getvolumedata"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_GetVolumeData = (PLib3MFBoundaryShape_GetVolumeDataPtr) dlsym(hLibrary, "lib3mf_boundaryshape_getvolumedata"); + pWrapperTable->m_LevelSet_GetVolumeData = (PLib3MFLevelSet_GetVolumeDataPtr) dlsym(hLibrary, "lib3mf_levelset_getvolumedata"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_GetVolumeData == NULL) + if (pWrapperTable->m_LevelSet_GetVolumeData == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_BoundaryShape_SetVolumeData = (PLib3MFBoundaryShape_SetVolumeDataPtr) GetProcAddress(hLibrary, "lib3mf_boundaryshape_setvolumedata"); + pWrapperTable->m_LevelSet_SetVolumeData = (PLib3MFLevelSet_SetVolumeDataPtr) GetProcAddress(hLibrary, "lib3mf_levelset_setvolumedata"); #else // _WIN32 - pWrapperTable->m_BoundaryShape_SetVolumeData = (PLib3MFBoundaryShape_SetVolumeDataPtr) dlsym(hLibrary, "lib3mf_boundaryshape_setvolumedata"); + pWrapperTable->m_LevelSet_SetVolumeData = (PLib3MFLevelSet_SetVolumeDataPtr) dlsym(hLibrary, "lib3mf_levelset_setvolumedata"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_BoundaryShape_SetVolumeData == NULL) + if (pWrapperTable->m_LevelSet_SetVolumeData == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 @@ -5904,21 +5904,21 @@ Lib3MFResult LoadLib3MFWrapperTable(sLib3MFDynamicWrapperTable * pWrapperTable, return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_Model_AddBoundaryShape = (PLib3MFModel_AddBoundaryShapePtr) GetProcAddress(hLibrary, "lib3mf_model_addboundaryshape"); + pWrapperTable->m_Model_AddLevelSet = (PLib3MFModel_AddLevelSetPtr) GetProcAddress(hLibrary, "lib3mf_model_addlevelset"); #else // _WIN32 - pWrapperTable->m_Model_AddBoundaryShape = (PLib3MFModel_AddBoundaryShapePtr) dlsym(hLibrary, "lib3mf_model_addboundaryshape"); + pWrapperTable->m_Model_AddLevelSet = (PLib3MFModel_AddLevelSetPtr) dlsym(hLibrary, "lib3mf_model_addlevelset"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_Model_AddBoundaryShape == NULL) + if (pWrapperTable->m_Model_AddLevelSet == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 - pWrapperTable->m_Model_GetBoundaryShapes = (PLib3MFModel_GetBoundaryShapesPtr) GetProcAddress(hLibrary, "lib3mf_model_getboundaryshapes"); + pWrapperTable->m_Model_GetLevelSets = (PLib3MFModel_GetLevelSetsPtr) GetProcAddress(hLibrary, "lib3mf_model_getlevelsets"); #else // _WIN32 - pWrapperTable->m_Model_GetBoundaryShapes = (PLib3MFModel_GetBoundaryShapesPtr) dlsym(hLibrary, "lib3mf_model_getboundaryshapes"); + pWrapperTable->m_Model_GetLevelSets = (PLib3MFModel_GetLevelSetsPtr) dlsym(hLibrary, "lib3mf_model_getlevelsets"); dlerror(); #endif // _WIN32 - if (pWrapperTable->m_Model_GetBoundaryShapes == NULL) + if (pWrapperTable->m_Model_GetLevelSets == NULL) return LIB3MF_ERROR_COULDNOTFINDLIBRARYEXPORT; #ifdef _WIN32 diff --git a/Autogenerated/Bindings/NodeJS/lib3mf_dynamic.h b/Autogenerated/Bindings/NodeJS/lib3mf_dynamic.h index 797106a2a..e3c3f201b 100644 --- a/Autogenerated/Bindings/NodeJS/lib3mf_dynamic.h +++ b/Autogenerated/Bindings/NodeJS/lib3mf_dynamic.h @@ -589,17 +589,17 @@ typedef Lib3MFResult (*PLib3MFImage3DIterator_GetCurrentImage3DPtr) (Lib3MF_Imag typedef Lib3MFResult (*PLib3MFFunctionIterator_GetCurrentFunctionPtr) (Lib3MF_FunctionIterator pFunctionIterator, Lib3MF_Function * pResource); /************************************************************************************************************************* - Class definition for BoundaryShapeIterator + Class definition for LevelSetIterator **************************************************************************************************************************/ /** -* Returns the BoundaryShape the iterator points at. +* Returns the LevelSet the iterator points at. * -* @param[in] pBoundaryShapeIterator - BoundaryShapeIterator instance. +* @param[in] pLevelSetIterator - LevelSetIterator instance. * @param[out] pResource - returns the MeshObject instance. * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShapeIterator_GetCurrentBoundaryShapePtr) (Lib3MF_BoundaryShapeIterator pBoundaryShapeIterator, Lib3MF_BoundaryShape * pResource); +typedef Lib3MFResult (*PLib3MFLevelSetIterator_GetCurrentLevelSetPtr) (Lib3MF_LevelSetIterator pLevelSetIterator, Lib3MF_LevelSet * pResource); /************************************************************************************************************************* Class definition for MetaData @@ -1211,154 +1211,154 @@ typedef Lib3MFResult (*PLib3MFMeshObject_GetVolumeDataPtr) (Lib3MF_MeshObject pM typedef Lib3MFResult (*PLib3MFMeshObject_SetVolumeDataPtr) (Lib3MF_MeshObject pMeshObject, Lib3MF_VolumeData pTheVolumeData); /************************************************************************************************************************* - Class definition for BoundaryShape + Class definition for LevelSet **************************************************************************************************************************/ /** * Returns the function that is used as boundary shape. * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[out] pTheFunction - the function to use as boundary shape * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_GetFunctionPtr) (Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_Function * pTheFunction); +typedef Lib3MFResult (*PLib3MFLevelSet_GetFunctionPtr) (Lib3MF_LevelSet pLevelSet, Lib3MF_Function * pTheFunction); /** * Sets the function to use as boundary shape. * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] pTheFunction - the function to use as boundary shape * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_SetFunctionPtr) (Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_Function pTheFunction); +typedef Lib3MFResult (*PLib3MFLevelSet_SetFunctionPtr) (Lib3MF_LevelSet pLevelSet, Lib3MF_Function pTheFunction); /** * Returns the transformation matrix into the coordinate system of the referenced Function. * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[out] pTransform - the transformation matrix * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_GetTransformPtr) (Lib3MF_BoundaryShape pBoundaryShape, sLib3MFTransform * pTransform); +typedef Lib3MFResult (*PLib3MFLevelSet_GetTransformPtr) (Lib3MF_LevelSet pLevelSet, sLib3MFTransform * pTransform); /** * Sets the transformation matrix into the coordinate system of the referenced Function. * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] pTransform - new transformation matrix * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_SetTransformPtr) (Lib3MF_BoundaryShape pBoundaryShape, const sLib3MFTransform * pTransform); +typedef Lib3MFResult (*PLib3MFLevelSet_SetTransformPtr) (Lib3MF_LevelSet pLevelSet, const sLib3MFTransform * pTransform); /** * Returns the name of the function output channel to use. * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] nChannelNameBufferSize - size of the buffer (including trailing 0) * @param[out] pChannelNameNeededChars - will be filled with the count of the written bytes, or needed buffer size. * @param[out] pChannelNameBuffer - buffer of the name of the function output channel, may be NULL * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_GetChannelNamePtr) (Lib3MF_BoundaryShape pBoundaryShape, const Lib3MF_uint32 nChannelNameBufferSize, Lib3MF_uint32* pChannelNameNeededChars, char * pChannelNameBuffer); +typedef Lib3MFResult (*PLib3MFLevelSet_GetChannelNamePtr) (Lib3MF_LevelSet pLevelSet, const Lib3MF_uint32 nChannelNameBufferSize, Lib3MF_uint32* pChannelNameNeededChars, char * pChannelNameBuffer); /** * Sets the name of the function output channel to use. * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] pChannelName - new name of the function output channel * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_SetChannelNamePtr) (Lib3MF_BoundaryShape pBoundaryShape, const char * pChannelName); +typedef Lib3MFResult (*PLib3MFLevelSet_SetChannelNamePtr) (Lib3MF_LevelSet pLevelSet, const char * pChannelName); /** * Sets the minimal feature size as a hint for the function evaluator * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] dMinFeatureSize - minimal feature size * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_SetMinFeatureSizePtr) (Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_double dMinFeatureSize); +typedef Lib3MFResult (*PLib3MFLevelSet_SetMinFeatureSizePtr) (Lib3MF_LevelSet pLevelSet, Lib3MF_double dMinFeatureSize); /** * Returns the minimal feature size as a hint for the function evaluator * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[out] pMinFeatureSize - minimal feature size * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_GetMinFeatureSizePtr) (Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_double * pMinFeatureSize); +typedef Lib3MFResult (*PLib3MFLevelSet_GetMinFeatureSizePtr) (Lib3MF_LevelSet pLevelSet, Lib3MF_double * pMinFeatureSize); /** * Sets the fallback value to use if the function evaluation fails (e.g. evaluates to NaN or Inf). * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] dFallBackValue - fallback value * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_SetFallBackValuePtr) (Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_double dFallBackValue); +typedef Lib3MFResult (*PLib3MFLevelSet_SetFallBackValuePtr) (Lib3MF_LevelSet pLevelSet, Lib3MF_double dFallBackValue); /** * Returns the fallback value to use if the function evaluation fails (e.g. evaluates to NaN or Inf). * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[out] pFallBackValue - fallback value * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_GetFallBackValuePtr) (Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_double * pFallBackValue); +typedef Lib3MFResult (*PLib3MFLevelSet_GetFallBackValuePtr) (Lib3MF_LevelSet pLevelSet, Lib3MF_double * pFallBackValue); /** * If set only the bounding box of the mesh is intersected with the boundary * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] bMeshBBoxOnly - If set only the bounding box of the mesh is intersected with the boundary * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_SetMeshBBoxOnlyPtr) (Lib3MF_BoundaryShape pBoundaryShape, bool bMeshBBoxOnly); +typedef Lib3MFResult (*PLib3MFLevelSet_SetMeshBBoxOnlyPtr) (Lib3MF_LevelSet pLevelSet, bool bMeshBBoxOnly); /** * If set only the bounding box of the mesh is intersected with the boundary * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[out] pMeshBBoxOnly - If set only the bounding box of the mesh is intersected with the boundary * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_GetMeshBBoxOnlyPtr) (Lib3MF_BoundaryShape pBoundaryShape, bool * pMeshBBoxOnly); +typedef Lib3MFResult (*PLib3MFLevelSet_GetMeshBBoxOnlyPtr) (Lib3MF_LevelSet pLevelSet, bool * pMeshBBoxOnly); /** * Sets the mesh to use as evaluation domain * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] pTheMesh - The mesh * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_SetMeshPtr) (Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_MeshObject pTheMesh); +typedef Lib3MFResult (*PLib3MFLevelSet_SetMeshPtr) (Lib3MF_LevelSet pLevelSet, Lib3MF_MeshObject pTheMesh); /** * Returns the mesh that is used as evaluation domain * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[out] pTheMesh - The mesh * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_GetMeshPtr) (Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_MeshObject * pTheMesh); +typedef Lib3MFResult (*PLib3MFLevelSet_GetMeshPtr) (Lib3MF_LevelSet pLevelSet, Lib3MF_MeshObject * pTheMesh); /** * Retrieves the VolumeData this MeshObject. * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[out] pTheVolumeData - the VolumeData of this MeshObject * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_GetVolumeDataPtr) (Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_VolumeData * pTheVolumeData); +typedef Lib3MFResult (*PLib3MFLevelSet_GetVolumeDataPtr) (Lib3MF_LevelSet pLevelSet, Lib3MF_VolumeData * pTheVolumeData); /** -* Sets the VolumeData of this BoundaryShape. +* Sets the VolumeData of this LevelSet. * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] pTheVolumeData - the VolumeData of this MeshObject * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFBoundaryShape_SetVolumeDataPtr) (Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_VolumeData pTheVolumeData); +typedef Lib3MFResult (*PLib3MFLevelSet_SetVolumeDataPtr) (Lib3MF_LevelSet pLevelSet, Lib3MF_VolumeData pTheVolumeData); /************************************************************************************************************************* Class definition for BeamLattice @@ -6194,10 +6194,10 @@ typedef Lib3MFResult (*PLib3MFModel_AddVolumeDataPtr) (Lib3MF_Model pModel, Lib3 * adds an empty boundary shape object to the model. * * @param[in] pModel - Model instance. -* @param[out] pBoundaryShapeInstance - returns the mesh object instance +* @param[out] pLevelSetInstance - returns the mesh object instance * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFModel_AddBoundaryShapePtr) (Lib3MF_Model pModel, Lib3MF_BoundaryShape * pBoundaryShapeInstance); +typedef Lib3MFResult (*PLib3MFModel_AddLevelSetPtr) (Lib3MF_Model pModel, Lib3MF_LevelSet * pLevelSetInstance); /** * creates a resource iterator instance with all boundary shape resources. @@ -6206,7 +6206,7 @@ typedef Lib3MFResult (*PLib3MFModel_AddBoundaryShapePtr) (Lib3MF_Model pModel, L * @param[out] pResourceIterator - returns the iterator instance. * @return error code or 0 (success) */ -typedef Lib3MFResult (*PLib3MFModel_GetBoundaryShapesPtr) (Lib3MF_Model pModel, Lib3MF_BoundaryShapeIterator * pResourceIterator); +typedef Lib3MFResult (*PLib3MFModel_GetLevelSetsPtr) (Lib3MF_Model pModel, Lib3MF_LevelSetIterator * pResourceIterator); /************************************************************************************************************************* Global functions @@ -6462,7 +6462,7 @@ typedef struct { PLib3MFMultiPropertyGroupIterator_GetCurrentMultiPropertyGroupPtr m_MultiPropertyGroupIterator_GetCurrentMultiPropertyGroup; PLib3MFImage3DIterator_GetCurrentImage3DPtr m_Image3DIterator_GetCurrentImage3D; PLib3MFFunctionIterator_GetCurrentFunctionPtr m_FunctionIterator_GetCurrentFunction; - PLib3MFBoundaryShapeIterator_GetCurrentBoundaryShapePtr m_BoundaryShapeIterator_GetCurrentBoundaryShape; + PLib3MFLevelSetIterator_GetCurrentLevelSetPtr m_LevelSetIterator_GetCurrentLevelSet; PLib3MFMetaData_GetNameSpacePtr m_MetaData_GetNameSpace; PLib3MFMetaData_SetNameSpacePtr m_MetaData_SetNameSpace; PLib3MFMetaData_GetNamePtr m_MetaData_GetName; @@ -6524,22 +6524,22 @@ typedef struct { PLib3MFMeshObject_BeamLatticePtr m_MeshObject_BeamLattice; PLib3MFMeshObject_GetVolumeDataPtr m_MeshObject_GetVolumeData; PLib3MFMeshObject_SetVolumeDataPtr m_MeshObject_SetVolumeData; - PLib3MFBoundaryShape_GetFunctionPtr m_BoundaryShape_GetFunction; - PLib3MFBoundaryShape_SetFunctionPtr m_BoundaryShape_SetFunction; - PLib3MFBoundaryShape_GetTransformPtr m_BoundaryShape_GetTransform; - PLib3MFBoundaryShape_SetTransformPtr m_BoundaryShape_SetTransform; - PLib3MFBoundaryShape_GetChannelNamePtr m_BoundaryShape_GetChannelName; - PLib3MFBoundaryShape_SetChannelNamePtr m_BoundaryShape_SetChannelName; - PLib3MFBoundaryShape_SetMinFeatureSizePtr m_BoundaryShape_SetMinFeatureSize; - PLib3MFBoundaryShape_GetMinFeatureSizePtr m_BoundaryShape_GetMinFeatureSize; - PLib3MFBoundaryShape_SetFallBackValuePtr m_BoundaryShape_SetFallBackValue; - PLib3MFBoundaryShape_GetFallBackValuePtr m_BoundaryShape_GetFallBackValue; - PLib3MFBoundaryShape_SetMeshBBoxOnlyPtr m_BoundaryShape_SetMeshBBoxOnly; - PLib3MFBoundaryShape_GetMeshBBoxOnlyPtr m_BoundaryShape_GetMeshBBoxOnly; - PLib3MFBoundaryShape_SetMeshPtr m_BoundaryShape_SetMesh; - PLib3MFBoundaryShape_GetMeshPtr m_BoundaryShape_GetMesh; - PLib3MFBoundaryShape_GetVolumeDataPtr m_BoundaryShape_GetVolumeData; - PLib3MFBoundaryShape_SetVolumeDataPtr m_BoundaryShape_SetVolumeData; + PLib3MFLevelSet_GetFunctionPtr m_LevelSet_GetFunction; + PLib3MFLevelSet_SetFunctionPtr m_LevelSet_SetFunction; + PLib3MFLevelSet_GetTransformPtr m_LevelSet_GetTransform; + PLib3MFLevelSet_SetTransformPtr m_LevelSet_SetTransform; + PLib3MFLevelSet_GetChannelNamePtr m_LevelSet_GetChannelName; + PLib3MFLevelSet_SetChannelNamePtr m_LevelSet_SetChannelName; + PLib3MFLevelSet_SetMinFeatureSizePtr m_LevelSet_SetMinFeatureSize; + PLib3MFLevelSet_GetMinFeatureSizePtr m_LevelSet_GetMinFeatureSize; + PLib3MFLevelSet_SetFallBackValuePtr m_LevelSet_SetFallBackValue; + PLib3MFLevelSet_GetFallBackValuePtr m_LevelSet_GetFallBackValue; + PLib3MFLevelSet_SetMeshBBoxOnlyPtr m_LevelSet_SetMeshBBoxOnly; + PLib3MFLevelSet_GetMeshBBoxOnlyPtr m_LevelSet_GetMeshBBoxOnly; + PLib3MFLevelSet_SetMeshPtr m_LevelSet_SetMesh; + PLib3MFLevelSet_GetMeshPtr m_LevelSet_GetMesh; + PLib3MFLevelSet_GetVolumeDataPtr m_LevelSet_GetVolumeData; + PLib3MFLevelSet_SetVolumeDataPtr m_LevelSet_SetVolumeData; PLib3MFBeamLattice_GetMinLengthPtr m_BeamLattice_GetMinLength; PLib3MFBeamLattice_SetMinLengthPtr m_BeamLattice_SetMinLength; PLib3MFBeamLattice_GetClippingPtr m_BeamLattice_GetClipping; @@ -6990,8 +6990,8 @@ typedef struct { PLib3MFModel_AddImplicitFunctionPtr m_Model_AddImplicitFunction; PLib3MFModel_AddFunctionFromImage3DPtr m_Model_AddFunctionFromImage3D; PLib3MFModel_AddVolumeDataPtr m_Model_AddVolumeData; - PLib3MFModel_AddBoundaryShapePtr m_Model_AddBoundaryShape; - PLib3MFModel_GetBoundaryShapesPtr m_Model_GetBoundaryShapes; + PLib3MFModel_AddLevelSetPtr m_Model_AddLevelSet; + PLib3MFModel_GetLevelSetsPtr m_Model_GetLevelSets; PLib3MFGetLibraryVersionPtr m_GetLibraryVersion; PLib3MFGetPrereleaseInformationPtr m_GetPrereleaseInformation; PLib3MFGetBuildInformationPtr m_GetBuildInformation; diff --git a/Autogenerated/Bindings/NodeJS/lib3mf_nodeaddon.cc b/Autogenerated/Bindings/NodeJS/lib3mf_nodeaddon.cc index b6024b400..f7a282217 100644 --- a/Autogenerated/Bindings/NodeJS/lib3mf_nodeaddon.cc +++ b/Autogenerated/Bindings/NodeJS/lib3mf_nodeaddon.cc @@ -66,12 +66,12 @@ void InitAll(v8::Local exports, v8::Local module) CLib3MFMultiPropertyGroupIterator::Init(); CLib3MFImage3DIterator::Init(); CLib3MFFunctionIterator::Init(); - CLib3MFBoundaryShapeIterator::Init(); + CLib3MFLevelSetIterator::Init(); CLib3MFMetaData::Init(); CLib3MFMetaDataGroup::Init(); CLib3MFObject::Init(); CLib3MFMeshObject::Init(); - CLib3MFBoundaryShape::Init(); + CLib3MFLevelSet::Init(); CLib3MFBeamLattice::Init(); CLib3MFFunctionReference::Init(); CLib3MFVolumeDataColor::Init(); diff --git a/Autogenerated/Bindings/NodeJS/lib3mf_nodewrapper.cc b/Autogenerated/Bindings/NodeJS/lib3mf_nodewrapper.cc index cff1b7823..3ff69155a 100644 --- a/Autogenerated/Bindings/NodeJS/lib3mf_nodewrapper.cc +++ b/Autogenerated/Bindings/NodeJS/lib3mf_nodewrapper.cc @@ -59,12 +59,12 @@ Persistent CLib3MFCompositeMaterialsIterator::constructor; Persistent CLib3MFMultiPropertyGroupIterator::constructor; Persistent CLib3MFImage3DIterator::constructor; Persistent CLib3MFFunctionIterator::constructor; -Persistent CLib3MFBoundaryShapeIterator::constructor; +Persistent CLib3MFLevelSetIterator::constructor; Persistent CLib3MFMetaData::constructor; Persistent CLib3MFMetaDataGroup::constructor; Persistent CLib3MFObject::constructor; Persistent CLib3MFMeshObject::constructor; -Persistent CLib3MFBoundaryShape::constructor; +Persistent CLib3MFLevelSet::constructor; Persistent CLib3MFBeamLattice::constructor; Persistent CLib3MFFunctionReference::constructor; Persistent CLib3MFVolumeDataColor::constructor; @@ -3639,49 +3639,49 @@ void CLib3MFFunctionIterator::GetCurrentFunction(const FunctionCallbackInfo tpl = FunctionTemplate::New(isolate, New); - tpl->SetClassName(String::NewFromUtf8(isolate, "Lib3MFBoundaryShapeIterator")); + tpl->SetClassName(String::NewFromUtf8(isolate, "Lib3MFLevelSetIterator")); tpl->InstanceTemplate()->SetInternalFieldCount(NODEWRAPPER_FIELDCOUNT); // Prototype - NODE_SET_PROTOTYPE_METHOD(tpl, "GetCurrentBoundaryShape", GetCurrentBoundaryShape); + NODE_SET_PROTOTYPE_METHOD(tpl, "GetCurrentLevelSet", GetCurrentLevelSet); constructor.Reset(isolate, tpl->GetFunction(isolate->GetCurrentContext()).ToLocalChecked()); } -void CLib3MFBoundaryShapeIterator::New(const FunctionCallbackInfo& args) +void CLib3MFLevelSetIterator::New(const FunctionCallbackInfo& args) { Isolate* isolate = args.GetIsolate(); HandleScope scope(isolate); if (args.IsConstructCall()) { CLib3MFBaseClass * holderObj = ObjectWrap::Unwrap(args.Holder()); - CLib3MFBoundaryShapeIterator * boundaryshapeiteratorInstance = new CLib3MFBoundaryShapeIterator(); - boundaryshapeiteratorInstance->Wrap(args.This()); + CLib3MFLevelSetIterator * levelsetiteratorInstance = new CLib3MFLevelSetIterator(); + levelsetiteratorInstance->Wrap(args.This()); args.GetReturnValue().Set(args.This()); } else { - RaiseError(isolate, "Lib3MFBoundaryShapeIterator: Invalid call to Constructor"); + RaiseError(isolate, "Lib3MFLevelSetIterator: Invalid call to Constructor"); } } -Local CLib3MFBoundaryShapeIterator::NewInstance(Local pParent, Lib3MFHandle pHandle) +Local CLib3MFLevelSetIterator::NewInstance(Local pParent, Lib3MFHandle pHandle) { Isolate* isolate = Isolate::GetCurrent(); HandleScope scope(isolate); @@ -3695,7 +3695,7 @@ Local CLib3MFBoundaryShapeIterator::NewInstance(Local pParent, L } -void CLib3MFBoundaryShapeIterator::GetCurrentBoundaryShape(const FunctionCallbackInfo& args) +void CLib3MFLevelSetIterator::GetCurrentLevelSet(const FunctionCallbackInfo& args) { Isolate* isolate = args.GetIsolate(); HandleScope scope(isolate); @@ -3703,13 +3703,13 @@ void CLib3MFBoundaryShapeIterator::GetCurrentBoundaryShape(const FunctionCallbac Lib3MFHandle hReturnResource = nullptr; sLib3MFDynamicWrapperTable * wrapperTable = CLib3MFBaseClass::getDynamicWrapperTable(args.Holder()); if (wrapperTable == nullptr) - throw std::runtime_error("Could not get wrapper table for Lib3MF method GetCurrentBoundaryShape."); - if (wrapperTable->m_BoundaryShapeIterator_GetCurrentBoundaryShape == nullptr) - throw std::runtime_error("Could not call Lib3MF method BoundaryShapeIterator::GetCurrentBoundaryShape."); + throw std::runtime_error("Could not get wrapper table for Lib3MF method GetCurrentLevelSet."); + if (wrapperTable->m_LevelSetIterator_GetCurrentLevelSet == nullptr) + throw std::runtime_error("Could not call Lib3MF method LevelSetIterator::GetCurrentLevelSet."); Lib3MFHandle instanceHandle = CLib3MFBaseClass::getHandle(args.Holder()); - Lib3MFResult errorCode = wrapperTable->m_BoundaryShapeIterator_GetCurrentBoundaryShape(instanceHandle, &hReturnResource); + Lib3MFResult errorCode = wrapperTable->m_LevelSetIterator_GetCurrentLevelSet(instanceHandle, &hReturnResource); CheckError(isolate, wrapperTable, instanceHandle, errorCode); - Local instanceObjResource = CLib3MFBoundaryShape::NewInstance(args.Holder(), hReturnResource); + Local instanceObjResource = CLib3MFLevelSet::NewInstance(args.Holder(), hReturnResource); args.GetReturnValue().Set(instanceObjResource); } catch (std::exception & E) { @@ -5522,25 +5522,25 @@ void CLib3MFMeshObject::SetVolumeData(const FunctionCallbackInfo& args) } /************************************************************************************************************************* - Class CLib3MFBoundaryShape Implementation + Class CLib3MFLevelSet Implementation **************************************************************************************************************************/ -CLib3MFBoundaryShape::CLib3MFBoundaryShape() +CLib3MFLevelSet::CLib3MFLevelSet() : CLib3MFBaseClass() { } -CLib3MFBoundaryShape::~CLib3MFBoundaryShape() +CLib3MFLevelSet::~CLib3MFLevelSet() { } -void CLib3MFBoundaryShape::Init() +void CLib3MFLevelSet::Init() { Isolate* isolate = Isolate::GetCurrent(); // Prepare constructor template Local tpl = FunctionTemplate::New(isolate, New); - tpl->SetClassName(String::NewFromUtf8(isolate, "Lib3MFBoundaryShape")); + tpl->SetClassName(String::NewFromUtf8(isolate, "Lib3MFLevelSet")); tpl->InstanceTemplate()->SetInternalFieldCount(NODEWRAPPER_FIELDCOUNT); // Prototype @@ -5564,22 +5564,22 @@ void CLib3MFBoundaryShape::Init() } -void CLib3MFBoundaryShape::New(const FunctionCallbackInfo& args) +void CLib3MFLevelSet::New(const FunctionCallbackInfo& args) { Isolate* isolate = args.GetIsolate(); HandleScope scope(isolate); if (args.IsConstructCall()) { CLib3MFBaseClass * holderObj = ObjectWrap::Unwrap(args.Holder()); - CLib3MFBoundaryShape * boundaryshapeInstance = new CLib3MFBoundaryShape(); - boundaryshapeInstance->Wrap(args.This()); + CLib3MFLevelSet * levelsetInstance = new CLib3MFLevelSet(); + levelsetInstance->Wrap(args.This()); args.GetReturnValue().Set(args.This()); } else { - RaiseError(isolate, "Lib3MFBoundaryShape: Invalid call to Constructor"); + RaiseError(isolate, "Lib3MFLevelSet: Invalid call to Constructor"); } } -Local CLib3MFBoundaryShape::NewInstance(Local pParent, Lib3MFHandle pHandle) +Local CLib3MFLevelSet::NewInstance(Local pParent, Lib3MFHandle pHandle) { Isolate* isolate = Isolate::GetCurrent(); HandleScope scope(isolate); @@ -5593,7 +5593,7 @@ Local CLib3MFBoundaryShape::NewInstance(Local pParent, Lib3MFHan } -void CLib3MFBoundaryShape::GetFunction(const FunctionCallbackInfo& args) +void CLib3MFLevelSet::GetFunction(const FunctionCallbackInfo& args) { Isolate* isolate = args.GetIsolate(); HandleScope scope(isolate); @@ -5602,10 +5602,10 @@ void CLib3MFBoundaryShape::GetFunction(const FunctionCallbackInfo& args) sLib3MFDynamicWrapperTable * wrapperTable = CLib3MFBaseClass::getDynamicWrapperTable(args.Holder()); if (wrapperTable == nullptr) throw std::runtime_error("Could not get wrapper table for Lib3MF method GetFunction."); - if (wrapperTable->m_BoundaryShape_GetFunction == nullptr) - throw std::runtime_error("Could not call Lib3MF method BoundaryShape::GetFunction."); + if (wrapperTable->m_LevelSet_GetFunction == nullptr) + throw std::runtime_error("Could not call Lib3MF method LevelSet::GetFunction."); Lib3MFHandle instanceHandle = CLib3MFBaseClass::getHandle(args.Holder()); - Lib3MFResult errorCode = wrapperTable->m_BoundaryShape_GetFunction(instanceHandle, &hReturnTheFunction); + Lib3MFResult errorCode = wrapperTable->m_LevelSet_GetFunction(instanceHandle, &hReturnTheFunction); CheckError(isolate, wrapperTable, instanceHandle, errorCode); Local instanceObjTheFunction = CLib3MFFunction::NewInstance(args.Holder(), hReturnTheFunction); args.GetReturnValue().Set(instanceObjTheFunction); @@ -5616,7 +5616,7 @@ void CLib3MFBoundaryShape::GetFunction(const FunctionCallbackInfo& args) } -void CLib3MFBoundaryShape::SetFunction(const FunctionCallbackInfo& args) +void CLib3MFLevelSet::SetFunction(const FunctionCallbackInfo& args) { Isolate* isolate = args.GetIsolate(); HandleScope scope(isolate); @@ -5632,10 +5632,10 @@ void CLib3MFBoundaryShape::SetFunction(const FunctionCallbackInfo& args) sLib3MFDynamicWrapperTable * wrapperTable = CLib3MFBaseClass::getDynamicWrapperTable(args.Holder()); if (wrapperTable == nullptr) throw std::runtime_error("Could not get wrapper table for Lib3MF method SetFunction."); - if (wrapperTable->m_BoundaryShape_SetFunction == nullptr) - throw std::runtime_error("Could not call Lib3MF method BoundaryShape::SetFunction."); + if (wrapperTable->m_LevelSet_SetFunction == nullptr) + throw std::runtime_error("Could not call Lib3MF method LevelSet::SetFunction."); Lib3MFHandle instanceHandle = CLib3MFBaseClass::getHandle(args.Holder()); - Lib3MFResult errorCode = wrapperTable->m_BoundaryShape_SetFunction(instanceHandle, hTheFunction); + Lib3MFResult errorCode = wrapperTable->m_LevelSet_SetFunction(instanceHandle, hTheFunction); CheckError(isolate, wrapperTable, instanceHandle, errorCode); } catch (std::exception & E) { @@ -5644,7 +5644,7 @@ void CLib3MFBoundaryShape::SetFunction(const FunctionCallbackInfo& args) } -void CLib3MFBoundaryShape::GetTransform(const FunctionCallbackInfo& args) +void CLib3MFLevelSet::GetTransform(const FunctionCallbackInfo& args) { Isolate* isolate = args.GetIsolate(); HandleScope scope(isolate); @@ -5653,10 +5653,10 @@ void CLib3MFBoundaryShape::GetTransform(const FunctionCallbackInfo& args) sLib3MFDynamicWrapperTable * wrapperTable = CLib3MFBaseClass::getDynamicWrapperTable(args.Holder()); if (wrapperTable == nullptr) throw std::runtime_error("Could not get wrapper table for Lib3MF method GetTransform."); - if (wrapperTable->m_BoundaryShape_GetTransform == nullptr) - throw std::runtime_error("Could not call Lib3MF method BoundaryShape::GetTransform."); + if (wrapperTable->m_LevelSet_GetTransform == nullptr) + throw std::runtime_error("Could not call Lib3MF method LevelSet::GetTransform."); Lib3MFHandle instanceHandle = CLib3MFBaseClass::getHandle(args.Holder()); - Lib3MFResult errorCode = wrapperTable->m_BoundaryShape_GetTransform(instanceHandle, &sReturnTransform); + Lib3MFResult errorCode = wrapperTable->m_LevelSet_GetTransform(instanceHandle, &sReturnTransform); CheckError(isolate, wrapperTable, instanceHandle, errorCode); args.GetReturnValue().Set(convertLib3MFTransformToObject(isolate, sReturnTransform)); @@ -5666,7 +5666,7 @@ void CLib3MFBoundaryShape::GetTransform(const FunctionCallbackInfo& args) } -void CLib3MFBoundaryShape::SetTransform(const FunctionCallbackInfo& args) +void CLib3MFLevelSet::SetTransform(const FunctionCallbackInfo& args) { Isolate* isolate = args.GetIsolate(); HandleScope scope(isolate); @@ -5678,10 +5678,10 @@ void CLib3MFBoundaryShape::SetTransform(const FunctionCallbackInfo& args) sLib3MFDynamicWrapperTable * wrapperTable = CLib3MFBaseClass::getDynamicWrapperTable(args.Holder()); if (wrapperTable == nullptr) throw std::runtime_error("Could not get wrapper table for Lib3MF method SetTransform."); - if (wrapperTable->m_BoundaryShape_SetTransform == nullptr) - throw std::runtime_error("Could not call Lib3MF method BoundaryShape::SetTransform."); + if (wrapperTable->m_LevelSet_SetTransform == nullptr) + throw std::runtime_error("Could not call Lib3MF method LevelSet::SetTransform."); Lib3MFHandle instanceHandle = CLib3MFBaseClass::getHandle(args.Holder()); - Lib3MFResult errorCode = wrapperTable->m_BoundaryShape_SetTransform(instanceHandle, &sTransform); + Lib3MFResult errorCode = wrapperTable->m_LevelSet_SetTransform(instanceHandle, &sTransform); CheckError(isolate, wrapperTable, instanceHandle, errorCode); } catch (std::exception & E) { @@ -5690,7 +5690,7 @@ void CLib3MFBoundaryShape::SetTransform(const FunctionCallbackInfo& args) } -void CLib3MFBoundaryShape::GetChannelName(const FunctionCallbackInfo& args) +void CLib3MFLevelSet::GetChannelName(const FunctionCallbackInfo& args) { Isolate* isolate = args.GetIsolate(); HandleScope scope(isolate); @@ -5700,14 +5700,14 @@ void CLib3MFBoundaryShape::GetChannelName(const FunctionCallbackInfo& arg sLib3MFDynamicWrapperTable * wrapperTable = CLib3MFBaseClass::getDynamicWrapperTable(args.Holder()); if (wrapperTable == nullptr) throw std::runtime_error("Could not get wrapper table for Lib3MF method GetChannelName."); - if (wrapperTable->m_BoundaryShape_GetChannelName == nullptr) - throw std::runtime_error("Could not call Lib3MF method BoundaryShape::GetChannelName."); + if (wrapperTable->m_LevelSet_GetChannelName == nullptr) + throw std::runtime_error("Could not call Lib3MF method LevelSet::GetChannelName."); Lib3MFHandle instanceHandle = CLib3MFBaseClass::getHandle(args.Holder()); - Lib3MFResult initErrorCode = wrapperTable->m_BoundaryShape_GetChannelName(instanceHandle, 0, &bytesNeededChannelName, nullptr); + Lib3MFResult initErrorCode = wrapperTable->m_LevelSet_GetChannelName(instanceHandle, 0, &bytesNeededChannelName, nullptr); CheckError(isolate, wrapperTable, instanceHandle, initErrorCode); std::vector bufferChannelName; bufferChannelName.resize(bytesNeededChannelName); - Lib3MFResult errorCode = wrapperTable->m_BoundaryShape_GetChannelName(instanceHandle, bytesNeededChannelName, &bytesWrittenChannelName, &bufferChannelName[0]); + Lib3MFResult errorCode = wrapperTable->m_LevelSet_GetChannelName(instanceHandle, bytesNeededChannelName, &bytesWrittenChannelName, &bufferChannelName[0]); CheckError(isolate, wrapperTable, instanceHandle, errorCode); args.GetReturnValue().Set(String::NewFromUtf8(isolate, &bufferChannelName[0])); @@ -5717,7 +5717,7 @@ void CLib3MFBoundaryShape::GetChannelName(const FunctionCallbackInfo& arg } -void CLib3MFBoundaryShape::SetChannelName(const FunctionCallbackInfo& args) +void CLib3MFLevelSet::SetChannelName(const FunctionCallbackInfo& args) { Isolate* isolate = args.GetIsolate(); HandleScope scope(isolate); @@ -5730,10 +5730,10 @@ void CLib3MFBoundaryShape::SetChannelName(const FunctionCallbackInfo& arg sLib3MFDynamicWrapperTable * wrapperTable = CLib3MFBaseClass::getDynamicWrapperTable(args.Holder()); if (wrapperTable == nullptr) throw std::runtime_error("Could not get wrapper table for Lib3MF method SetChannelName."); - if (wrapperTable->m_BoundaryShape_SetChannelName == nullptr) - throw std::runtime_error("Could not call Lib3MF method BoundaryShape::SetChannelName."); + if (wrapperTable->m_LevelSet_SetChannelName == nullptr) + throw std::runtime_error("Could not call Lib3MF method LevelSet::SetChannelName."); Lib3MFHandle instanceHandle = CLib3MFBaseClass::getHandle(args.Holder()); - Lib3MFResult errorCode = wrapperTable->m_BoundaryShape_SetChannelName(instanceHandle, sChannelName.c_str()); + Lib3MFResult errorCode = wrapperTable->m_LevelSet_SetChannelName(instanceHandle, sChannelName.c_str()); CheckError(isolate, wrapperTable, instanceHandle, errorCode); } catch (std::exception & E) { @@ -5742,7 +5742,7 @@ void CLib3MFBoundaryShape::SetChannelName(const FunctionCallbackInfo& arg } -void CLib3MFBoundaryShape::SetMinFeatureSize(const FunctionCallbackInfo& args) +void CLib3MFLevelSet::SetMinFeatureSize(const FunctionCallbackInfo& args) { Isolate* isolate = args.GetIsolate(); HandleScope scope(isolate); @@ -5754,10 +5754,10 @@ void CLib3MFBoundaryShape::SetMinFeatureSize(const FunctionCallbackInfo& sLib3MFDynamicWrapperTable * wrapperTable = CLib3MFBaseClass::getDynamicWrapperTable(args.Holder()); if (wrapperTable == nullptr) throw std::runtime_error("Could not get wrapper table for Lib3MF method SetMinFeatureSize."); - if (wrapperTable->m_BoundaryShape_SetMinFeatureSize == nullptr) - throw std::runtime_error("Could not call Lib3MF method BoundaryShape::SetMinFeatureSize."); + if (wrapperTable->m_LevelSet_SetMinFeatureSize == nullptr) + throw std::runtime_error("Could not call Lib3MF method LevelSet::SetMinFeatureSize."); Lib3MFHandle instanceHandle = CLib3MFBaseClass::getHandle(args.Holder()); - Lib3MFResult errorCode = wrapperTable->m_BoundaryShape_SetMinFeatureSize(instanceHandle, dMinFeatureSize); + Lib3MFResult errorCode = wrapperTable->m_LevelSet_SetMinFeatureSize(instanceHandle, dMinFeatureSize); CheckError(isolate, wrapperTable, instanceHandle, errorCode); } catch (std::exception & E) { @@ -5766,7 +5766,7 @@ void CLib3MFBoundaryShape::SetMinFeatureSize(const FunctionCallbackInfo& } -void CLib3MFBoundaryShape::GetMinFeatureSize(const FunctionCallbackInfo& args) +void CLib3MFLevelSet::GetMinFeatureSize(const FunctionCallbackInfo& args) { Isolate* isolate = args.GetIsolate(); HandleScope scope(isolate); @@ -5775,10 +5775,10 @@ void CLib3MFBoundaryShape::GetMinFeatureSize(const FunctionCallbackInfo& sLib3MFDynamicWrapperTable * wrapperTable = CLib3MFBaseClass::getDynamicWrapperTable(args.Holder()); if (wrapperTable == nullptr) throw std::runtime_error("Could not get wrapper table for Lib3MF method GetMinFeatureSize."); - if (wrapperTable->m_BoundaryShape_GetMinFeatureSize == nullptr) - throw std::runtime_error("Could not call Lib3MF method BoundaryShape::GetMinFeatureSize."); + if (wrapperTable->m_LevelSet_GetMinFeatureSize == nullptr) + throw std::runtime_error("Could not call Lib3MF method LevelSet::GetMinFeatureSize."); Lib3MFHandle instanceHandle = CLib3MFBaseClass::getHandle(args.Holder()); - Lib3MFResult errorCode = wrapperTable->m_BoundaryShape_GetMinFeatureSize(instanceHandle, &dReturnMinFeatureSize); + Lib3MFResult errorCode = wrapperTable->m_LevelSet_GetMinFeatureSize(instanceHandle, &dReturnMinFeatureSize); CheckError(isolate, wrapperTable, instanceHandle, errorCode); args.GetReturnValue().Set(Number::New(isolate, dReturnMinFeatureSize)); @@ -5788,7 +5788,7 @@ void CLib3MFBoundaryShape::GetMinFeatureSize(const FunctionCallbackInfo& } -void CLib3MFBoundaryShape::SetFallBackValue(const FunctionCallbackInfo& args) +void CLib3MFLevelSet::SetFallBackValue(const FunctionCallbackInfo& args) { Isolate* isolate = args.GetIsolate(); HandleScope scope(isolate); @@ -5800,10 +5800,10 @@ void CLib3MFBoundaryShape::SetFallBackValue(const FunctionCallbackInfo& a sLib3MFDynamicWrapperTable * wrapperTable = CLib3MFBaseClass::getDynamicWrapperTable(args.Holder()); if (wrapperTable == nullptr) throw std::runtime_error("Could not get wrapper table for Lib3MF method SetFallBackValue."); - if (wrapperTable->m_BoundaryShape_SetFallBackValue == nullptr) - throw std::runtime_error("Could not call Lib3MF method BoundaryShape::SetFallBackValue."); + if (wrapperTable->m_LevelSet_SetFallBackValue == nullptr) + throw std::runtime_error("Could not call Lib3MF method LevelSet::SetFallBackValue."); Lib3MFHandle instanceHandle = CLib3MFBaseClass::getHandle(args.Holder()); - Lib3MFResult errorCode = wrapperTable->m_BoundaryShape_SetFallBackValue(instanceHandle, dFallBackValue); + Lib3MFResult errorCode = wrapperTable->m_LevelSet_SetFallBackValue(instanceHandle, dFallBackValue); CheckError(isolate, wrapperTable, instanceHandle, errorCode); } catch (std::exception & E) { @@ -5812,7 +5812,7 @@ void CLib3MFBoundaryShape::SetFallBackValue(const FunctionCallbackInfo& a } -void CLib3MFBoundaryShape::GetFallBackValue(const FunctionCallbackInfo& args) +void CLib3MFLevelSet::GetFallBackValue(const FunctionCallbackInfo& args) { Isolate* isolate = args.GetIsolate(); HandleScope scope(isolate); @@ -5821,10 +5821,10 @@ void CLib3MFBoundaryShape::GetFallBackValue(const FunctionCallbackInfo& a sLib3MFDynamicWrapperTable * wrapperTable = CLib3MFBaseClass::getDynamicWrapperTable(args.Holder()); if (wrapperTable == nullptr) throw std::runtime_error("Could not get wrapper table for Lib3MF method GetFallBackValue."); - if (wrapperTable->m_BoundaryShape_GetFallBackValue == nullptr) - throw std::runtime_error("Could not call Lib3MF method BoundaryShape::GetFallBackValue."); + if (wrapperTable->m_LevelSet_GetFallBackValue == nullptr) + throw std::runtime_error("Could not call Lib3MF method LevelSet::GetFallBackValue."); Lib3MFHandle instanceHandle = CLib3MFBaseClass::getHandle(args.Holder()); - Lib3MFResult errorCode = wrapperTable->m_BoundaryShape_GetFallBackValue(instanceHandle, &dReturnFallBackValue); + Lib3MFResult errorCode = wrapperTable->m_LevelSet_GetFallBackValue(instanceHandle, &dReturnFallBackValue); CheckError(isolate, wrapperTable, instanceHandle, errorCode); args.GetReturnValue().Set(Number::New(isolate, dReturnFallBackValue)); @@ -5834,7 +5834,7 @@ void CLib3MFBoundaryShape::GetFallBackValue(const FunctionCallbackInfo& a } -void CLib3MFBoundaryShape::SetMeshBBoxOnly(const FunctionCallbackInfo& args) +void CLib3MFLevelSet::SetMeshBBoxOnly(const FunctionCallbackInfo& args) { Isolate* isolate = args.GetIsolate(); HandleScope scope(isolate); @@ -5846,10 +5846,10 @@ void CLib3MFBoundaryShape::SetMeshBBoxOnly(const FunctionCallbackInfo& ar sLib3MFDynamicWrapperTable * wrapperTable = CLib3MFBaseClass::getDynamicWrapperTable(args.Holder()); if (wrapperTable == nullptr) throw std::runtime_error("Could not get wrapper table for Lib3MF method SetMeshBBoxOnly."); - if (wrapperTable->m_BoundaryShape_SetMeshBBoxOnly == nullptr) - throw std::runtime_error("Could not call Lib3MF method BoundaryShape::SetMeshBBoxOnly."); + if (wrapperTable->m_LevelSet_SetMeshBBoxOnly == nullptr) + throw std::runtime_error("Could not call Lib3MF method LevelSet::SetMeshBBoxOnly."); Lib3MFHandle instanceHandle = CLib3MFBaseClass::getHandle(args.Holder()); - Lib3MFResult errorCode = wrapperTable->m_BoundaryShape_SetMeshBBoxOnly(instanceHandle, bMeshBBoxOnly); + Lib3MFResult errorCode = wrapperTable->m_LevelSet_SetMeshBBoxOnly(instanceHandle, bMeshBBoxOnly); CheckError(isolate, wrapperTable, instanceHandle, errorCode); } catch (std::exception & E) { @@ -5858,7 +5858,7 @@ void CLib3MFBoundaryShape::SetMeshBBoxOnly(const FunctionCallbackInfo& ar } -void CLib3MFBoundaryShape::GetMeshBBoxOnly(const FunctionCallbackInfo& args) +void CLib3MFLevelSet::GetMeshBBoxOnly(const FunctionCallbackInfo& args) { Isolate* isolate = args.GetIsolate(); HandleScope scope(isolate); @@ -5867,10 +5867,10 @@ void CLib3MFBoundaryShape::GetMeshBBoxOnly(const FunctionCallbackInfo& ar sLib3MFDynamicWrapperTable * wrapperTable = CLib3MFBaseClass::getDynamicWrapperTable(args.Holder()); if (wrapperTable == nullptr) throw std::runtime_error("Could not get wrapper table for Lib3MF method GetMeshBBoxOnly."); - if (wrapperTable->m_BoundaryShape_GetMeshBBoxOnly == nullptr) - throw std::runtime_error("Could not call Lib3MF method BoundaryShape::GetMeshBBoxOnly."); + if (wrapperTable->m_LevelSet_GetMeshBBoxOnly == nullptr) + throw std::runtime_error("Could not call Lib3MF method LevelSet::GetMeshBBoxOnly."); Lib3MFHandle instanceHandle = CLib3MFBaseClass::getHandle(args.Holder()); - Lib3MFResult errorCode = wrapperTable->m_BoundaryShape_GetMeshBBoxOnly(instanceHandle, &bReturnMeshBBoxOnly); + Lib3MFResult errorCode = wrapperTable->m_LevelSet_GetMeshBBoxOnly(instanceHandle, &bReturnMeshBBoxOnly); CheckError(isolate, wrapperTable, instanceHandle, errorCode); args.GetReturnValue().Set(Boolean::New(isolate, bReturnMeshBBoxOnly)); @@ -5880,7 +5880,7 @@ void CLib3MFBoundaryShape::GetMeshBBoxOnly(const FunctionCallbackInfo& ar } -void CLib3MFBoundaryShape::SetMesh(const FunctionCallbackInfo& args) +void CLib3MFLevelSet::SetMesh(const FunctionCallbackInfo& args) { Isolate* isolate = args.GetIsolate(); HandleScope scope(isolate); @@ -5896,10 +5896,10 @@ void CLib3MFBoundaryShape::SetMesh(const FunctionCallbackInfo& args) sLib3MFDynamicWrapperTable * wrapperTable = CLib3MFBaseClass::getDynamicWrapperTable(args.Holder()); if (wrapperTable == nullptr) throw std::runtime_error("Could not get wrapper table for Lib3MF method SetMesh."); - if (wrapperTable->m_BoundaryShape_SetMesh == nullptr) - throw std::runtime_error("Could not call Lib3MF method BoundaryShape::SetMesh."); + if (wrapperTable->m_LevelSet_SetMesh == nullptr) + throw std::runtime_error("Could not call Lib3MF method LevelSet::SetMesh."); Lib3MFHandle instanceHandle = CLib3MFBaseClass::getHandle(args.Holder()); - Lib3MFResult errorCode = wrapperTable->m_BoundaryShape_SetMesh(instanceHandle, hTheMesh); + Lib3MFResult errorCode = wrapperTable->m_LevelSet_SetMesh(instanceHandle, hTheMesh); CheckError(isolate, wrapperTable, instanceHandle, errorCode); } catch (std::exception & E) { @@ -5908,7 +5908,7 @@ void CLib3MFBoundaryShape::SetMesh(const FunctionCallbackInfo& args) } -void CLib3MFBoundaryShape::GetMesh(const FunctionCallbackInfo& args) +void CLib3MFLevelSet::GetMesh(const FunctionCallbackInfo& args) { Isolate* isolate = args.GetIsolate(); HandleScope scope(isolate); @@ -5917,10 +5917,10 @@ void CLib3MFBoundaryShape::GetMesh(const FunctionCallbackInfo& args) sLib3MFDynamicWrapperTable * wrapperTable = CLib3MFBaseClass::getDynamicWrapperTable(args.Holder()); if (wrapperTable == nullptr) throw std::runtime_error("Could not get wrapper table for Lib3MF method GetMesh."); - if (wrapperTable->m_BoundaryShape_GetMesh == nullptr) - throw std::runtime_error("Could not call Lib3MF method BoundaryShape::GetMesh."); + if (wrapperTable->m_LevelSet_GetMesh == nullptr) + throw std::runtime_error("Could not call Lib3MF method LevelSet::GetMesh."); Lib3MFHandle instanceHandle = CLib3MFBaseClass::getHandle(args.Holder()); - Lib3MFResult errorCode = wrapperTable->m_BoundaryShape_GetMesh(instanceHandle, &hReturnTheMesh); + Lib3MFResult errorCode = wrapperTable->m_LevelSet_GetMesh(instanceHandle, &hReturnTheMesh); CheckError(isolate, wrapperTable, instanceHandle, errorCode); Local instanceObjTheMesh = CLib3MFMeshObject::NewInstance(args.Holder(), hReturnTheMesh); args.GetReturnValue().Set(instanceObjTheMesh); @@ -5931,7 +5931,7 @@ void CLib3MFBoundaryShape::GetMesh(const FunctionCallbackInfo& args) } -void CLib3MFBoundaryShape::GetVolumeData(const FunctionCallbackInfo& args) +void CLib3MFLevelSet::GetVolumeData(const FunctionCallbackInfo& args) { Isolate* isolate = args.GetIsolate(); HandleScope scope(isolate); @@ -5940,10 +5940,10 @@ void CLib3MFBoundaryShape::GetVolumeData(const FunctionCallbackInfo& args sLib3MFDynamicWrapperTable * wrapperTable = CLib3MFBaseClass::getDynamicWrapperTable(args.Holder()); if (wrapperTable == nullptr) throw std::runtime_error("Could not get wrapper table for Lib3MF method GetVolumeData."); - if (wrapperTable->m_BoundaryShape_GetVolumeData == nullptr) - throw std::runtime_error("Could not call Lib3MF method BoundaryShape::GetVolumeData."); + if (wrapperTable->m_LevelSet_GetVolumeData == nullptr) + throw std::runtime_error("Could not call Lib3MF method LevelSet::GetVolumeData."); Lib3MFHandle instanceHandle = CLib3MFBaseClass::getHandle(args.Holder()); - Lib3MFResult errorCode = wrapperTable->m_BoundaryShape_GetVolumeData(instanceHandle, &hReturnTheVolumeData); + Lib3MFResult errorCode = wrapperTable->m_LevelSet_GetVolumeData(instanceHandle, &hReturnTheVolumeData); CheckError(isolate, wrapperTable, instanceHandle, errorCode); Local instanceObjTheVolumeData = CLib3MFVolumeData::NewInstance(args.Holder(), hReturnTheVolumeData); args.GetReturnValue().Set(instanceObjTheVolumeData); @@ -5954,7 +5954,7 @@ void CLib3MFBoundaryShape::GetVolumeData(const FunctionCallbackInfo& args } -void CLib3MFBoundaryShape::SetVolumeData(const FunctionCallbackInfo& args) +void CLib3MFLevelSet::SetVolumeData(const FunctionCallbackInfo& args) { Isolate* isolate = args.GetIsolate(); HandleScope scope(isolate); @@ -5970,10 +5970,10 @@ void CLib3MFBoundaryShape::SetVolumeData(const FunctionCallbackInfo& args sLib3MFDynamicWrapperTable * wrapperTable = CLib3MFBaseClass::getDynamicWrapperTable(args.Holder()); if (wrapperTable == nullptr) throw std::runtime_error("Could not get wrapper table for Lib3MF method SetVolumeData."); - if (wrapperTable->m_BoundaryShape_SetVolumeData == nullptr) - throw std::runtime_error("Could not call Lib3MF method BoundaryShape::SetVolumeData."); + if (wrapperTable->m_LevelSet_SetVolumeData == nullptr) + throw std::runtime_error("Could not call Lib3MF method LevelSet::SetVolumeData."); Lib3MFHandle instanceHandle = CLib3MFBaseClass::getHandle(args.Holder()); - Lib3MFResult errorCode = wrapperTable->m_BoundaryShape_SetVolumeData(instanceHandle, hTheVolumeData); + Lib3MFResult errorCode = wrapperTable->m_LevelSet_SetVolumeData(instanceHandle, hTheVolumeData); CheckError(isolate, wrapperTable, instanceHandle, errorCode); } catch (std::exception & E) { @@ -21554,8 +21554,8 @@ void CLib3MFModel::Init() NODE_SET_PROTOTYPE_METHOD(tpl, "AddImplicitFunction", AddImplicitFunction); NODE_SET_PROTOTYPE_METHOD(tpl, "AddFunctionFromImage3D", AddFunctionFromImage3D); NODE_SET_PROTOTYPE_METHOD(tpl, "AddVolumeData", AddVolumeData); - NODE_SET_PROTOTYPE_METHOD(tpl, "AddBoundaryShape", AddBoundaryShape); - NODE_SET_PROTOTYPE_METHOD(tpl, "GetBoundaryShapes", GetBoundaryShapes); + NODE_SET_PROTOTYPE_METHOD(tpl, "AddLevelSet", AddLevelSet); + NODE_SET_PROTOTYPE_METHOD(tpl, "GetLevelSets", GetLevelSets); constructor.Reset(isolate, tpl->GetFunction(isolate->GetCurrentContext()).ToLocalChecked()); } @@ -23331,22 +23331,22 @@ void CLib3MFModel::AddVolumeData(const FunctionCallbackInfo& args) } -void CLib3MFModel::AddBoundaryShape(const FunctionCallbackInfo& args) +void CLib3MFModel::AddLevelSet(const FunctionCallbackInfo& args) { Isolate* isolate = args.GetIsolate(); HandleScope scope(isolate); try { - Lib3MFHandle hReturnBoundaryShapeInstance = nullptr; + Lib3MFHandle hReturnLevelSetInstance = nullptr; sLib3MFDynamicWrapperTable * wrapperTable = CLib3MFBaseClass::getDynamicWrapperTable(args.Holder()); if (wrapperTable == nullptr) - throw std::runtime_error("Could not get wrapper table for Lib3MF method AddBoundaryShape."); - if (wrapperTable->m_Model_AddBoundaryShape == nullptr) - throw std::runtime_error("Could not call Lib3MF method Model::AddBoundaryShape."); + throw std::runtime_error("Could not get wrapper table for Lib3MF method AddLevelSet."); + if (wrapperTable->m_Model_AddLevelSet == nullptr) + throw std::runtime_error("Could not call Lib3MF method Model::AddLevelSet."); Lib3MFHandle instanceHandle = CLib3MFBaseClass::getHandle(args.Holder()); - Lib3MFResult errorCode = wrapperTable->m_Model_AddBoundaryShape(instanceHandle, &hReturnBoundaryShapeInstance); + Lib3MFResult errorCode = wrapperTable->m_Model_AddLevelSet(instanceHandle, &hReturnLevelSetInstance); CheckError(isolate, wrapperTable, instanceHandle, errorCode); - Local instanceObjBoundaryShapeInstance = CLib3MFBoundaryShape::NewInstance(args.Holder(), hReturnBoundaryShapeInstance); - args.GetReturnValue().Set(instanceObjBoundaryShapeInstance); + Local instanceObjLevelSetInstance = CLib3MFLevelSet::NewInstance(args.Holder(), hReturnLevelSetInstance); + args.GetReturnValue().Set(instanceObjLevelSetInstance); } catch (std::exception & E) { RaiseError(isolate, E.what()); @@ -23354,7 +23354,7 @@ void CLib3MFModel::AddBoundaryShape(const FunctionCallbackInfo& args) } -void CLib3MFModel::GetBoundaryShapes(const FunctionCallbackInfo& args) +void CLib3MFModel::GetLevelSets(const FunctionCallbackInfo& args) { Isolate* isolate = args.GetIsolate(); HandleScope scope(isolate); @@ -23362,13 +23362,13 @@ void CLib3MFModel::GetBoundaryShapes(const FunctionCallbackInfo& args) Lib3MFHandle hReturnResourceIterator = nullptr; sLib3MFDynamicWrapperTable * wrapperTable = CLib3MFBaseClass::getDynamicWrapperTable(args.Holder()); if (wrapperTable == nullptr) - throw std::runtime_error("Could not get wrapper table for Lib3MF method GetBoundaryShapes."); - if (wrapperTable->m_Model_GetBoundaryShapes == nullptr) - throw std::runtime_error("Could not call Lib3MF method Model::GetBoundaryShapes."); + throw std::runtime_error("Could not get wrapper table for Lib3MF method GetLevelSets."); + if (wrapperTable->m_Model_GetLevelSets == nullptr) + throw std::runtime_error("Could not call Lib3MF method Model::GetLevelSets."); Lib3MFHandle instanceHandle = CLib3MFBaseClass::getHandle(args.Holder()); - Lib3MFResult errorCode = wrapperTable->m_Model_GetBoundaryShapes(instanceHandle, &hReturnResourceIterator); + Lib3MFResult errorCode = wrapperTable->m_Model_GetLevelSets(instanceHandle, &hReturnResourceIterator); CheckError(isolate, wrapperTable, instanceHandle, errorCode); - Local instanceObjResourceIterator = CLib3MFBoundaryShapeIterator::NewInstance(args.Holder(), hReturnResourceIterator); + Local instanceObjResourceIterator = CLib3MFLevelSetIterator::NewInstance(args.Holder(), hReturnResourceIterator); args.GetReturnValue().Set(instanceObjResourceIterator); } catch (std::exception & E) { diff --git a/Autogenerated/Bindings/NodeJS/lib3mf_nodewrapper.h b/Autogenerated/Bindings/NodeJS/lib3mf_nodewrapper.h index e8e1de31b..492dffb61 100644 --- a/Autogenerated/Bindings/NodeJS/lib3mf_nodewrapper.h +++ b/Autogenerated/Bindings/NodeJS/lib3mf_nodewrapper.h @@ -426,17 +426,17 @@ class CLib3MFFunctionIterator : public CLib3MFBaseClass { }; /************************************************************************************************************************* - Class CLib3MFBoundaryShapeIterator + Class CLib3MFLevelSetIterator **************************************************************************************************************************/ -class CLib3MFBoundaryShapeIterator : public CLib3MFBaseClass { +class CLib3MFLevelSetIterator : public CLib3MFBaseClass { private: static void New(const v8::FunctionCallbackInfo& args); static v8::Persistent constructor; - static void GetCurrentBoundaryShape(const v8::FunctionCallbackInfo& args); + static void GetCurrentLevelSet(const v8::FunctionCallbackInfo& args); public: - CLib3MFBoundaryShapeIterator(); - ~CLib3MFBoundaryShapeIterator(); + CLib3MFLevelSetIterator(); + ~CLib3MFLevelSetIterator(); static void Init(); static v8::Local NewInstance(v8::Local, Lib3MFHandle pHandle); @@ -573,9 +573,9 @@ class CLib3MFMeshObject : public CLib3MFBaseClass { }; /************************************************************************************************************************* - Class CLib3MFBoundaryShape + Class CLib3MFLevelSet **************************************************************************************************************************/ -class CLib3MFBoundaryShape : public CLib3MFBaseClass { +class CLib3MFLevelSet : public CLib3MFBaseClass { private: static void New(const v8::FunctionCallbackInfo& args); static v8::Persistent constructor; @@ -597,8 +597,8 @@ class CLib3MFBoundaryShape : public CLib3MFBaseClass { static void SetVolumeData(const v8::FunctionCallbackInfo& args); public: - CLib3MFBoundaryShape(); - ~CLib3MFBoundaryShape(); + CLib3MFLevelSet(); + ~CLib3MFLevelSet(); static void Init(); static v8::Local NewInstance(v8::Local, Lib3MFHandle pHandle); @@ -2575,8 +2575,8 @@ class CLib3MFModel : public CLib3MFBaseClass { static void AddImplicitFunction(const v8::FunctionCallbackInfo& args); static void AddFunctionFromImage3D(const v8::FunctionCallbackInfo& args); static void AddVolumeData(const v8::FunctionCallbackInfo& args); - static void AddBoundaryShape(const v8::FunctionCallbackInfo& args); - static void GetBoundaryShapes(const v8::FunctionCallbackInfo& args); + static void AddLevelSet(const v8::FunctionCallbackInfo& args); + static void GetLevelSets(const v8::FunctionCallbackInfo& args); public: CLib3MFModel(); diff --git a/Autogenerated/Bindings/NodeJS/lib3mf_types.h b/Autogenerated/Bindings/NodeJS/lib3mf_types.h index 924d2a66f..4e858bf19 100644 --- a/Autogenerated/Bindings/NodeJS/lib3mf_types.h +++ b/Autogenerated/Bindings/NodeJS/lib3mf_types.h @@ -222,12 +222,12 @@ typedef Lib3MFHandle Lib3MF_CompositeMaterialsIterator; typedef Lib3MFHandle Lib3MF_MultiPropertyGroupIterator; typedef Lib3MFHandle Lib3MF_Image3DIterator; typedef Lib3MFHandle Lib3MF_FunctionIterator; -typedef Lib3MFHandle Lib3MF_BoundaryShapeIterator; +typedef Lib3MFHandle Lib3MF_LevelSetIterator; typedef Lib3MFHandle Lib3MF_MetaData; typedef Lib3MFHandle Lib3MF_MetaDataGroup; typedef Lib3MFHandle Lib3MF_Object; typedef Lib3MFHandle Lib3MF_MeshObject; -typedef Lib3MFHandle Lib3MF_BoundaryShape; +typedef Lib3MFHandle Lib3MF_LevelSet; typedef Lib3MFHandle Lib3MF_BeamLattice; typedef Lib3MFHandle Lib3MF_FunctionReference; typedef Lib3MFHandle Lib3MF_VolumeDataColor; diff --git a/Autogenerated/Bindings/Pascal/Unit_Lib3MF.pas b/Autogenerated/Bindings/Pascal/Unit_Lib3MF.pas index be9c275a2..1914d9f29 100644 --- a/Autogenerated/Bindings/Pascal/Unit_Lib3MF.pas +++ b/Autogenerated/Bindings/Pascal/Unit_Lib3MF.pas @@ -489,12 +489,12 @@ TLib3MFCompositeMaterialsIterator = class; TLib3MFMultiPropertyGroupIterator = class; TLib3MFImage3DIterator = class; TLib3MFFunctionIterator = class; - TLib3MFBoundaryShapeIterator = class; + TLib3MFLevelSetIterator = class; TLib3MFMetaData = class; TLib3MFMetaDataGroup = class; TLib3MFObject = class; TLib3MFMeshObject = class; - TLib3MFBoundaryShape = class; + TLib3MFLevelSet = class; TLib3MFBeamLattice = class; TLib3MFFunctionReference = class; TLib3MFVolumeDataColor = class; @@ -1154,17 +1154,17 @@ TLib3MFModel = class; (************************************************************************************************************************* - Function type definitions for BoundaryShapeIterator + Function type definitions for LevelSetIterator **************************************************************************************************************************) (** - * Returns the BoundaryShape the iterator points at. + * Returns the LevelSet the iterator points at. * - * @param[in] pBoundaryShapeIterator - BoundaryShapeIterator instance. + * @param[in] pLevelSetIterator - LevelSetIterator instance. * @param[out] pResource - returns the MeshObject instance. * @return error code or 0 (success) *) - TLib3MFBoundaryShapeIterator_GetCurrentBoundaryShapeFunc = function(pBoundaryShapeIterator: TLib3MFHandle; out pResource: TLib3MFHandle): TLib3MFResult; cdecl; + TLib3MFLevelSetIterator_GetCurrentLevelSetFunc = function(pLevelSetIterator: TLib3MFHandle; out pResource: TLib3MFHandle): TLib3MFResult; cdecl; (************************************************************************************************************************* @@ -1781,154 +1781,154 @@ TLib3MFModel = class; (************************************************************************************************************************* - Function type definitions for BoundaryShape + Function type definitions for LevelSet **************************************************************************************************************************) (** * Returns the function that is used as boundary shape. * - * @param[in] pBoundaryShape - BoundaryShape instance. + * @param[in] pLevelSet - LevelSet instance. * @param[out] pTheFunction - the function to use as boundary shape * @return error code or 0 (success) *) - TLib3MFBoundaryShape_GetFunctionFunc = function(pBoundaryShape: TLib3MFHandle; out pTheFunction: TLib3MFHandle): TLib3MFResult; cdecl; + TLib3MFLevelSet_GetFunctionFunc = function(pLevelSet: TLib3MFHandle; out pTheFunction: TLib3MFHandle): TLib3MFResult; cdecl; (** * Sets the function to use as boundary shape. * - * @param[in] pBoundaryShape - BoundaryShape instance. + * @param[in] pLevelSet - LevelSet instance. * @param[in] pTheFunction - the function to use as boundary shape * @return error code or 0 (success) *) - TLib3MFBoundaryShape_SetFunctionFunc = function(pBoundaryShape: TLib3MFHandle; const pTheFunction: TLib3MFHandle): TLib3MFResult; cdecl; + TLib3MFLevelSet_SetFunctionFunc = function(pLevelSet: TLib3MFHandle; const pTheFunction: TLib3MFHandle): TLib3MFResult; cdecl; (** * Returns the transformation matrix into the coordinate system of the referenced Function. * - * @param[in] pBoundaryShape - BoundaryShape instance. + * @param[in] pLevelSet - LevelSet instance. * @param[out] pTransform - the transformation matrix * @return error code or 0 (success) *) - TLib3MFBoundaryShape_GetTransformFunc = function(pBoundaryShape: TLib3MFHandle; pTransform: PLib3MFTransform): TLib3MFResult; cdecl; + TLib3MFLevelSet_GetTransformFunc = function(pLevelSet: TLib3MFHandle; pTransform: PLib3MFTransform): TLib3MFResult; cdecl; (** * Sets the transformation matrix into the coordinate system of the referenced Function. * - * @param[in] pBoundaryShape - BoundaryShape instance. + * @param[in] pLevelSet - LevelSet instance. * @param[in] pTransform - new transformation matrix * @return error code or 0 (success) *) - TLib3MFBoundaryShape_SetTransformFunc = function(pBoundaryShape: TLib3MFHandle; const pTransform: PLib3MFTransform): TLib3MFResult; cdecl; + TLib3MFLevelSet_SetTransformFunc = function(pLevelSet: TLib3MFHandle; const pTransform: PLib3MFTransform): TLib3MFResult; cdecl; (** * Returns the name of the function output channel to use. * - * @param[in] pBoundaryShape - BoundaryShape instance. + * @param[in] pLevelSet - LevelSet instance. * @param[in] nChannelNameBufferSize - size of the buffer (including trailing 0) * @param[out] pChannelNameNeededChars - will be filled with the count of the written bytes, or needed buffer size. * @param[out] pChannelNameBuffer - buffer of the name of the function output channel, may be NULL * @return error code or 0 (success) *) - TLib3MFBoundaryShape_GetChannelNameFunc = function(pBoundaryShape: TLib3MFHandle; const nChannelNameBufferSize: Cardinal; out pChannelNameNeededChars: Cardinal; pChannelNameBuffer: PAnsiChar): TLib3MFResult; cdecl; + TLib3MFLevelSet_GetChannelNameFunc = function(pLevelSet: TLib3MFHandle; const nChannelNameBufferSize: Cardinal; out pChannelNameNeededChars: Cardinal; pChannelNameBuffer: PAnsiChar): TLib3MFResult; cdecl; (** * Sets the name of the function output channel to use. * - * @param[in] pBoundaryShape - BoundaryShape instance. + * @param[in] pLevelSet - LevelSet instance. * @param[in] pChannelName - new name of the function output channel * @return error code or 0 (success) *) - TLib3MFBoundaryShape_SetChannelNameFunc = function(pBoundaryShape: TLib3MFHandle; const pChannelName: PAnsiChar): TLib3MFResult; cdecl; + TLib3MFLevelSet_SetChannelNameFunc = function(pLevelSet: TLib3MFHandle; const pChannelName: PAnsiChar): TLib3MFResult; cdecl; (** * Sets the minimal feature size as a hint for the function evaluator * - * @param[in] pBoundaryShape - BoundaryShape instance. + * @param[in] pLevelSet - LevelSet instance. * @param[in] dMinFeatureSize - minimal feature size * @return error code or 0 (success) *) - TLib3MFBoundaryShape_SetMinFeatureSizeFunc = function(pBoundaryShape: TLib3MFHandle; const dMinFeatureSize: Double): TLib3MFResult; cdecl; + TLib3MFLevelSet_SetMinFeatureSizeFunc = function(pLevelSet: TLib3MFHandle; const dMinFeatureSize: Double): TLib3MFResult; cdecl; (** * Returns the minimal feature size as a hint for the function evaluator * - * @param[in] pBoundaryShape - BoundaryShape instance. + * @param[in] pLevelSet - LevelSet instance. * @param[out] pMinFeatureSize - minimal feature size * @return error code or 0 (success) *) - TLib3MFBoundaryShape_GetMinFeatureSizeFunc = function(pBoundaryShape: TLib3MFHandle; out pMinFeatureSize: Double): TLib3MFResult; cdecl; + TLib3MFLevelSet_GetMinFeatureSizeFunc = function(pLevelSet: TLib3MFHandle; out pMinFeatureSize: Double): TLib3MFResult; cdecl; (** * Sets the fallback value to use if the function evaluation fails (e.g. evaluates to NaN or Inf). * - * @param[in] pBoundaryShape - BoundaryShape instance. + * @param[in] pLevelSet - LevelSet instance. * @param[in] dFallBackValue - fallback value * @return error code or 0 (success) *) - TLib3MFBoundaryShape_SetFallBackValueFunc = function(pBoundaryShape: TLib3MFHandle; const dFallBackValue: Double): TLib3MFResult; cdecl; + TLib3MFLevelSet_SetFallBackValueFunc = function(pLevelSet: TLib3MFHandle; const dFallBackValue: Double): TLib3MFResult; cdecl; (** * Returns the fallback value to use if the function evaluation fails (e.g. evaluates to NaN or Inf). * - * @param[in] pBoundaryShape - BoundaryShape instance. + * @param[in] pLevelSet - LevelSet instance. * @param[out] pFallBackValue - fallback value * @return error code or 0 (success) *) - TLib3MFBoundaryShape_GetFallBackValueFunc = function(pBoundaryShape: TLib3MFHandle; out pFallBackValue: Double): TLib3MFResult; cdecl; + TLib3MFLevelSet_GetFallBackValueFunc = function(pLevelSet: TLib3MFHandle; out pFallBackValue: Double): TLib3MFResult; cdecl; (** * If set only the bounding box of the mesh is intersected with the boundary * - * @param[in] pBoundaryShape - BoundaryShape instance. + * @param[in] pLevelSet - LevelSet instance. * @param[in] bMeshBBoxOnly - If set only the bounding box of the mesh is intersected with the boundary * @return error code or 0 (success) *) - TLib3MFBoundaryShape_SetMeshBBoxOnlyFunc = function(pBoundaryShape: TLib3MFHandle; const bMeshBBoxOnly: Byte): TLib3MFResult; cdecl; + TLib3MFLevelSet_SetMeshBBoxOnlyFunc = function(pLevelSet: TLib3MFHandle; const bMeshBBoxOnly: Byte): TLib3MFResult; cdecl; (** * If set only the bounding box of the mesh is intersected with the boundary * - * @param[in] pBoundaryShape - BoundaryShape instance. + * @param[in] pLevelSet - LevelSet instance. * @param[out] pMeshBBoxOnly - If set only the bounding box of the mesh is intersected with the boundary * @return error code or 0 (success) *) - TLib3MFBoundaryShape_GetMeshBBoxOnlyFunc = function(pBoundaryShape: TLib3MFHandle; out pMeshBBoxOnly: Byte): TLib3MFResult; cdecl; + TLib3MFLevelSet_GetMeshBBoxOnlyFunc = function(pLevelSet: TLib3MFHandle; out pMeshBBoxOnly: Byte): TLib3MFResult; cdecl; (** * Sets the mesh to use as evaluation domain * - * @param[in] pBoundaryShape - BoundaryShape instance. + * @param[in] pLevelSet - LevelSet instance. * @param[in] pTheMesh - The mesh * @return error code or 0 (success) *) - TLib3MFBoundaryShape_SetMeshFunc = function(pBoundaryShape: TLib3MFHandle; const pTheMesh: TLib3MFHandle): TLib3MFResult; cdecl; + TLib3MFLevelSet_SetMeshFunc = function(pLevelSet: TLib3MFHandle; const pTheMesh: TLib3MFHandle): TLib3MFResult; cdecl; (** * Returns the mesh that is used as evaluation domain * - * @param[in] pBoundaryShape - BoundaryShape instance. + * @param[in] pLevelSet - LevelSet instance. * @param[out] pTheMesh - The mesh * @return error code or 0 (success) *) - TLib3MFBoundaryShape_GetMeshFunc = function(pBoundaryShape: TLib3MFHandle; out pTheMesh: TLib3MFHandle): TLib3MFResult; cdecl; + TLib3MFLevelSet_GetMeshFunc = function(pLevelSet: TLib3MFHandle; out pTheMesh: TLib3MFHandle): TLib3MFResult; cdecl; (** * Retrieves the VolumeData this MeshObject. * - * @param[in] pBoundaryShape - BoundaryShape instance. + * @param[in] pLevelSet - LevelSet instance. * @param[out] pTheVolumeData - the VolumeData of this MeshObject * @return error code or 0 (success) *) - TLib3MFBoundaryShape_GetVolumeDataFunc = function(pBoundaryShape: TLib3MFHandle; out pTheVolumeData: TLib3MFHandle): TLib3MFResult; cdecl; + TLib3MFLevelSet_GetVolumeDataFunc = function(pLevelSet: TLib3MFHandle; out pTheVolumeData: TLib3MFHandle): TLib3MFResult; cdecl; (** - * Sets the VolumeData of this BoundaryShape. + * Sets the VolumeData of this LevelSet. * - * @param[in] pBoundaryShape - BoundaryShape instance. + * @param[in] pLevelSet - LevelSet instance. * @param[in] pTheVolumeData - the VolumeData of this MeshObject * @return error code or 0 (success) *) - TLib3MFBoundaryShape_SetVolumeDataFunc = function(pBoundaryShape: TLib3MFHandle; const pTheVolumeData: TLib3MFHandle): TLib3MFResult; cdecl; + TLib3MFLevelSet_SetVolumeDataFunc = function(pLevelSet: TLib3MFHandle; const pTheVolumeData: TLib3MFHandle): TLib3MFResult; cdecl; (************************************************************************************************************************* @@ -6854,10 +6854,10 @@ TLib3MFModel = class; * adds an empty boundary shape object to the model. * * @param[in] pModel - Model instance. - * @param[out] pBoundaryShapeInstance - returns the mesh object instance + * @param[out] pLevelSetInstance - returns the mesh object instance * @return error code or 0 (success) *) - TLib3MFModel_AddBoundaryShapeFunc = function(pModel: TLib3MFHandle; out pBoundaryShapeInstance: TLib3MFHandle): TLib3MFResult; cdecl; + TLib3MFModel_AddLevelSetFunc = function(pModel: TLib3MFHandle; out pLevelSetInstance: TLib3MFHandle): TLib3MFResult; cdecl; (** * creates a resource iterator instance with all boundary shape resources. @@ -6866,7 +6866,7 @@ TLib3MFModel = class; * @param[out] pResourceIterator - returns the iterator instance. * @return error code or 0 (success) *) - TLib3MFModel_GetBoundaryShapesFunc = function(pModel: TLib3MFHandle; out pResourceIterator: TLib3MFHandle): TLib3MFResult; cdecl; + TLib3MFModel_GetLevelSetsFunc = function(pModel: TLib3MFHandle; out pResourceIterator: TLib3MFHandle): TLib3MFResult; cdecl; (************************************************************************************************************************* Global function definitions @@ -7341,14 +7341,14 @@ TLib3MFFunctionIterator = class(TLib3MFResourceIterator) (************************************************************************************************************************* - Class definition for BoundaryShapeIterator + Class definition for LevelSetIterator **************************************************************************************************************************) - TLib3MFBoundaryShapeIterator = class(TLib3MFResourceIterator) + TLib3MFLevelSetIterator = class(TLib3MFResourceIterator) public constructor Create(AWrapper: TLib3MFWrapper; AHandle: TLib3MFHandle); destructor Destroy; override; - function GetCurrentBoundaryShape(): TLib3MFBoundaryShape; + function GetCurrentLevelSet(): TLib3MFLevelSet; end; @@ -7458,10 +7458,10 @@ TLib3MFMeshObject = class(TLib3MFObject) (************************************************************************************************************************* - Class definition for BoundaryShape + Class definition for LevelSet **************************************************************************************************************************) - TLib3MFBoundaryShape = class(TLib3MFObject) + TLib3MFLevelSet = class(TLib3MFObject) public constructor Create(AWrapper: TLib3MFWrapper; AHandle: TLib3MFHandle); destructor Destroy; override; @@ -8921,8 +8921,8 @@ TLib3MFModel = class(TLib3MFBase) function AddImplicitFunction(): TLib3MFImplicitFunction; function AddFunctionFromImage3D(const AImage3DInstance: TLib3MFImage3D): TLib3MFFunctionFromImage3D; function AddVolumeData(): TLib3MFVolumeData; - function AddBoundaryShape(): TLib3MFBoundaryShape; - function GetBoundaryShapes(): TLib3MFBoundaryShapeIterator; + function AddLevelSet(): TLib3MFLevelSet; + function GetLevelSets(): TLib3MFLevelSetIterator; end; (************************************************************************************************************************* @@ -8982,7 +8982,7 @@ TLib3MFWrapper = class(TObject) FLib3MFMultiPropertyGroupIterator_GetCurrentMultiPropertyGroupFunc: TLib3MFMultiPropertyGroupIterator_GetCurrentMultiPropertyGroupFunc; FLib3MFImage3DIterator_GetCurrentImage3DFunc: TLib3MFImage3DIterator_GetCurrentImage3DFunc; FLib3MFFunctionIterator_GetCurrentFunctionFunc: TLib3MFFunctionIterator_GetCurrentFunctionFunc; - FLib3MFBoundaryShapeIterator_GetCurrentBoundaryShapeFunc: TLib3MFBoundaryShapeIterator_GetCurrentBoundaryShapeFunc; + FLib3MFLevelSetIterator_GetCurrentLevelSetFunc: TLib3MFLevelSetIterator_GetCurrentLevelSetFunc; FLib3MFMetaData_GetNameSpaceFunc: TLib3MFMetaData_GetNameSpaceFunc; FLib3MFMetaData_SetNameSpaceFunc: TLib3MFMetaData_SetNameSpaceFunc; FLib3MFMetaData_GetNameFunc: TLib3MFMetaData_GetNameFunc; @@ -9044,22 +9044,22 @@ TLib3MFWrapper = class(TObject) FLib3MFMeshObject_BeamLatticeFunc: TLib3MFMeshObject_BeamLatticeFunc; FLib3MFMeshObject_GetVolumeDataFunc: TLib3MFMeshObject_GetVolumeDataFunc; FLib3MFMeshObject_SetVolumeDataFunc: TLib3MFMeshObject_SetVolumeDataFunc; - FLib3MFBoundaryShape_GetFunctionFunc: TLib3MFBoundaryShape_GetFunctionFunc; - FLib3MFBoundaryShape_SetFunctionFunc: TLib3MFBoundaryShape_SetFunctionFunc; - FLib3MFBoundaryShape_GetTransformFunc: TLib3MFBoundaryShape_GetTransformFunc; - FLib3MFBoundaryShape_SetTransformFunc: TLib3MFBoundaryShape_SetTransformFunc; - FLib3MFBoundaryShape_GetChannelNameFunc: TLib3MFBoundaryShape_GetChannelNameFunc; - FLib3MFBoundaryShape_SetChannelNameFunc: TLib3MFBoundaryShape_SetChannelNameFunc; - FLib3MFBoundaryShape_SetMinFeatureSizeFunc: TLib3MFBoundaryShape_SetMinFeatureSizeFunc; - FLib3MFBoundaryShape_GetMinFeatureSizeFunc: TLib3MFBoundaryShape_GetMinFeatureSizeFunc; - FLib3MFBoundaryShape_SetFallBackValueFunc: TLib3MFBoundaryShape_SetFallBackValueFunc; - FLib3MFBoundaryShape_GetFallBackValueFunc: TLib3MFBoundaryShape_GetFallBackValueFunc; - FLib3MFBoundaryShape_SetMeshBBoxOnlyFunc: TLib3MFBoundaryShape_SetMeshBBoxOnlyFunc; - FLib3MFBoundaryShape_GetMeshBBoxOnlyFunc: TLib3MFBoundaryShape_GetMeshBBoxOnlyFunc; - FLib3MFBoundaryShape_SetMeshFunc: TLib3MFBoundaryShape_SetMeshFunc; - FLib3MFBoundaryShape_GetMeshFunc: TLib3MFBoundaryShape_GetMeshFunc; - FLib3MFBoundaryShape_GetVolumeDataFunc: TLib3MFBoundaryShape_GetVolumeDataFunc; - FLib3MFBoundaryShape_SetVolumeDataFunc: TLib3MFBoundaryShape_SetVolumeDataFunc; + FLib3MFLevelSet_GetFunctionFunc: TLib3MFLevelSet_GetFunctionFunc; + FLib3MFLevelSet_SetFunctionFunc: TLib3MFLevelSet_SetFunctionFunc; + FLib3MFLevelSet_GetTransformFunc: TLib3MFLevelSet_GetTransformFunc; + FLib3MFLevelSet_SetTransformFunc: TLib3MFLevelSet_SetTransformFunc; + FLib3MFLevelSet_GetChannelNameFunc: TLib3MFLevelSet_GetChannelNameFunc; + FLib3MFLevelSet_SetChannelNameFunc: TLib3MFLevelSet_SetChannelNameFunc; + FLib3MFLevelSet_SetMinFeatureSizeFunc: TLib3MFLevelSet_SetMinFeatureSizeFunc; + FLib3MFLevelSet_GetMinFeatureSizeFunc: TLib3MFLevelSet_GetMinFeatureSizeFunc; + FLib3MFLevelSet_SetFallBackValueFunc: TLib3MFLevelSet_SetFallBackValueFunc; + FLib3MFLevelSet_GetFallBackValueFunc: TLib3MFLevelSet_GetFallBackValueFunc; + FLib3MFLevelSet_SetMeshBBoxOnlyFunc: TLib3MFLevelSet_SetMeshBBoxOnlyFunc; + FLib3MFLevelSet_GetMeshBBoxOnlyFunc: TLib3MFLevelSet_GetMeshBBoxOnlyFunc; + FLib3MFLevelSet_SetMeshFunc: TLib3MFLevelSet_SetMeshFunc; + FLib3MFLevelSet_GetMeshFunc: TLib3MFLevelSet_GetMeshFunc; + FLib3MFLevelSet_GetVolumeDataFunc: TLib3MFLevelSet_GetVolumeDataFunc; + FLib3MFLevelSet_SetVolumeDataFunc: TLib3MFLevelSet_SetVolumeDataFunc; FLib3MFBeamLattice_GetMinLengthFunc: TLib3MFBeamLattice_GetMinLengthFunc; FLib3MFBeamLattice_SetMinLengthFunc: TLib3MFBeamLattice_SetMinLengthFunc; FLib3MFBeamLattice_GetClippingFunc: TLib3MFBeamLattice_GetClippingFunc; @@ -9510,8 +9510,8 @@ TLib3MFWrapper = class(TObject) FLib3MFModel_AddImplicitFunctionFunc: TLib3MFModel_AddImplicitFunctionFunc; FLib3MFModel_AddFunctionFromImage3DFunc: TLib3MFModel_AddFunctionFromImage3DFunc; FLib3MFModel_AddVolumeDataFunc: TLib3MFModel_AddVolumeDataFunc; - FLib3MFModel_AddBoundaryShapeFunc: TLib3MFModel_AddBoundaryShapeFunc; - FLib3MFModel_GetBoundaryShapesFunc: TLib3MFModel_GetBoundaryShapesFunc; + FLib3MFModel_AddLevelSetFunc: TLib3MFModel_AddLevelSetFunc; + FLib3MFModel_GetLevelSetsFunc: TLib3MFModel_GetLevelSetsFunc; FLib3MFGetLibraryVersionFunc: TLib3MFGetLibraryVersionFunc; FLib3MFGetPrereleaseInformationFunc: TLib3MFGetPrereleaseInformationFunc; FLib3MFGetBuildInformationFunc: TLib3MFGetBuildInformationFunc; @@ -9591,7 +9591,7 @@ TLib3MFWrapper = class(TObject) property Lib3MFMultiPropertyGroupIterator_GetCurrentMultiPropertyGroupFunc: TLib3MFMultiPropertyGroupIterator_GetCurrentMultiPropertyGroupFunc read FLib3MFMultiPropertyGroupIterator_GetCurrentMultiPropertyGroupFunc; property Lib3MFImage3DIterator_GetCurrentImage3DFunc: TLib3MFImage3DIterator_GetCurrentImage3DFunc read FLib3MFImage3DIterator_GetCurrentImage3DFunc; property Lib3MFFunctionIterator_GetCurrentFunctionFunc: TLib3MFFunctionIterator_GetCurrentFunctionFunc read FLib3MFFunctionIterator_GetCurrentFunctionFunc; - property Lib3MFBoundaryShapeIterator_GetCurrentBoundaryShapeFunc: TLib3MFBoundaryShapeIterator_GetCurrentBoundaryShapeFunc read FLib3MFBoundaryShapeIterator_GetCurrentBoundaryShapeFunc; + property Lib3MFLevelSetIterator_GetCurrentLevelSetFunc: TLib3MFLevelSetIterator_GetCurrentLevelSetFunc read FLib3MFLevelSetIterator_GetCurrentLevelSetFunc; property Lib3MFMetaData_GetNameSpaceFunc: TLib3MFMetaData_GetNameSpaceFunc read FLib3MFMetaData_GetNameSpaceFunc; property Lib3MFMetaData_SetNameSpaceFunc: TLib3MFMetaData_SetNameSpaceFunc read FLib3MFMetaData_SetNameSpaceFunc; property Lib3MFMetaData_GetNameFunc: TLib3MFMetaData_GetNameFunc read FLib3MFMetaData_GetNameFunc; @@ -9653,22 +9653,22 @@ TLib3MFWrapper = class(TObject) property Lib3MFMeshObject_BeamLatticeFunc: TLib3MFMeshObject_BeamLatticeFunc read FLib3MFMeshObject_BeamLatticeFunc; property Lib3MFMeshObject_GetVolumeDataFunc: TLib3MFMeshObject_GetVolumeDataFunc read FLib3MFMeshObject_GetVolumeDataFunc; property Lib3MFMeshObject_SetVolumeDataFunc: TLib3MFMeshObject_SetVolumeDataFunc read FLib3MFMeshObject_SetVolumeDataFunc; - property Lib3MFBoundaryShape_GetFunctionFunc: TLib3MFBoundaryShape_GetFunctionFunc read FLib3MFBoundaryShape_GetFunctionFunc; - property Lib3MFBoundaryShape_SetFunctionFunc: TLib3MFBoundaryShape_SetFunctionFunc read FLib3MFBoundaryShape_SetFunctionFunc; - property Lib3MFBoundaryShape_GetTransformFunc: TLib3MFBoundaryShape_GetTransformFunc read FLib3MFBoundaryShape_GetTransformFunc; - property Lib3MFBoundaryShape_SetTransformFunc: TLib3MFBoundaryShape_SetTransformFunc read FLib3MFBoundaryShape_SetTransformFunc; - property Lib3MFBoundaryShape_GetChannelNameFunc: TLib3MFBoundaryShape_GetChannelNameFunc read FLib3MFBoundaryShape_GetChannelNameFunc; - property Lib3MFBoundaryShape_SetChannelNameFunc: TLib3MFBoundaryShape_SetChannelNameFunc read FLib3MFBoundaryShape_SetChannelNameFunc; - property Lib3MFBoundaryShape_SetMinFeatureSizeFunc: TLib3MFBoundaryShape_SetMinFeatureSizeFunc read FLib3MFBoundaryShape_SetMinFeatureSizeFunc; - property Lib3MFBoundaryShape_GetMinFeatureSizeFunc: TLib3MFBoundaryShape_GetMinFeatureSizeFunc read FLib3MFBoundaryShape_GetMinFeatureSizeFunc; - property Lib3MFBoundaryShape_SetFallBackValueFunc: TLib3MFBoundaryShape_SetFallBackValueFunc read FLib3MFBoundaryShape_SetFallBackValueFunc; - property Lib3MFBoundaryShape_GetFallBackValueFunc: TLib3MFBoundaryShape_GetFallBackValueFunc read FLib3MFBoundaryShape_GetFallBackValueFunc; - property Lib3MFBoundaryShape_SetMeshBBoxOnlyFunc: TLib3MFBoundaryShape_SetMeshBBoxOnlyFunc read FLib3MFBoundaryShape_SetMeshBBoxOnlyFunc; - property Lib3MFBoundaryShape_GetMeshBBoxOnlyFunc: TLib3MFBoundaryShape_GetMeshBBoxOnlyFunc read FLib3MFBoundaryShape_GetMeshBBoxOnlyFunc; - property Lib3MFBoundaryShape_SetMeshFunc: TLib3MFBoundaryShape_SetMeshFunc read FLib3MFBoundaryShape_SetMeshFunc; - property Lib3MFBoundaryShape_GetMeshFunc: TLib3MFBoundaryShape_GetMeshFunc read FLib3MFBoundaryShape_GetMeshFunc; - property Lib3MFBoundaryShape_GetVolumeDataFunc: TLib3MFBoundaryShape_GetVolumeDataFunc read FLib3MFBoundaryShape_GetVolumeDataFunc; - property Lib3MFBoundaryShape_SetVolumeDataFunc: TLib3MFBoundaryShape_SetVolumeDataFunc read FLib3MFBoundaryShape_SetVolumeDataFunc; + property Lib3MFLevelSet_GetFunctionFunc: TLib3MFLevelSet_GetFunctionFunc read FLib3MFLevelSet_GetFunctionFunc; + property Lib3MFLevelSet_SetFunctionFunc: TLib3MFLevelSet_SetFunctionFunc read FLib3MFLevelSet_SetFunctionFunc; + property Lib3MFLevelSet_GetTransformFunc: TLib3MFLevelSet_GetTransformFunc read FLib3MFLevelSet_GetTransformFunc; + property Lib3MFLevelSet_SetTransformFunc: TLib3MFLevelSet_SetTransformFunc read FLib3MFLevelSet_SetTransformFunc; + property Lib3MFLevelSet_GetChannelNameFunc: TLib3MFLevelSet_GetChannelNameFunc read FLib3MFLevelSet_GetChannelNameFunc; + property Lib3MFLevelSet_SetChannelNameFunc: TLib3MFLevelSet_SetChannelNameFunc read FLib3MFLevelSet_SetChannelNameFunc; + property Lib3MFLevelSet_SetMinFeatureSizeFunc: TLib3MFLevelSet_SetMinFeatureSizeFunc read FLib3MFLevelSet_SetMinFeatureSizeFunc; + property Lib3MFLevelSet_GetMinFeatureSizeFunc: TLib3MFLevelSet_GetMinFeatureSizeFunc read FLib3MFLevelSet_GetMinFeatureSizeFunc; + property Lib3MFLevelSet_SetFallBackValueFunc: TLib3MFLevelSet_SetFallBackValueFunc read FLib3MFLevelSet_SetFallBackValueFunc; + property Lib3MFLevelSet_GetFallBackValueFunc: TLib3MFLevelSet_GetFallBackValueFunc read FLib3MFLevelSet_GetFallBackValueFunc; + property Lib3MFLevelSet_SetMeshBBoxOnlyFunc: TLib3MFLevelSet_SetMeshBBoxOnlyFunc read FLib3MFLevelSet_SetMeshBBoxOnlyFunc; + property Lib3MFLevelSet_GetMeshBBoxOnlyFunc: TLib3MFLevelSet_GetMeshBBoxOnlyFunc read FLib3MFLevelSet_GetMeshBBoxOnlyFunc; + property Lib3MFLevelSet_SetMeshFunc: TLib3MFLevelSet_SetMeshFunc read FLib3MFLevelSet_SetMeshFunc; + property Lib3MFLevelSet_GetMeshFunc: TLib3MFLevelSet_GetMeshFunc read FLib3MFLevelSet_GetMeshFunc; + property Lib3MFLevelSet_GetVolumeDataFunc: TLib3MFLevelSet_GetVolumeDataFunc read FLib3MFLevelSet_GetVolumeDataFunc; + property Lib3MFLevelSet_SetVolumeDataFunc: TLib3MFLevelSet_SetVolumeDataFunc read FLib3MFLevelSet_SetVolumeDataFunc; property Lib3MFBeamLattice_GetMinLengthFunc: TLib3MFBeamLattice_GetMinLengthFunc read FLib3MFBeamLattice_GetMinLengthFunc; property Lib3MFBeamLattice_SetMinLengthFunc: TLib3MFBeamLattice_SetMinLengthFunc read FLib3MFBeamLattice_SetMinLengthFunc; property Lib3MFBeamLattice_GetClippingFunc: TLib3MFBeamLattice_GetClippingFunc read FLib3MFBeamLattice_GetClippingFunc; @@ -10119,8 +10119,8 @@ TLib3MFWrapper = class(TObject) property Lib3MFModel_AddImplicitFunctionFunc: TLib3MFModel_AddImplicitFunctionFunc read FLib3MFModel_AddImplicitFunctionFunc; property Lib3MFModel_AddFunctionFromImage3DFunc: TLib3MFModel_AddFunctionFromImage3DFunc read FLib3MFModel_AddFunctionFromImage3DFunc; property Lib3MFModel_AddVolumeDataFunc: TLib3MFModel_AddVolumeDataFunc read FLib3MFModel_AddVolumeDataFunc; - property Lib3MFModel_AddBoundaryShapeFunc: TLib3MFModel_AddBoundaryShapeFunc read FLib3MFModel_AddBoundaryShapeFunc; - property Lib3MFModel_GetBoundaryShapesFunc: TLib3MFModel_GetBoundaryShapesFunc read FLib3MFModel_GetBoundaryShapesFunc; + property Lib3MFModel_AddLevelSetFunc: TLib3MFModel_AddLevelSetFunc read FLib3MFModel_AddLevelSetFunc; + property Lib3MFModel_GetLevelSetsFunc: TLib3MFModel_GetLevelSetsFunc read FLib3MFModel_GetLevelSetsFunc; property Lib3MFGetLibraryVersionFunc: TLib3MFGetLibraryVersionFunc read FLib3MFGetLibraryVersionFunc; property Lib3MFGetPrereleaseInformationFunc: TLib3MFGetPrereleaseInformationFunc read FLib3MFGetPrereleaseInformationFunc; property Lib3MFGetBuildInformationFunc: TLib3MFGetBuildInformationFunc read FLib3MFGetBuildInformationFunc; @@ -10238,12 +10238,12 @@ TLib3MFPolymorphicFactory<_T:class; _B> = record function TLib3MFPolymorphicFactoryMakeMultiPropertyGroupIterator(Wrapper: TLib3MFWrapper; Handle: TLib3MFHandle): TLIB3MFMultiPropertyGroupIterator; function TLib3MFPolymorphicFactoryMakeImage3DIterator(Wrapper: TLib3MFWrapper; Handle: TLib3MFHandle): TLIB3MFImage3DIterator; function TLib3MFPolymorphicFactoryMakeFunctionIterator(Wrapper: TLib3MFWrapper; Handle: TLib3MFHandle): TLIB3MFFunctionIterator; - function TLib3MFPolymorphicFactoryMakeBoundaryShapeIterator(Wrapper: TLib3MFWrapper; Handle: TLib3MFHandle): TLIB3MFBoundaryShapeIterator; + function TLib3MFPolymorphicFactoryMakeLevelSetIterator(Wrapper: TLib3MFWrapper; Handle: TLib3MFHandle): TLIB3MFLevelSetIterator; function TLib3MFPolymorphicFactoryMakeMetaData(Wrapper: TLib3MFWrapper; Handle: TLib3MFHandle): TLIB3MFMetaData; function TLib3MFPolymorphicFactoryMakeMetaDataGroup(Wrapper: TLib3MFWrapper; Handle: TLib3MFHandle): TLIB3MFMetaDataGroup; function TLib3MFPolymorphicFactoryMakeObject(Wrapper: TLib3MFWrapper; Handle: TLib3MFHandle): TLIB3MFObject; function TLib3MFPolymorphicFactoryMakeMeshObject(Wrapper: TLib3MFWrapper; Handle: TLib3MFHandle): TLIB3MFMeshObject; - function TLib3MFPolymorphicFactoryMakeBoundaryShape(Wrapper: TLib3MFWrapper; Handle: TLib3MFHandle): TLIB3MFBoundaryShape; + function TLib3MFPolymorphicFactoryMakeLevelSet(Wrapper: TLib3MFWrapper; Handle: TLib3MFHandle): TLIB3MFLevelSet; function TLib3MFPolymorphicFactoryMakeBeamLattice(Wrapper: TLib3MFWrapper; Handle: TLib3MFHandle): TLIB3MFBeamLattice; function TLib3MFPolymorphicFactoryMakeFunctionReference(Wrapper: TLib3MFWrapper; Handle: TLib3MFHandle): TLIB3MFFunctionReference; function TLib3MFPolymorphicFactoryMakeVolumeDataColor(Wrapper: TLib3MFWrapper; Handle: TLib3MFHandle): TLIB3MFVolumeDataColor; @@ -11059,12 +11059,12 @@ implementation QWord($C2BDF5D8CBBDB1F0): begin Obj := TLIB3MFMultiPropertyGroupIterator.Create(Wrapper, Handle); if Obj.inheritsFrom(_T) then Result := Obj as _T; end; // First 64 bits of SHA1 of a string: "Lib3MF::MultiPropertyGroupIterator" QWord($C4B8EC00A82BF336): begin Obj := TLIB3MFImage3DIterator.Create(Wrapper, Handle); if Obj.inheritsFrom(_T) then Result := Obj as _T; end; // First 64 bits of SHA1 of a string: "Lib3MF::Image3DIterator" QWord($40E9035363ACE65E): begin Obj := TLIB3MFFunctionIterator.Create(Wrapper, Handle); if Obj.inheritsFrom(_T) then Result := Obj as _T; end; // First 64 bits of SHA1 of a string: "Lib3MF::FunctionIterator" - QWord($9FBC898CF30CDEF3): begin Obj := TLIB3MFBoundaryShapeIterator.Create(Wrapper, Handle); if Obj.inheritsFrom(_T) then Result := Obj as _T; end; // First 64 bits of SHA1 of a string: "Lib3MF::BoundaryShapeIterator" + QWord($9FBC898CF30CDEF3): begin Obj := TLIB3MFLevelSetIterator.Create(Wrapper, Handle); if Obj.inheritsFrom(_T) then Result := Obj as _T; end; // First 64 bits of SHA1 of a string: "Lib3MF::LevelSetIterator" QWord($D17716D063DE2C22): begin Obj := TLIB3MFMetaData.Create(Wrapper, Handle); if Obj.inheritsFrom(_T) then Result := Obj as _T; end; // First 64 bits of SHA1 of a string: "Lib3MF::MetaData" QWord($0C3B85369E9B25D3): begin Obj := TLIB3MFMetaDataGroup.Create(Wrapper, Handle); if Obj.inheritsFrom(_T) then Result := Obj as _T; end; // First 64 bits of SHA1 of a string: "Lib3MF::MetaDataGroup" QWord($2DA2136F577A779C): begin Obj := TLIB3MFObject.Create(Wrapper, Handle); if Obj.inheritsFrom(_T) then Result := Obj as _T; end; // First 64 bits of SHA1 of a string: "Lib3MF::Object" QWord($3B3A6DC6EC610497): begin Obj := TLIB3MFMeshObject.Create(Wrapper, Handle); if Obj.inheritsFrom(_T) then Result := Obj as _T; end; // First 64 bits of SHA1 of a string: "Lib3MF::MeshObject" - QWord($2BE0E57BA81B2ECB): begin Obj := TLIB3MFBoundaryShape.Create(Wrapper, Handle); if Obj.inheritsFrom(_T) then Result := Obj as _T; end; // First 64 bits of SHA1 of a string: "Lib3MF::BoundaryShape" + QWord($2BE0E57BA81B2ECB): begin Obj := TLIB3MFLevelSet.Create(Wrapper, Handle); if Obj.inheritsFrom(_T) then Result := Obj as _T; end; // First 64 bits of SHA1 of a string: "Lib3MF::LevelSet" QWord($63B3B461B30B4BA5): begin Obj := TLIB3MFBeamLattice.Create(Wrapper, Handle); if Obj.inheritsFrom(_T) then Result := Obj as _T; end; // First 64 bits of SHA1 of a string: "Lib3MF::BeamLattice" QWord($4DF17E76926221C2): begin Obj := TLIB3MFFunctionReference.Create(Wrapper, Handle); if Obj.inheritsFrom(_T) then Result := Obj as _T; end; // First 64 bits of SHA1 of a string: "Lib3MF::FunctionReference" QWord($D85B5B6143E787E3): begin Obj := TLIB3MFVolumeDataColor.Create(Wrapper, Handle); if Obj.inheritsFrom(_T) then Result := Obj as _T; end; // First 64 bits of SHA1 of a string: "Lib3MF::VolumeDataColor" @@ -11230,9 +11230,9 @@ implementation begin Result := TLib3MFPolymorphicFactory.Make(Wrapper, Handle); end; - function TLib3MFPolymorphicFactoryMakeBoundaryShapeIterator(Wrapper: TLib3MFWrapper; Handle: TLib3MFHandle): TLIB3MFBoundaryShapeIterator; + function TLib3MFPolymorphicFactoryMakeLevelSetIterator(Wrapper: TLib3MFWrapper; Handle: TLib3MFHandle): TLIB3MFLevelSetIterator; begin - Result := TLib3MFPolymorphicFactory.Make(Wrapper, Handle); + Result := TLib3MFPolymorphicFactory.Make(Wrapper, Handle); end; function TLib3MFPolymorphicFactoryMakeMetaData(Wrapper: TLib3MFWrapper; Handle: TLib3MFHandle): TLIB3MFMetaData; begin @@ -11250,9 +11250,9 @@ implementation begin Result := TLib3MFPolymorphicFactory.Make(Wrapper, Handle); end; - function TLib3MFPolymorphicFactoryMakeBoundaryShape(Wrapper: TLib3MFWrapper; Handle: TLib3MFHandle): TLIB3MFBoundaryShape; + function TLib3MFPolymorphicFactoryMakeLevelSet(Wrapper: TLib3MFWrapper; Handle: TLib3MFHandle): TLIB3MFLevelSet; begin - Result := TLib3MFPolymorphicFactory.Make(Wrapper, Handle); + Result := TLib3MFPolymorphicFactory.Make(Wrapper, Handle); end; function TLib3MFPolymorphicFactoryMakeBeamLattice(Wrapper: TLib3MFWrapper; Handle: TLib3MFHandle): TLIB3MFBeamLattice; begin @@ -12374,28 +12374,28 @@ implementation end; (************************************************************************************************************************* - Class implementation for BoundaryShapeIterator + Class implementation for LevelSetIterator **************************************************************************************************************************) - constructor TLib3MFBoundaryShapeIterator.Create(AWrapper: TLib3MFWrapper; AHandle: TLib3MFHandle); + constructor TLib3MFLevelSetIterator.Create(AWrapper: TLib3MFWrapper; AHandle: TLib3MFHandle); begin inherited Create(AWrapper, AHandle); end; - destructor TLib3MFBoundaryShapeIterator.Destroy; + destructor TLib3MFLevelSetIterator.Destroy; begin inherited; end; - function TLib3MFBoundaryShapeIterator.GetCurrentBoundaryShape(): TLib3MFBoundaryShape; + function TLib3MFLevelSetIterator.GetCurrentLevelSet(): TLib3MFLevelSet; var HResource: TLib3MFHandle; begin Result := nil; HResource := nil; - FWrapper.CheckError(Self, FWrapper.Lib3MFBoundaryShapeIterator_GetCurrentBoundaryShapeFunc(FHandle, HResource)); + FWrapper.CheckError(Self, FWrapper.Lib3MFLevelSetIterator_GetCurrentLevelSetFunc(FHandle, HResource)); if Assigned(HResource) then - Result := TLib3MFPolymorphicFactory.Make(FWrapper, HResource); + Result := TLib3MFPolymorphicFactory.Make(FWrapper, HResource); end; (************************************************************************************************************************* @@ -12996,31 +12996,31 @@ implementation end; (************************************************************************************************************************* - Class implementation for BoundaryShape + Class implementation for LevelSet **************************************************************************************************************************) - constructor TLib3MFBoundaryShape.Create(AWrapper: TLib3MFWrapper; AHandle: TLib3MFHandle); + constructor TLib3MFLevelSet.Create(AWrapper: TLib3MFWrapper; AHandle: TLib3MFHandle); begin inherited Create(AWrapper, AHandle); end; - destructor TLib3MFBoundaryShape.Destroy; + destructor TLib3MFLevelSet.Destroy; begin inherited; end; - function TLib3MFBoundaryShape.GetFunction(): TLib3MFFunction; + function TLib3MFLevelSet.GetFunction(): TLib3MFFunction; var HTheFunction: TLib3MFHandle; begin Result := nil; HTheFunction := nil; - FWrapper.CheckError(Self, FWrapper.Lib3MFBoundaryShape_GetFunctionFunc(FHandle, HTheFunction)); + FWrapper.CheckError(Self, FWrapper.Lib3MFLevelSet_GetFunctionFunc(FHandle, HTheFunction)); if Assigned(HTheFunction) then Result := TLib3MFPolymorphicFactory.Make(FWrapper, HTheFunction); end; - procedure TLib3MFBoundaryShape.SetFunction(const ATheFunction: TLib3MFFunction); + procedure TLib3MFLevelSet.SetFunction(const ATheFunction: TLib3MFFunction); var ATheFunctionHandle: TLib3MFHandle; begin @@ -13028,20 +13028,20 @@ implementation ATheFunctionHandle := ATheFunction.TheHandle else raise ELib3MFException.CreateCustomMessage(LIB3MF_ERROR_INVALIDPARAM, 'ATheFunction is a nil value.'); - FWrapper.CheckError(Self, FWrapper.Lib3MFBoundaryShape_SetFunctionFunc(FHandle, ATheFunctionHandle)); + FWrapper.CheckError(Self, FWrapper.Lib3MFLevelSet_SetFunctionFunc(FHandle, ATheFunctionHandle)); end; - function TLib3MFBoundaryShape.GetTransform(): TLib3MFTransform; + function TLib3MFLevelSet.GetTransform(): TLib3MFTransform; begin - FWrapper.CheckError(Self, FWrapper.Lib3MFBoundaryShape_GetTransformFunc(FHandle, @Result)); + FWrapper.CheckError(Self, FWrapper.Lib3MFLevelSet_GetTransformFunc(FHandle, @Result)); end; - procedure TLib3MFBoundaryShape.SetTransform(const ATransform: TLib3MFTransform); + procedure TLib3MFLevelSet.SetTransform(const ATransform: TLib3MFTransform); begin - FWrapper.CheckError(Self, FWrapper.Lib3MFBoundaryShape_SetTransformFunc(FHandle, @ATransform)); + FWrapper.CheckError(Self, FWrapper.Lib3MFLevelSet_SetTransformFunc(FHandle, @ATransform)); end; - function TLib3MFBoundaryShape.GetChannelName(): String; + function TLib3MFLevelSet.GetChannelName(): String; var bytesNeededChannelName: Cardinal; bytesWrittenChannelName: Cardinal; @@ -13049,52 +13049,52 @@ implementation begin bytesNeededChannelName:= 0; bytesWrittenChannelName:= 0; - FWrapper.CheckError(Self, FWrapper.Lib3MFBoundaryShape_GetChannelNameFunc(FHandle, 0, bytesNeededChannelName, nil)); + FWrapper.CheckError(Self, FWrapper.Lib3MFLevelSet_GetChannelNameFunc(FHandle, 0, bytesNeededChannelName, nil)); SetLength(bufferChannelName, bytesNeededChannelName); - FWrapper.CheckError(Self, FWrapper.Lib3MFBoundaryShape_GetChannelNameFunc(FHandle, bytesNeededChannelName, bytesWrittenChannelName, @bufferChannelName[0])); + FWrapper.CheckError(Self, FWrapper.Lib3MFLevelSet_GetChannelNameFunc(FHandle, bytesNeededChannelName, bytesWrittenChannelName, @bufferChannelName[0])); Result := StrPas(@bufferChannelName[0]); end; - procedure TLib3MFBoundaryShape.SetChannelName(const AChannelName: String); + procedure TLib3MFLevelSet.SetChannelName(const AChannelName: String); begin - FWrapper.CheckError(Self, FWrapper.Lib3MFBoundaryShape_SetChannelNameFunc(FHandle, PAnsiChar(AChannelName))); + FWrapper.CheckError(Self, FWrapper.Lib3MFLevelSet_SetChannelNameFunc(FHandle, PAnsiChar(AChannelName))); end; - procedure TLib3MFBoundaryShape.SetMinFeatureSize(const AMinFeatureSize: Double); + procedure TLib3MFLevelSet.SetMinFeatureSize(const AMinFeatureSize: Double); begin - FWrapper.CheckError(Self, FWrapper.Lib3MFBoundaryShape_SetMinFeatureSizeFunc(FHandle, AMinFeatureSize)); + FWrapper.CheckError(Self, FWrapper.Lib3MFLevelSet_SetMinFeatureSizeFunc(FHandle, AMinFeatureSize)); end; - function TLib3MFBoundaryShape.GetMinFeatureSize(): Double; + function TLib3MFLevelSet.GetMinFeatureSize(): Double; begin - FWrapper.CheckError(Self, FWrapper.Lib3MFBoundaryShape_GetMinFeatureSizeFunc(FHandle, Result)); + FWrapper.CheckError(Self, FWrapper.Lib3MFLevelSet_GetMinFeatureSizeFunc(FHandle, Result)); end; - procedure TLib3MFBoundaryShape.SetFallBackValue(const AFallBackValue: Double); + procedure TLib3MFLevelSet.SetFallBackValue(const AFallBackValue: Double); begin - FWrapper.CheckError(Self, FWrapper.Lib3MFBoundaryShape_SetFallBackValueFunc(FHandle, AFallBackValue)); + FWrapper.CheckError(Self, FWrapper.Lib3MFLevelSet_SetFallBackValueFunc(FHandle, AFallBackValue)); end; - function TLib3MFBoundaryShape.GetFallBackValue(): Double; + function TLib3MFLevelSet.GetFallBackValue(): Double; begin - FWrapper.CheckError(Self, FWrapper.Lib3MFBoundaryShape_GetFallBackValueFunc(FHandle, Result)); + FWrapper.CheckError(Self, FWrapper.Lib3MFLevelSet_GetFallBackValueFunc(FHandle, Result)); end; - procedure TLib3MFBoundaryShape.SetMeshBBoxOnly(const AMeshBBoxOnly: Boolean); + procedure TLib3MFLevelSet.SetMeshBBoxOnly(const AMeshBBoxOnly: Boolean); begin - FWrapper.CheckError(Self, FWrapper.Lib3MFBoundaryShape_SetMeshBBoxOnlyFunc(FHandle, Ord(AMeshBBoxOnly))); + FWrapper.CheckError(Self, FWrapper.Lib3MFLevelSet_SetMeshBBoxOnlyFunc(FHandle, Ord(AMeshBBoxOnly))); end; - function TLib3MFBoundaryShape.GetMeshBBoxOnly(): Boolean; + function TLib3MFLevelSet.GetMeshBBoxOnly(): Boolean; var ResultMeshBBoxOnly: Byte; begin ResultMeshBBoxOnly := 0; - FWrapper.CheckError(Self, FWrapper.Lib3MFBoundaryShape_GetMeshBBoxOnlyFunc(FHandle, ResultMeshBBoxOnly)); + FWrapper.CheckError(Self, FWrapper.Lib3MFLevelSet_GetMeshBBoxOnlyFunc(FHandle, ResultMeshBBoxOnly)); Result := (ResultMeshBBoxOnly <> 0); end; - procedure TLib3MFBoundaryShape.SetMesh(const ATheMesh: TLib3MFMeshObject); + procedure TLib3MFLevelSet.SetMesh(const ATheMesh: TLib3MFMeshObject); var ATheMeshHandle: TLib3MFHandle; begin @@ -13102,32 +13102,32 @@ implementation ATheMeshHandle := ATheMesh.TheHandle else raise ELib3MFException.CreateCustomMessage(LIB3MF_ERROR_INVALIDPARAM, 'ATheMesh is a nil value.'); - FWrapper.CheckError(Self, FWrapper.Lib3MFBoundaryShape_SetMeshFunc(FHandle, ATheMeshHandle)); + FWrapper.CheckError(Self, FWrapper.Lib3MFLevelSet_SetMeshFunc(FHandle, ATheMeshHandle)); end; - function TLib3MFBoundaryShape.GetMesh(): TLib3MFMeshObject; + function TLib3MFLevelSet.GetMesh(): TLib3MFMeshObject; var HTheMesh: TLib3MFHandle; begin Result := nil; HTheMesh := nil; - FWrapper.CheckError(Self, FWrapper.Lib3MFBoundaryShape_GetMeshFunc(FHandle, HTheMesh)); + FWrapper.CheckError(Self, FWrapper.Lib3MFLevelSet_GetMeshFunc(FHandle, HTheMesh)); if Assigned(HTheMesh) then Result := TLib3MFPolymorphicFactory.Make(FWrapper, HTheMesh); end; - function TLib3MFBoundaryShape.GetVolumeData(): TLib3MFVolumeData; + function TLib3MFLevelSet.GetVolumeData(): TLib3MFVolumeData; var HTheVolumeData: TLib3MFHandle; begin Result := nil; HTheVolumeData := nil; - FWrapper.CheckError(Self, FWrapper.Lib3MFBoundaryShape_GetVolumeDataFunc(FHandle, HTheVolumeData)); + FWrapper.CheckError(Self, FWrapper.Lib3MFLevelSet_GetVolumeDataFunc(FHandle, HTheVolumeData)); if Assigned(HTheVolumeData) then Result := TLib3MFPolymorphicFactory.Make(FWrapper, HTheVolumeData); end; - procedure TLib3MFBoundaryShape.SetVolumeData(const ATheVolumeData: TLib3MFVolumeData); + procedure TLib3MFLevelSet.SetVolumeData(const ATheVolumeData: TLib3MFVolumeData); var ATheVolumeDataHandle: TLib3MFHandle; begin @@ -13135,7 +13135,7 @@ implementation ATheVolumeDataHandle := ATheVolumeData.TheHandle else raise ELib3MFException.CreateCustomMessage(LIB3MF_ERROR_INVALIDPARAM, 'ATheVolumeData is a nil value.'); - FWrapper.CheckError(Self, FWrapper.Lib3MFBoundaryShape_SetVolumeDataFunc(FHandle, ATheVolumeDataHandle)); + FWrapper.CheckError(Self, FWrapper.Lib3MFLevelSet_SetVolumeDataFunc(FHandle, ATheVolumeDataHandle)); end; (************************************************************************************************************************* @@ -18785,26 +18785,26 @@ implementation Result := TLib3MFPolymorphicFactory.Make(FWrapper, HVolumeDataInstance); end; - function TLib3MFModel.AddBoundaryShape(): TLib3MFBoundaryShape; + function TLib3MFModel.AddLevelSet(): TLib3MFLevelSet; var - HBoundaryShapeInstance: TLib3MFHandle; + HLevelSetInstance: TLib3MFHandle; begin Result := nil; - HBoundaryShapeInstance := nil; - FWrapper.CheckError(Self, FWrapper.Lib3MFModel_AddBoundaryShapeFunc(FHandle, HBoundaryShapeInstance)); - if Assigned(HBoundaryShapeInstance) then - Result := TLib3MFPolymorphicFactory.Make(FWrapper, HBoundaryShapeInstance); + HLevelSetInstance := nil; + FWrapper.CheckError(Self, FWrapper.Lib3MFModel_AddLevelSetFunc(FHandle, HLevelSetInstance)); + if Assigned(HLevelSetInstance) then + Result := TLib3MFPolymorphicFactory.Make(FWrapper, HLevelSetInstance); end; - function TLib3MFModel.GetBoundaryShapes(): TLib3MFBoundaryShapeIterator; + function TLib3MFModel.GetLevelSets(): TLib3MFLevelSetIterator; var HResourceIterator: TLib3MFHandle; begin Result := nil; HResourceIterator := nil; - FWrapper.CheckError(Self, FWrapper.Lib3MFModel_GetBoundaryShapesFunc(FHandle, HResourceIterator)); + FWrapper.CheckError(Self, FWrapper.Lib3MFModel_GetLevelSetsFunc(FHandle, HResourceIterator)); if Assigned(HResourceIterator) then - Result := TLib3MFPolymorphicFactory.Make(FWrapper, HResourceIterator); + Result := TLib3MFPolymorphicFactory.Make(FWrapper, HResourceIterator); end; (************************************************************************************************************************* @@ -18879,7 +18879,7 @@ implementation FLib3MFMultiPropertyGroupIterator_GetCurrentMultiPropertyGroupFunc := LoadFunction('lib3mf_multipropertygroupiterator_getcurrentmultipropertygroup'); FLib3MFImage3DIterator_GetCurrentImage3DFunc := LoadFunction('lib3mf_image3diterator_getcurrentimage3d'); FLib3MFFunctionIterator_GetCurrentFunctionFunc := LoadFunction('lib3mf_functioniterator_getcurrentfunction'); - FLib3MFBoundaryShapeIterator_GetCurrentBoundaryShapeFunc := LoadFunction('lib3mf_boundaryshapeiterator_getcurrentboundaryshape'); + FLib3MFLevelSetIterator_GetCurrentLevelSetFunc := LoadFunction('lib3mf_levelsetiterator_getcurrentlevelset'); FLib3MFMetaData_GetNameSpaceFunc := LoadFunction('lib3mf_metadata_getnamespace'); FLib3MFMetaData_SetNameSpaceFunc := LoadFunction('lib3mf_metadata_setnamespace'); FLib3MFMetaData_GetNameFunc := LoadFunction('lib3mf_metadata_getname'); @@ -18941,22 +18941,22 @@ implementation FLib3MFMeshObject_BeamLatticeFunc := LoadFunction('lib3mf_meshobject_beamlattice'); FLib3MFMeshObject_GetVolumeDataFunc := LoadFunction('lib3mf_meshobject_getvolumedata'); FLib3MFMeshObject_SetVolumeDataFunc := LoadFunction('lib3mf_meshobject_setvolumedata'); - FLib3MFBoundaryShape_GetFunctionFunc := LoadFunction('lib3mf_boundaryshape_getfunction'); - FLib3MFBoundaryShape_SetFunctionFunc := LoadFunction('lib3mf_boundaryshape_setfunction'); - FLib3MFBoundaryShape_GetTransformFunc := LoadFunction('lib3mf_boundaryshape_gettransform'); - FLib3MFBoundaryShape_SetTransformFunc := LoadFunction('lib3mf_boundaryshape_settransform'); - FLib3MFBoundaryShape_GetChannelNameFunc := LoadFunction('lib3mf_boundaryshape_getchannelname'); - FLib3MFBoundaryShape_SetChannelNameFunc := LoadFunction('lib3mf_boundaryshape_setchannelname'); - FLib3MFBoundaryShape_SetMinFeatureSizeFunc := LoadFunction('lib3mf_boundaryshape_setminfeaturesize'); - FLib3MFBoundaryShape_GetMinFeatureSizeFunc := LoadFunction('lib3mf_boundaryshape_getminfeaturesize'); - FLib3MFBoundaryShape_SetFallBackValueFunc := LoadFunction('lib3mf_boundaryshape_setfallbackvalue'); - FLib3MFBoundaryShape_GetFallBackValueFunc := LoadFunction('lib3mf_boundaryshape_getfallbackvalue'); - FLib3MFBoundaryShape_SetMeshBBoxOnlyFunc := LoadFunction('lib3mf_boundaryshape_setmeshbboxonly'); - FLib3MFBoundaryShape_GetMeshBBoxOnlyFunc := LoadFunction('lib3mf_boundaryshape_getmeshbboxonly'); - FLib3MFBoundaryShape_SetMeshFunc := LoadFunction('lib3mf_boundaryshape_setmesh'); - FLib3MFBoundaryShape_GetMeshFunc := LoadFunction('lib3mf_boundaryshape_getmesh'); - FLib3MFBoundaryShape_GetVolumeDataFunc := LoadFunction('lib3mf_boundaryshape_getvolumedata'); - FLib3MFBoundaryShape_SetVolumeDataFunc := LoadFunction('lib3mf_boundaryshape_setvolumedata'); + FLib3MFLevelSet_GetFunctionFunc := LoadFunction('lib3mf_levelset_getfunction'); + FLib3MFLevelSet_SetFunctionFunc := LoadFunction('lib3mf_levelset_setfunction'); + FLib3MFLevelSet_GetTransformFunc := LoadFunction('lib3mf_levelset_gettransform'); + FLib3MFLevelSet_SetTransformFunc := LoadFunction('lib3mf_levelset_settransform'); + FLib3MFLevelSet_GetChannelNameFunc := LoadFunction('lib3mf_levelset_getchannelname'); + FLib3MFLevelSet_SetChannelNameFunc := LoadFunction('lib3mf_levelset_setchannelname'); + FLib3MFLevelSet_SetMinFeatureSizeFunc := LoadFunction('lib3mf_levelset_setminfeaturesize'); + FLib3MFLevelSet_GetMinFeatureSizeFunc := LoadFunction('lib3mf_levelset_getminfeaturesize'); + FLib3MFLevelSet_SetFallBackValueFunc := LoadFunction('lib3mf_levelset_setfallbackvalue'); + FLib3MFLevelSet_GetFallBackValueFunc := LoadFunction('lib3mf_levelset_getfallbackvalue'); + FLib3MFLevelSet_SetMeshBBoxOnlyFunc := LoadFunction('lib3mf_levelset_setmeshbboxonly'); + FLib3MFLevelSet_GetMeshBBoxOnlyFunc := LoadFunction('lib3mf_levelset_getmeshbboxonly'); + FLib3MFLevelSet_SetMeshFunc := LoadFunction('lib3mf_levelset_setmesh'); + FLib3MFLevelSet_GetMeshFunc := LoadFunction('lib3mf_levelset_getmesh'); + FLib3MFLevelSet_GetVolumeDataFunc := LoadFunction('lib3mf_levelset_getvolumedata'); + FLib3MFLevelSet_SetVolumeDataFunc := LoadFunction('lib3mf_levelset_setvolumedata'); FLib3MFBeamLattice_GetMinLengthFunc := LoadFunction('lib3mf_beamlattice_getminlength'); FLib3MFBeamLattice_SetMinLengthFunc := LoadFunction('lib3mf_beamlattice_setminlength'); FLib3MFBeamLattice_GetClippingFunc := LoadFunction('lib3mf_beamlattice_getclipping'); @@ -19407,8 +19407,8 @@ implementation FLib3MFModel_AddImplicitFunctionFunc := LoadFunction('lib3mf_model_addimplicitfunction'); FLib3MFModel_AddFunctionFromImage3DFunc := LoadFunction('lib3mf_model_addfunctionfromimage3d'); FLib3MFModel_AddVolumeDataFunc := LoadFunction('lib3mf_model_addvolumedata'); - FLib3MFModel_AddBoundaryShapeFunc := LoadFunction('lib3mf_model_addboundaryshape'); - FLib3MFModel_GetBoundaryShapesFunc := LoadFunction('lib3mf_model_getboundaryshapes'); + FLib3MFModel_AddLevelSetFunc := LoadFunction('lib3mf_model_addlevelset'); + FLib3MFModel_GetLevelSetsFunc := LoadFunction('lib3mf_model_getlevelsets'); FLib3MFGetLibraryVersionFunc := LoadFunction('lib3mf_getlibraryversion'); FLib3MFGetPrereleaseInformationFunc := LoadFunction('lib3mf_getprereleaseinformation'); FLib3MFGetBuildInformationFunc := LoadFunction('lib3mf_getbuildinformation'); @@ -19589,7 +19589,7 @@ implementation AResult := ALookupMethod(PAnsiChar('lib3mf_functioniterator_getcurrentfunction'), @FLib3MFFunctionIterator_GetCurrentFunctionFunc); if AResult <> LIB3MF_SUCCESS then raise ELib3MFException.CreateCustomMessage(LIB3MF_ERROR_COULDNOTLOADLIBRARY, ''); - AResult := ALookupMethod(PAnsiChar('lib3mf_boundaryshapeiterator_getcurrentboundaryshape'), @FLib3MFBoundaryShapeIterator_GetCurrentBoundaryShapeFunc); + AResult := ALookupMethod(PAnsiChar('lib3mf_levelsetiterator_getcurrentlevelset'), @FLib3MFLevelSetIterator_GetCurrentLevelSetFunc); if AResult <> LIB3MF_SUCCESS then raise ELib3MFException.CreateCustomMessage(LIB3MF_ERROR_COULDNOTLOADLIBRARY, ''); AResult := ALookupMethod(PAnsiChar('lib3mf_metadata_getnamespace'), @FLib3MFMetaData_GetNameSpaceFunc); @@ -19775,52 +19775,52 @@ implementation AResult := ALookupMethod(PAnsiChar('lib3mf_meshobject_setvolumedata'), @FLib3MFMeshObject_SetVolumeDataFunc); if AResult <> LIB3MF_SUCCESS then raise ELib3MFException.CreateCustomMessage(LIB3MF_ERROR_COULDNOTLOADLIBRARY, ''); - AResult := ALookupMethod(PAnsiChar('lib3mf_boundaryshape_getfunction'), @FLib3MFBoundaryShape_GetFunctionFunc); + AResult := ALookupMethod(PAnsiChar('lib3mf_levelset_getfunction'), @FLib3MFLevelSet_GetFunctionFunc); if AResult <> LIB3MF_SUCCESS then raise ELib3MFException.CreateCustomMessage(LIB3MF_ERROR_COULDNOTLOADLIBRARY, ''); - AResult := ALookupMethod(PAnsiChar('lib3mf_boundaryshape_setfunction'), @FLib3MFBoundaryShape_SetFunctionFunc); + AResult := ALookupMethod(PAnsiChar('lib3mf_levelset_setfunction'), @FLib3MFLevelSet_SetFunctionFunc); if AResult <> LIB3MF_SUCCESS then raise ELib3MFException.CreateCustomMessage(LIB3MF_ERROR_COULDNOTLOADLIBRARY, ''); - AResult := ALookupMethod(PAnsiChar('lib3mf_boundaryshape_gettransform'), @FLib3MFBoundaryShape_GetTransformFunc); + AResult := ALookupMethod(PAnsiChar('lib3mf_levelset_gettransform'), @FLib3MFLevelSet_GetTransformFunc); if AResult <> LIB3MF_SUCCESS then raise ELib3MFException.CreateCustomMessage(LIB3MF_ERROR_COULDNOTLOADLIBRARY, ''); - AResult := ALookupMethod(PAnsiChar('lib3mf_boundaryshape_settransform'), @FLib3MFBoundaryShape_SetTransformFunc); + AResult := ALookupMethod(PAnsiChar('lib3mf_levelset_settransform'), @FLib3MFLevelSet_SetTransformFunc); if AResult <> LIB3MF_SUCCESS then raise ELib3MFException.CreateCustomMessage(LIB3MF_ERROR_COULDNOTLOADLIBRARY, ''); - AResult := ALookupMethod(PAnsiChar('lib3mf_boundaryshape_getchannelname'), @FLib3MFBoundaryShape_GetChannelNameFunc); + AResult := ALookupMethod(PAnsiChar('lib3mf_levelset_getchannelname'), @FLib3MFLevelSet_GetChannelNameFunc); if AResult <> LIB3MF_SUCCESS then raise ELib3MFException.CreateCustomMessage(LIB3MF_ERROR_COULDNOTLOADLIBRARY, ''); - AResult := ALookupMethod(PAnsiChar('lib3mf_boundaryshape_setchannelname'), @FLib3MFBoundaryShape_SetChannelNameFunc); + AResult := ALookupMethod(PAnsiChar('lib3mf_levelset_setchannelname'), @FLib3MFLevelSet_SetChannelNameFunc); if AResult <> LIB3MF_SUCCESS then raise ELib3MFException.CreateCustomMessage(LIB3MF_ERROR_COULDNOTLOADLIBRARY, ''); - AResult := ALookupMethod(PAnsiChar('lib3mf_boundaryshape_setminfeaturesize'), @FLib3MFBoundaryShape_SetMinFeatureSizeFunc); + AResult := ALookupMethod(PAnsiChar('lib3mf_levelset_setminfeaturesize'), @FLib3MFLevelSet_SetMinFeatureSizeFunc); if AResult <> LIB3MF_SUCCESS then raise ELib3MFException.CreateCustomMessage(LIB3MF_ERROR_COULDNOTLOADLIBRARY, ''); - AResult := ALookupMethod(PAnsiChar('lib3mf_boundaryshape_getminfeaturesize'), @FLib3MFBoundaryShape_GetMinFeatureSizeFunc); + AResult := ALookupMethod(PAnsiChar('lib3mf_levelset_getminfeaturesize'), @FLib3MFLevelSet_GetMinFeatureSizeFunc); if AResult <> LIB3MF_SUCCESS then raise ELib3MFException.CreateCustomMessage(LIB3MF_ERROR_COULDNOTLOADLIBRARY, ''); - AResult := ALookupMethod(PAnsiChar('lib3mf_boundaryshape_setfallbackvalue'), @FLib3MFBoundaryShape_SetFallBackValueFunc); + AResult := ALookupMethod(PAnsiChar('lib3mf_levelset_setfallbackvalue'), @FLib3MFLevelSet_SetFallBackValueFunc); if AResult <> LIB3MF_SUCCESS then raise ELib3MFException.CreateCustomMessage(LIB3MF_ERROR_COULDNOTLOADLIBRARY, ''); - AResult := ALookupMethod(PAnsiChar('lib3mf_boundaryshape_getfallbackvalue'), @FLib3MFBoundaryShape_GetFallBackValueFunc); + AResult := ALookupMethod(PAnsiChar('lib3mf_levelset_getfallbackvalue'), @FLib3MFLevelSet_GetFallBackValueFunc); if AResult <> LIB3MF_SUCCESS then raise ELib3MFException.CreateCustomMessage(LIB3MF_ERROR_COULDNOTLOADLIBRARY, ''); - AResult := ALookupMethod(PAnsiChar('lib3mf_boundaryshape_setmeshbboxonly'), @FLib3MFBoundaryShape_SetMeshBBoxOnlyFunc); + AResult := ALookupMethod(PAnsiChar('lib3mf_levelset_setmeshbboxonly'), @FLib3MFLevelSet_SetMeshBBoxOnlyFunc); if AResult <> LIB3MF_SUCCESS then raise ELib3MFException.CreateCustomMessage(LIB3MF_ERROR_COULDNOTLOADLIBRARY, ''); - AResult := ALookupMethod(PAnsiChar('lib3mf_boundaryshape_getmeshbboxonly'), @FLib3MFBoundaryShape_GetMeshBBoxOnlyFunc); + AResult := ALookupMethod(PAnsiChar('lib3mf_levelset_getmeshbboxonly'), @FLib3MFLevelSet_GetMeshBBoxOnlyFunc); if AResult <> LIB3MF_SUCCESS then raise ELib3MFException.CreateCustomMessage(LIB3MF_ERROR_COULDNOTLOADLIBRARY, ''); - AResult := ALookupMethod(PAnsiChar('lib3mf_boundaryshape_setmesh'), @FLib3MFBoundaryShape_SetMeshFunc); + AResult := ALookupMethod(PAnsiChar('lib3mf_levelset_setmesh'), @FLib3MFLevelSet_SetMeshFunc); if AResult <> LIB3MF_SUCCESS then raise ELib3MFException.CreateCustomMessage(LIB3MF_ERROR_COULDNOTLOADLIBRARY, ''); - AResult := ALookupMethod(PAnsiChar('lib3mf_boundaryshape_getmesh'), @FLib3MFBoundaryShape_GetMeshFunc); + AResult := ALookupMethod(PAnsiChar('lib3mf_levelset_getmesh'), @FLib3MFLevelSet_GetMeshFunc); if AResult <> LIB3MF_SUCCESS then raise ELib3MFException.CreateCustomMessage(LIB3MF_ERROR_COULDNOTLOADLIBRARY, ''); - AResult := ALookupMethod(PAnsiChar('lib3mf_boundaryshape_getvolumedata'), @FLib3MFBoundaryShape_GetVolumeDataFunc); + AResult := ALookupMethod(PAnsiChar('lib3mf_levelset_getvolumedata'), @FLib3MFLevelSet_GetVolumeDataFunc); if AResult <> LIB3MF_SUCCESS then raise ELib3MFException.CreateCustomMessage(LIB3MF_ERROR_COULDNOTLOADLIBRARY, ''); - AResult := ALookupMethod(PAnsiChar('lib3mf_boundaryshape_setvolumedata'), @FLib3MFBoundaryShape_SetVolumeDataFunc); + AResult := ALookupMethod(PAnsiChar('lib3mf_levelset_setvolumedata'), @FLib3MFLevelSet_SetVolumeDataFunc); if AResult <> LIB3MF_SUCCESS then raise ELib3MFException.CreateCustomMessage(LIB3MF_ERROR_COULDNOTLOADLIBRARY, ''); AResult := ALookupMethod(PAnsiChar('lib3mf_beamlattice_getminlength'), @FLib3MFBeamLattice_GetMinLengthFunc); @@ -21173,10 +21173,10 @@ implementation AResult := ALookupMethod(PAnsiChar('lib3mf_model_addvolumedata'), @FLib3MFModel_AddVolumeDataFunc); if AResult <> LIB3MF_SUCCESS then raise ELib3MFException.CreateCustomMessage(LIB3MF_ERROR_COULDNOTLOADLIBRARY, ''); - AResult := ALookupMethod(PAnsiChar('lib3mf_model_addboundaryshape'), @FLib3MFModel_AddBoundaryShapeFunc); + AResult := ALookupMethod(PAnsiChar('lib3mf_model_addlevelset'), @FLib3MFModel_AddLevelSetFunc); if AResult <> LIB3MF_SUCCESS then raise ELib3MFException.CreateCustomMessage(LIB3MF_ERROR_COULDNOTLOADLIBRARY, ''); - AResult := ALookupMethod(PAnsiChar('lib3mf_model_getboundaryshapes'), @FLib3MFModel_GetBoundaryShapesFunc); + AResult := ALookupMethod(PAnsiChar('lib3mf_model_getlevelsets'), @FLib3MFModel_GetLevelSetsFunc); if AResult <> LIB3MF_SUCCESS then raise ELib3MFException.CreateCustomMessage(LIB3MF_ERROR_COULDNOTLOADLIBRARY, ''); AResult := ALookupMethod(PAnsiChar('lib3mf_getlibraryversion'), @FLib3MFGetLibraryVersionFunc); diff --git a/Autogenerated/Bindings/Python/Lib3MF.py b/Autogenerated/Bindings/Python/Lib3MF.py index 4a9efb5b3..643bb4a7d 100644 --- a/Autogenerated/Bindings/Python/Lib3MF.py +++ b/Autogenerated/Bindings/Python/Lib3MF.py @@ -184,7 +184,7 @@ class FunctionTable: lib3mf_multipropertygroupiterator_getcurrentmultipropertygroup = None lib3mf_image3diterator_getcurrentimage3d = None lib3mf_functioniterator_getcurrentfunction = None - lib3mf_boundaryshapeiterator_getcurrentboundaryshape = None + lib3mf_levelsetiterator_getcurrentlevelset = None lib3mf_metadata_getnamespace = None lib3mf_metadata_setnamespace = None lib3mf_metadata_getname = None @@ -246,22 +246,22 @@ class FunctionTable: lib3mf_meshobject_beamlattice = None lib3mf_meshobject_getvolumedata = None lib3mf_meshobject_setvolumedata = None - lib3mf_boundaryshape_getfunction = None - lib3mf_boundaryshape_setfunction = None - lib3mf_boundaryshape_gettransform = None - lib3mf_boundaryshape_settransform = None - lib3mf_boundaryshape_getchannelname = None - lib3mf_boundaryshape_setchannelname = None - lib3mf_boundaryshape_setminfeaturesize = None - lib3mf_boundaryshape_getminfeaturesize = None - lib3mf_boundaryshape_setfallbackvalue = None - lib3mf_boundaryshape_getfallbackvalue = None - lib3mf_boundaryshape_setmeshbboxonly = None - lib3mf_boundaryshape_getmeshbboxonly = None - lib3mf_boundaryshape_setmesh = None - lib3mf_boundaryshape_getmesh = None - lib3mf_boundaryshape_getvolumedata = None - lib3mf_boundaryshape_setvolumedata = None + lib3mf_levelset_getfunction = None + lib3mf_levelset_setfunction = None + lib3mf_levelset_gettransform = None + lib3mf_levelset_settransform = None + lib3mf_levelset_getchannelname = None + lib3mf_levelset_setchannelname = None + lib3mf_levelset_setminfeaturesize = None + lib3mf_levelset_getminfeaturesize = None + lib3mf_levelset_setfallbackvalue = None + lib3mf_levelset_getfallbackvalue = None + lib3mf_levelset_setmeshbboxonly = None + lib3mf_levelset_getmeshbboxonly = None + lib3mf_levelset_setmesh = None + lib3mf_levelset_getmesh = None + lib3mf_levelset_getvolumedata = None + lib3mf_levelset_setvolumedata = None lib3mf_beamlattice_getminlength = None lib3mf_beamlattice_setminlength = None lib3mf_beamlattice_getclipping = None @@ -712,8 +712,8 @@ class FunctionTable: lib3mf_model_addimplicitfunction = None lib3mf_model_addfunctionfromimage3d = None lib3mf_model_addvolumedata = None - lib3mf_model_addboundaryshape = None - lib3mf_model_getboundaryshapes = None + lib3mf_model_addlevelset = None + lib3mf_model_getlevelsets = None '''Definition of Enumerations ''' @@ -1537,11 +1537,11 @@ def _loadFunctionTableFromMethod(self, symbolLookupMethodAddress): methodType = ctypes.CFUNCTYPE(ctypes.c_int32, ctypes.c_void_p, ctypes.POINTER(ctypes.c_void_p)) self.lib.lib3mf_functioniterator_getcurrentfunction = methodType(int(methodAddress.value)) - err = symbolLookupMethod(ctypes.c_char_p(str.encode("lib3mf_boundaryshapeiterator_getcurrentboundaryshape")), methodAddress) + err = symbolLookupMethod(ctypes.c_char_p(str.encode("lib3mf_levelsetiterator_getcurrentlevelset")), methodAddress) if err != 0: raise ELib3MFException(ErrorCodes.COULDNOTLOADLIBRARY, str(err)) methodType = ctypes.CFUNCTYPE(ctypes.c_int32, ctypes.c_void_p, ctypes.POINTER(ctypes.c_void_p)) - self.lib.lib3mf_boundaryshapeiterator_getcurrentboundaryshape = methodType(int(methodAddress.value)) + self.lib.lib3mf_levelsetiterator_getcurrentlevelset = methodType(int(methodAddress.value)) err = symbolLookupMethod(ctypes.c_char_p(str.encode("lib3mf_metadata_getnamespace")), methodAddress) if err != 0: @@ -1909,101 +1909,101 @@ def _loadFunctionTableFromMethod(self, symbolLookupMethodAddress): methodType = ctypes.CFUNCTYPE(ctypes.c_int32, ctypes.c_void_p, ctypes.c_void_p) self.lib.lib3mf_meshobject_setvolumedata = methodType(int(methodAddress.value)) - err = symbolLookupMethod(ctypes.c_char_p(str.encode("lib3mf_boundaryshape_getfunction")), methodAddress) + err = symbolLookupMethod(ctypes.c_char_p(str.encode("lib3mf_levelset_getfunction")), methodAddress) if err != 0: raise ELib3MFException(ErrorCodes.COULDNOTLOADLIBRARY, str(err)) methodType = ctypes.CFUNCTYPE(ctypes.c_int32, ctypes.c_void_p, ctypes.POINTER(ctypes.c_void_p)) - self.lib.lib3mf_boundaryshape_getfunction = methodType(int(methodAddress.value)) + self.lib.lib3mf_levelset_getfunction = methodType(int(methodAddress.value)) - err = symbolLookupMethod(ctypes.c_char_p(str.encode("lib3mf_boundaryshape_setfunction")), methodAddress) + err = symbolLookupMethod(ctypes.c_char_p(str.encode("lib3mf_levelset_setfunction")), methodAddress) if err != 0: raise ELib3MFException(ErrorCodes.COULDNOTLOADLIBRARY, str(err)) methodType = ctypes.CFUNCTYPE(ctypes.c_int32, ctypes.c_void_p, ctypes.c_void_p) - self.lib.lib3mf_boundaryshape_setfunction = methodType(int(methodAddress.value)) + self.lib.lib3mf_levelset_setfunction = methodType(int(methodAddress.value)) - err = symbolLookupMethod(ctypes.c_char_p(str.encode("lib3mf_boundaryshape_gettransform")), methodAddress) + err = symbolLookupMethod(ctypes.c_char_p(str.encode("lib3mf_levelset_gettransform")), methodAddress) if err != 0: raise ELib3MFException(ErrorCodes.COULDNOTLOADLIBRARY, str(err)) methodType = ctypes.CFUNCTYPE(ctypes.c_int32, ctypes.c_void_p, ctypes.POINTER(Transform)) - self.lib.lib3mf_boundaryshape_gettransform = methodType(int(methodAddress.value)) + self.lib.lib3mf_levelset_gettransform = methodType(int(methodAddress.value)) - err = symbolLookupMethod(ctypes.c_char_p(str.encode("lib3mf_boundaryshape_settransform")), methodAddress) + err = symbolLookupMethod(ctypes.c_char_p(str.encode("lib3mf_levelset_settransform")), methodAddress) if err != 0: raise ELib3MFException(ErrorCodes.COULDNOTLOADLIBRARY, str(err)) methodType = ctypes.CFUNCTYPE(ctypes.c_int32, ctypes.c_void_p, ctypes.POINTER(Transform)) - self.lib.lib3mf_boundaryshape_settransform = methodType(int(methodAddress.value)) + self.lib.lib3mf_levelset_settransform = methodType(int(methodAddress.value)) - err = symbolLookupMethod(ctypes.c_char_p(str.encode("lib3mf_boundaryshape_getchannelname")), methodAddress) + err = symbolLookupMethod(ctypes.c_char_p(str.encode("lib3mf_levelset_getchannelname")), methodAddress) if err != 0: raise ELib3MFException(ErrorCodes.COULDNOTLOADLIBRARY, str(err)) methodType = ctypes.CFUNCTYPE(ctypes.c_int32, ctypes.c_void_p, ctypes.c_uint64, ctypes.POINTER(ctypes.c_uint64), ctypes.c_char_p) - self.lib.lib3mf_boundaryshape_getchannelname = methodType(int(methodAddress.value)) + self.lib.lib3mf_levelset_getchannelname = methodType(int(methodAddress.value)) - err = symbolLookupMethod(ctypes.c_char_p(str.encode("lib3mf_boundaryshape_setchannelname")), methodAddress) + err = symbolLookupMethod(ctypes.c_char_p(str.encode("lib3mf_levelset_setchannelname")), methodAddress) if err != 0: raise ELib3MFException(ErrorCodes.COULDNOTLOADLIBRARY, str(err)) methodType = ctypes.CFUNCTYPE(ctypes.c_int32, ctypes.c_void_p, ctypes.c_char_p) - self.lib.lib3mf_boundaryshape_setchannelname = methodType(int(methodAddress.value)) + self.lib.lib3mf_levelset_setchannelname = methodType(int(methodAddress.value)) - err = symbolLookupMethod(ctypes.c_char_p(str.encode("lib3mf_boundaryshape_setminfeaturesize")), methodAddress) + err = symbolLookupMethod(ctypes.c_char_p(str.encode("lib3mf_levelset_setminfeaturesize")), methodAddress) if err != 0: raise ELib3MFException(ErrorCodes.COULDNOTLOADLIBRARY, str(err)) methodType = ctypes.CFUNCTYPE(ctypes.c_int32, ctypes.c_void_p, ctypes.c_double) - self.lib.lib3mf_boundaryshape_setminfeaturesize = methodType(int(methodAddress.value)) + self.lib.lib3mf_levelset_setminfeaturesize = methodType(int(methodAddress.value)) - err = symbolLookupMethod(ctypes.c_char_p(str.encode("lib3mf_boundaryshape_getminfeaturesize")), methodAddress) + err = symbolLookupMethod(ctypes.c_char_p(str.encode("lib3mf_levelset_getminfeaturesize")), methodAddress) if err != 0: raise ELib3MFException(ErrorCodes.COULDNOTLOADLIBRARY, str(err)) methodType = ctypes.CFUNCTYPE(ctypes.c_int32, ctypes.c_void_p, ctypes.POINTER(ctypes.c_double)) - self.lib.lib3mf_boundaryshape_getminfeaturesize = methodType(int(methodAddress.value)) + self.lib.lib3mf_levelset_getminfeaturesize = methodType(int(methodAddress.value)) - err = symbolLookupMethod(ctypes.c_char_p(str.encode("lib3mf_boundaryshape_setfallbackvalue")), methodAddress) + err = symbolLookupMethod(ctypes.c_char_p(str.encode("lib3mf_levelset_setfallbackvalue")), methodAddress) if err != 0: raise ELib3MFException(ErrorCodes.COULDNOTLOADLIBRARY, str(err)) methodType = ctypes.CFUNCTYPE(ctypes.c_int32, ctypes.c_void_p, ctypes.c_double) - self.lib.lib3mf_boundaryshape_setfallbackvalue = methodType(int(methodAddress.value)) + self.lib.lib3mf_levelset_setfallbackvalue = methodType(int(methodAddress.value)) - err = symbolLookupMethod(ctypes.c_char_p(str.encode("lib3mf_boundaryshape_getfallbackvalue")), methodAddress) + err = symbolLookupMethod(ctypes.c_char_p(str.encode("lib3mf_levelset_getfallbackvalue")), methodAddress) if err != 0: raise ELib3MFException(ErrorCodes.COULDNOTLOADLIBRARY, str(err)) methodType = ctypes.CFUNCTYPE(ctypes.c_int32, ctypes.c_void_p, ctypes.POINTER(ctypes.c_double)) - self.lib.lib3mf_boundaryshape_getfallbackvalue = methodType(int(methodAddress.value)) + self.lib.lib3mf_levelset_getfallbackvalue = methodType(int(methodAddress.value)) - err = symbolLookupMethod(ctypes.c_char_p(str.encode("lib3mf_boundaryshape_setmeshbboxonly")), methodAddress) + err = symbolLookupMethod(ctypes.c_char_p(str.encode("lib3mf_levelset_setmeshbboxonly")), methodAddress) if err != 0: raise ELib3MFException(ErrorCodes.COULDNOTLOADLIBRARY, str(err)) methodType = ctypes.CFUNCTYPE(ctypes.c_int32, ctypes.c_void_p, ctypes.c_bool) - self.lib.lib3mf_boundaryshape_setmeshbboxonly = methodType(int(methodAddress.value)) + self.lib.lib3mf_levelset_setmeshbboxonly = methodType(int(methodAddress.value)) - err = symbolLookupMethod(ctypes.c_char_p(str.encode("lib3mf_boundaryshape_getmeshbboxonly")), methodAddress) + err = symbolLookupMethod(ctypes.c_char_p(str.encode("lib3mf_levelset_getmeshbboxonly")), methodAddress) if err != 0: raise ELib3MFException(ErrorCodes.COULDNOTLOADLIBRARY, str(err)) methodType = ctypes.CFUNCTYPE(ctypes.c_int32, ctypes.c_void_p, ctypes.POINTER(ctypes.c_bool)) - self.lib.lib3mf_boundaryshape_getmeshbboxonly = methodType(int(methodAddress.value)) + self.lib.lib3mf_levelset_getmeshbboxonly = methodType(int(methodAddress.value)) - err = symbolLookupMethod(ctypes.c_char_p(str.encode("lib3mf_boundaryshape_setmesh")), methodAddress) + err = symbolLookupMethod(ctypes.c_char_p(str.encode("lib3mf_levelset_setmesh")), methodAddress) if err != 0: raise ELib3MFException(ErrorCodes.COULDNOTLOADLIBRARY, str(err)) methodType = ctypes.CFUNCTYPE(ctypes.c_int32, ctypes.c_void_p, ctypes.c_void_p) - self.lib.lib3mf_boundaryshape_setmesh = methodType(int(methodAddress.value)) + self.lib.lib3mf_levelset_setmesh = methodType(int(methodAddress.value)) - err = symbolLookupMethod(ctypes.c_char_p(str.encode("lib3mf_boundaryshape_getmesh")), methodAddress) + err = symbolLookupMethod(ctypes.c_char_p(str.encode("lib3mf_levelset_getmesh")), methodAddress) if err != 0: raise ELib3MFException(ErrorCodes.COULDNOTLOADLIBRARY, str(err)) methodType = ctypes.CFUNCTYPE(ctypes.c_int32, ctypes.c_void_p, ctypes.POINTER(ctypes.c_void_p)) - self.lib.lib3mf_boundaryshape_getmesh = methodType(int(methodAddress.value)) + self.lib.lib3mf_levelset_getmesh = methodType(int(methodAddress.value)) - err = symbolLookupMethod(ctypes.c_char_p(str.encode("lib3mf_boundaryshape_getvolumedata")), methodAddress) + err = symbolLookupMethod(ctypes.c_char_p(str.encode("lib3mf_levelset_getvolumedata")), methodAddress) if err != 0: raise ELib3MFException(ErrorCodes.COULDNOTLOADLIBRARY, str(err)) methodType = ctypes.CFUNCTYPE(ctypes.c_int32, ctypes.c_void_p, ctypes.POINTER(ctypes.c_void_p)) - self.lib.lib3mf_boundaryshape_getvolumedata = methodType(int(methodAddress.value)) + self.lib.lib3mf_levelset_getvolumedata = methodType(int(methodAddress.value)) - err = symbolLookupMethod(ctypes.c_char_p(str.encode("lib3mf_boundaryshape_setvolumedata")), methodAddress) + err = symbolLookupMethod(ctypes.c_char_p(str.encode("lib3mf_levelset_setvolumedata")), methodAddress) if err != 0: raise ELib3MFException(ErrorCodes.COULDNOTLOADLIBRARY, str(err)) methodType = ctypes.CFUNCTYPE(ctypes.c_int32, ctypes.c_void_p, ctypes.c_void_p) - self.lib.lib3mf_boundaryshape_setvolumedata = methodType(int(methodAddress.value)) + self.lib.lib3mf_levelset_setvolumedata = methodType(int(methodAddress.value)) err = symbolLookupMethod(ctypes.c_char_p(str.encode("lib3mf_beamlattice_getminlength")), methodAddress) if err != 0: @@ -4705,17 +4705,17 @@ def _loadFunctionTableFromMethod(self, symbolLookupMethodAddress): methodType = ctypes.CFUNCTYPE(ctypes.c_int32, ctypes.c_void_p, ctypes.POINTER(ctypes.c_void_p)) self.lib.lib3mf_model_addvolumedata = methodType(int(methodAddress.value)) - err = symbolLookupMethod(ctypes.c_char_p(str.encode("lib3mf_model_addboundaryshape")), methodAddress) + err = symbolLookupMethod(ctypes.c_char_p(str.encode("lib3mf_model_addlevelset")), methodAddress) if err != 0: raise ELib3MFException(ErrorCodes.COULDNOTLOADLIBRARY, str(err)) methodType = ctypes.CFUNCTYPE(ctypes.c_int32, ctypes.c_void_p, ctypes.POINTER(ctypes.c_void_p)) - self.lib.lib3mf_model_addboundaryshape = methodType(int(methodAddress.value)) + self.lib.lib3mf_model_addlevelset = methodType(int(methodAddress.value)) - err = symbolLookupMethod(ctypes.c_char_p(str.encode("lib3mf_model_getboundaryshapes")), methodAddress) + err = symbolLookupMethod(ctypes.c_char_p(str.encode("lib3mf_model_getlevelsets")), methodAddress) if err != 0: raise ELib3MFException(ErrorCodes.COULDNOTLOADLIBRARY, str(err)) methodType = ctypes.CFUNCTYPE(ctypes.c_int32, ctypes.c_void_p, ctypes.POINTER(ctypes.c_void_p)) - self.lib.lib3mf_model_getboundaryshapes = methodType(int(methodAddress.value)) + self.lib.lib3mf_model_getlevelsets = methodType(int(methodAddress.value)) except AttributeError as ae: raise ELib3MFException(ErrorCodes.COULDNOTFINDLIBRARYEXPORT, ae.args[0]) @@ -4929,8 +4929,8 @@ def _loadFunctionTable(self): self.lib.lib3mf_functioniterator_getcurrentfunction.restype = ctypes.c_int32 self.lib.lib3mf_functioniterator_getcurrentfunction.argtypes = [ctypes.c_void_p, ctypes.POINTER(ctypes.c_void_p)] - self.lib.lib3mf_boundaryshapeiterator_getcurrentboundaryshape.restype = ctypes.c_int32 - self.lib.lib3mf_boundaryshapeiterator_getcurrentboundaryshape.argtypes = [ctypes.c_void_p, ctypes.POINTER(ctypes.c_void_p)] + self.lib.lib3mf_levelsetiterator_getcurrentlevelset.restype = ctypes.c_int32 + self.lib.lib3mf_levelsetiterator_getcurrentlevelset.argtypes = [ctypes.c_void_p, ctypes.POINTER(ctypes.c_void_p)] self.lib.lib3mf_metadata_getnamespace.restype = ctypes.c_int32 self.lib.lib3mf_metadata_getnamespace.argtypes = [ctypes.c_void_p, ctypes.c_uint64, ctypes.POINTER(ctypes.c_uint64), ctypes.c_char_p] @@ -5115,53 +5115,53 @@ def _loadFunctionTable(self): self.lib.lib3mf_meshobject_setvolumedata.restype = ctypes.c_int32 self.lib.lib3mf_meshobject_setvolumedata.argtypes = [ctypes.c_void_p, ctypes.c_void_p] - self.lib.lib3mf_boundaryshape_getfunction.restype = ctypes.c_int32 - self.lib.lib3mf_boundaryshape_getfunction.argtypes = [ctypes.c_void_p, ctypes.POINTER(ctypes.c_void_p)] + self.lib.lib3mf_levelset_getfunction.restype = ctypes.c_int32 + self.lib.lib3mf_levelset_getfunction.argtypes = [ctypes.c_void_p, ctypes.POINTER(ctypes.c_void_p)] - self.lib.lib3mf_boundaryshape_setfunction.restype = ctypes.c_int32 - self.lib.lib3mf_boundaryshape_setfunction.argtypes = [ctypes.c_void_p, ctypes.c_void_p] + self.lib.lib3mf_levelset_setfunction.restype = ctypes.c_int32 + self.lib.lib3mf_levelset_setfunction.argtypes = [ctypes.c_void_p, ctypes.c_void_p] - self.lib.lib3mf_boundaryshape_gettransform.restype = ctypes.c_int32 - self.lib.lib3mf_boundaryshape_gettransform.argtypes = [ctypes.c_void_p, ctypes.POINTER(Transform)] + self.lib.lib3mf_levelset_gettransform.restype = ctypes.c_int32 + self.lib.lib3mf_levelset_gettransform.argtypes = [ctypes.c_void_p, ctypes.POINTER(Transform)] - self.lib.lib3mf_boundaryshape_settransform.restype = ctypes.c_int32 - self.lib.lib3mf_boundaryshape_settransform.argtypes = [ctypes.c_void_p, ctypes.POINTER(Transform)] + self.lib.lib3mf_levelset_settransform.restype = ctypes.c_int32 + self.lib.lib3mf_levelset_settransform.argtypes = [ctypes.c_void_p, ctypes.POINTER(Transform)] - self.lib.lib3mf_boundaryshape_getchannelname.restype = ctypes.c_int32 - self.lib.lib3mf_boundaryshape_getchannelname.argtypes = [ctypes.c_void_p, ctypes.c_uint64, ctypes.POINTER(ctypes.c_uint64), ctypes.c_char_p] + self.lib.lib3mf_levelset_getchannelname.restype = ctypes.c_int32 + self.lib.lib3mf_levelset_getchannelname.argtypes = [ctypes.c_void_p, ctypes.c_uint64, ctypes.POINTER(ctypes.c_uint64), ctypes.c_char_p] - self.lib.lib3mf_boundaryshape_setchannelname.restype = ctypes.c_int32 - self.lib.lib3mf_boundaryshape_setchannelname.argtypes = [ctypes.c_void_p, ctypes.c_char_p] + self.lib.lib3mf_levelset_setchannelname.restype = ctypes.c_int32 + self.lib.lib3mf_levelset_setchannelname.argtypes = [ctypes.c_void_p, ctypes.c_char_p] - self.lib.lib3mf_boundaryshape_setminfeaturesize.restype = ctypes.c_int32 - self.lib.lib3mf_boundaryshape_setminfeaturesize.argtypes = [ctypes.c_void_p, ctypes.c_double] + self.lib.lib3mf_levelset_setminfeaturesize.restype = ctypes.c_int32 + self.lib.lib3mf_levelset_setminfeaturesize.argtypes = [ctypes.c_void_p, ctypes.c_double] - self.lib.lib3mf_boundaryshape_getminfeaturesize.restype = ctypes.c_int32 - self.lib.lib3mf_boundaryshape_getminfeaturesize.argtypes = [ctypes.c_void_p, ctypes.POINTER(ctypes.c_double)] + self.lib.lib3mf_levelset_getminfeaturesize.restype = ctypes.c_int32 + self.lib.lib3mf_levelset_getminfeaturesize.argtypes = [ctypes.c_void_p, ctypes.POINTER(ctypes.c_double)] - self.lib.lib3mf_boundaryshape_setfallbackvalue.restype = ctypes.c_int32 - self.lib.lib3mf_boundaryshape_setfallbackvalue.argtypes = [ctypes.c_void_p, ctypes.c_double] + self.lib.lib3mf_levelset_setfallbackvalue.restype = ctypes.c_int32 + self.lib.lib3mf_levelset_setfallbackvalue.argtypes = [ctypes.c_void_p, ctypes.c_double] - self.lib.lib3mf_boundaryshape_getfallbackvalue.restype = ctypes.c_int32 - self.lib.lib3mf_boundaryshape_getfallbackvalue.argtypes = [ctypes.c_void_p, ctypes.POINTER(ctypes.c_double)] + self.lib.lib3mf_levelset_getfallbackvalue.restype = ctypes.c_int32 + self.lib.lib3mf_levelset_getfallbackvalue.argtypes = [ctypes.c_void_p, ctypes.POINTER(ctypes.c_double)] - self.lib.lib3mf_boundaryshape_setmeshbboxonly.restype = ctypes.c_int32 - self.lib.lib3mf_boundaryshape_setmeshbboxonly.argtypes = [ctypes.c_void_p, ctypes.c_bool] + self.lib.lib3mf_levelset_setmeshbboxonly.restype = ctypes.c_int32 + self.lib.lib3mf_levelset_setmeshbboxonly.argtypes = [ctypes.c_void_p, ctypes.c_bool] - self.lib.lib3mf_boundaryshape_getmeshbboxonly.restype = ctypes.c_int32 - self.lib.lib3mf_boundaryshape_getmeshbboxonly.argtypes = [ctypes.c_void_p, ctypes.POINTER(ctypes.c_bool)] + self.lib.lib3mf_levelset_getmeshbboxonly.restype = ctypes.c_int32 + self.lib.lib3mf_levelset_getmeshbboxonly.argtypes = [ctypes.c_void_p, ctypes.POINTER(ctypes.c_bool)] - self.lib.lib3mf_boundaryshape_setmesh.restype = ctypes.c_int32 - self.lib.lib3mf_boundaryshape_setmesh.argtypes = [ctypes.c_void_p, ctypes.c_void_p] + self.lib.lib3mf_levelset_setmesh.restype = ctypes.c_int32 + self.lib.lib3mf_levelset_setmesh.argtypes = [ctypes.c_void_p, ctypes.c_void_p] - self.lib.lib3mf_boundaryshape_getmesh.restype = ctypes.c_int32 - self.lib.lib3mf_boundaryshape_getmesh.argtypes = [ctypes.c_void_p, ctypes.POINTER(ctypes.c_void_p)] + self.lib.lib3mf_levelset_getmesh.restype = ctypes.c_int32 + self.lib.lib3mf_levelset_getmesh.argtypes = [ctypes.c_void_p, ctypes.POINTER(ctypes.c_void_p)] - self.lib.lib3mf_boundaryshape_getvolumedata.restype = ctypes.c_int32 - self.lib.lib3mf_boundaryshape_getvolumedata.argtypes = [ctypes.c_void_p, ctypes.POINTER(ctypes.c_void_p)] + self.lib.lib3mf_levelset_getvolumedata.restype = ctypes.c_int32 + self.lib.lib3mf_levelset_getvolumedata.argtypes = [ctypes.c_void_p, ctypes.POINTER(ctypes.c_void_p)] - self.lib.lib3mf_boundaryshape_setvolumedata.restype = ctypes.c_int32 - self.lib.lib3mf_boundaryshape_setvolumedata.argtypes = [ctypes.c_void_p, ctypes.c_void_p] + self.lib.lib3mf_levelset_setvolumedata.restype = ctypes.c_int32 + self.lib.lib3mf_levelset_setvolumedata.argtypes = [ctypes.c_void_p, ctypes.c_void_p] self.lib.lib3mf_beamlattice_getminlength.restype = ctypes.c_int32 self.lib.lib3mf_beamlattice_getminlength.argtypes = [ctypes.c_void_p, ctypes.POINTER(ctypes.c_double)] @@ -6513,11 +6513,11 @@ def _loadFunctionTable(self): self.lib.lib3mf_model_addvolumedata.restype = ctypes.c_int32 self.lib.lib3mf_model_addvolumedata.argtypes = [ctypes.c_void_p, ctypes.POINTER(ctypes.c_void_p)] - self.lib.lib3mf_model_addboundaryshape.restype = ctypes.c_int32 - self.lib.lib3mf_model_addboundaryshape.argtypes = [ctypes.c_void_p, ctypes.POINTER(ctypes.c_void_p)] + self.lib.lib3mf_model_addlevelset.restype = ctypes.c_int32 + self.lib.lib3mf_model_addlevelset.argtypes = [ctypes.c_void_p, ctypes.POINTER(ctypes.c_void_p)] - self.lib.lib3mf_model_getboundaryshapes.restype = ctypes.c_int32 - self.lib.lib3mf_model_getboundaryshapes.argtypes = [ctypes.c_void_p, ctypes.POINTER(ctypes.c_void_p)] + self.lib.lib3mf_model_getlevelsets.restype = ctypes.c_int32 + self.lib.lib3mf_model_getlevelsets.argtypes = [ctypes.c_void_p, ctypes.POINTER(ctypes.c_void_p)] except AttributeError as ae: raise ELib3MFException(ErrorCodes.COULDNOTFINDLIBRARYEXPORT, ae.args[0]) @@ -6761,8 +6761,8 @@ def getObjectById_C4B8EC00A82BF336(self, handle, wrapper): # First 64 bits of SH return Image3DIterator(handle, wrapper) def getObjectById_40E9035363ACE65E(self, handle, wrapper): # First 64 bits of SHA1 of a string: "Lib3MF::FunctionIterator" return FunctionIterator(handle, wrapper) - def getObjectById_9FBC898CF30CDEF3(self, handle, wrapper): # First 64 bits of SHA1 of a string: "Lib3MF::BoundaryShapeIterator" - return BoundaryShapeIterator(handle, wrapper) + def getObjectById_9FBC898CF30CDEF3(self, handle, wrapper): # First 64 bits of SHA1 of a string: "Lib3MF::LevelSetIterator" + return LevelSetIterator(handle, wrapper) def getObjectById_D17716D063DE2C22(self, handle, wrapper): # First 64 bits of SHA1 of a string: "Lib3MF::MetaData" return MetaData(handle, wrapper) def getObjectById_0C3B85369E9B25D3(self, handle, wrapper): # First 64 bits of SHA1 of a string: "Lib3MF::MetaDataGroup" @@ -6771,8 +6771,8 @@ def getObjectById_2DA2136F577A779C(self, handle, wrapper): # First 64 bits of SH return Object(handle, wrapper) def getObjectById_3B3A6DC6EC610497(self, handle, wrapper): # First 64 bits of SHA1 of a string: "Lib3MF::MeshObject" return MeshObject(handle, wrapper) - def getObjectById_2BE0E57BA81B2ECB(self, handle, wrapper): # First 64 bits of SHA1 of a string: "Lib3MF::BoundaryShape" - return BoundaryShape(handle, wrapper) + def getObjectById_2BE0E57BA81B2ECB(self, handle, wrapper): # First 64 bits of SHA1 of a string: "Lib3MF::LevelSet" + return LevelSet(handle, wrapper) def getObjectById_63B3B461B30B4BA5(self, handle, wrapper): # First 64 bits of SHA1 of a string: "Lib3MF::BeamLattice" return BeamLattice(handle, wrapper) def getObjectById_4DF17E76926221C2(self, handle, wrapper): # First 64 bits of SHA1 of a string: "Lib3MF::FunctionReference" @@ -7469,14 +7469,14 @@ def GetCurrentFunction(self): -''' Class Implementation for BoundaryShapeIterator +''' Class Implementation for LevelSetIterator ''' -class BoundaryShapeIterator(ResourceIterator): +class LevelSetIterator(ResourceIterator): def __init__(self, handle, wrapper): ResourceIterator.__init__(self, handle, wrapper) - def GetCurrentBoundaryShape(self): + def GetCurrentLevelSet(self): ResourceHandle = ctypes.c_void_p() - self._wrapper.checkError(self, self._wrapper.lib.lib3mf_boundaryshapeiterator_getcurrentboundaryshape(self._handle, ResourceHandle)) + self._wrapper.checkError(self, self._wrapper.lib.lib3mf_levelsetiterator_getcurrentlevelset(self._handle, ResourceHandle)) if ResourceHandle: ResourceObject = self._wrapper._polymorphicFactory(ResourceHandle) else: @@ -7974,14 +7974,14 @@ def SetVolumeData(self, TheVolumeDataObject): -''' Class Implementation for BoundaryShape +''' Class Implementation for LevelSet ''' -class BoundaryShape(Object): +class LevelSet(Object): def __init__(self, handle, wrapper): Object.__init__(self, handle, wrapper) def GetFunction(self): TheFunctionHandle = ctypes.c_void_p() - self._wrapper.checkError(self, self._wrapper.lib.lib3mf_boundaryshape_getfunction(self._handle, TheFunctionHandle)) + self._wrapper.checkError(self, self._wrapper.lib.lib3mf_levelset_getfunction(self._handle, TheFunctionHandle)) if TheFunctionHandle: TheFunctionObject = self._wrapper._polymorphicFactory(TheFunctionHandle) else: @@ -7995,65 +7995,65 @@ def SetFunction(self, TheFunctionObject): TheFunctionHandle = TheFunctionObject._handle else: raise ELib3MFException(ErrorCodes.INVALIDPARAM, 'Invalid return/output value') - self._wrapper.checkError(self, self._wrapper.lib.lib3mf_boundaryshape_setfunction(self._handle, TheFunctionHandle)) + self._wrapper.checkError(self, self._wrapper.lib.lib3mf_levelset_setfunction(self._handle, TheFunctionHandle)) def GetTransform(self): pTransform = Transform() - self._wrapper.checkError(self, self._wrapper.lib.lib3mf_boundaryshape_gettransform(self._handle, pTransform)) + self._wrapper.checkError(self, self._wrapper.lib.lib3mf_levelset_gettransform(self._handle, pTransform)) return pTransform def SetTransform(self, Transform): - self._wrapper.checkError(self, self._wrapper.lib.lib3mf_boundaryshape_settransform(self._handle, Transform)) + self._wrapper.checkError(self, self._wrapper.lib.lib3mf_levelset_settransform(self._handle, Transform)) def GetChannelName(self): nChannelNameBufferSize = ctypes.c_uint64(0) nChannelNameNeededChars = ctypes.c_uint64(0) pChannelNameBuffer = ctypes.c_char_p(None) - self._wrapper.checkError(self, self._wrapper.lib.lib3mf_boundaryshape_getchannelname(self._handle, nChannelNameBufferSize, nChannelNameNeededChars, pChannelNameBuffer)) + self._wrapper.checkError(self, self._wrapper.lib.lib3mf_levelset_getchannelname(self._handle, nChannelNameBufferSize, nChannelNameNeededChars, pChannelNameBuffer)) nChannelNameBufferSize = ctypes.c_uint64(nChannelNameNeededChars.value) pChannelNameBuffer = (ctypes.c_char * (nChannelNameNeededChars.value))() - self._wrapper.checkError(self, self._wrapper.lib.lib3mf_boundaryshape_getchannelname(self._handle, nChannelNameBufferSize, nChannelNameNeededChars, pChannelNameBuffer)) + self._wrapper.checkError(self, self._wrapper.lib.lib3mf_levelset_getchannelname(self._handle, nChannelNameBufferSize, nChannelNameNeededChars, pChannelNameBuffer)) return pChannelNameBuffer.value.decode() def SetChannelName(self, ChannelName): pChannelName = ctypes.c_char_p(str.encode(ChannelName)) - self._wrapper.checkError(self, self._wrapper.lib.lib3mf_boundaryshape_setchannelname(self._handle, pChannelName)) + self._wrapper.checkError(self, self._wrapper.lib.lib3mf_levelset_setchannelname(self._handle, pChannelName)) def SetMinFeatureSize(self, MinFeatureSize): dMinFeatureSize = ctypes.c_double(MinFeatureSize) - self._wrapper.checkError(self, self._wrapper.lib.lib3mf_boundaryshape_setminfeaturesize(self._handle, dMinFeatureSize)) + self._wrapper.checkError(self, self._wrapper.lib.lib3mf_levelset_setminfeaturesize(self._handle, dMinFeatureSize)) def GetMinFeatureSize(self): pMinFeatureSize = ctypes.c_double() - self._wrapper.checkError(self, self._wrapper.lib.lib3mf_boundaryshape_getminfeaturesize(self._handle, pMinFeatureSize)) + self._wrapper.checkError(self, self._wrapper.lib.lib3mf_levelset_getminfeaturesize(self._handle, pMinFeatureSize)) return pMinFeatureSize.value def SetFallBackValue(self, FallBackValue): dFallBackValue = ctypes.c_double(FallBackValue) - self._wrapper.checkError(self, self._wrapper.lib.lib3mf_boundaryshape_setfallbackvalue(self._handle, dFallBackValue)) + self._wrapper.checkError(self, self._wrapper.lib.lib3mf_levelset_setfallbackvalue(self._handle, dFallBackValue)) def GetFallBackValue(self): pFallBackValue = ctypes.c_double() - self._wrapper.checkError(self, self._wrapper.lib.lib3mf_boundaryshape_getfallbackvalue(self._handle, pFallBackValue)) + self._wrapper.checkError(self, self._wrapper.lib.lib3mf_levelset_getfallbackvalue(self._handle, pFallBackValue)) return pFallBackValue.value def SetMeshBBoxOnly(self, MeshBBoxOnly): bMeshBBoxOnly = ctypes.c_bool(MeshBBoxOnly) - self._wrapper.checkError(self, self._wrapper.lib.lib3mf_boundaryshape_setmeshbboxonly(self._handle, bMeshBBoxOnly)) + self._wrapper.checkError(self, self._wrapper.lib.lib3mf_levelset_setmeshbboxonly(self._handle, bMeshBBoxOnly)) def GetMeshBBoxOnly(self): pMeshBBoxOnly = ctypes.c_bool() - self._wrapper.checkError(self, self._wrapper.lib.lib3mf_boundaryshape_getmeshbboxonly(self._handle, pMeshBBoxOnly)) + self._wrapper.checkError(self, self._wrapper.lib.lib3mf_levelset_getmeshbboxonly(self._handle, pMeshBBoxOnly)) return pMeshBBoxOnly.value @@ -8063,12 +8063,12 @@ def SetMesh(self, TheMeshObject): TheMeshHandle = TheMeshObject._handle else: raise ELib3MFException(ErrorCodes.INVALIDPARAM, 'Invalid return/output value') - self._wrapper.checkError(self, self._wrapper.lib.lib3mf_boundaryshape_setmesh(self._handle, TheMeshHandle)) + self._wrapper.checkError(self, self._wrapper.lib.lib3mf_levelset_setmesh(self._handle, TheMeshHandle)) def GetMesh(self): TheMeshHandle = ctypes.c_void_p() - self._wrapper.checkError(self, self._wrapper.lib.lib3mf_boundaryshape_getmesh(self._handle, TheMeshHandle)) + self._wrapper.checkError(self, self._wrapper.lib.lib3mf_levelset_getmesh(self._handle, TheMeshHandle)) if TheMeshHandle: TheMeshObject = self._wrapper._polymorphicFactory(TheMeshHandle) else: @@ -8078,7 +8078,7 @@ def GetMesh(self): def GetVolumeData(self): TheVolumeDataHandle = ctypes.c_void_p() - self._wrapper.checkError(self, self._wrapper.lib.lib3mf_boundaryshape_getvolumedata(self._handle, TheVolumeDataHandle)) + self._wrapper.checkError(self, self._wrapper.lib.lib3mf_levelset_getvolumedata(self._handle, TheVolumeDataHandle)) if TheVolumeDataHandle: TheVolumeDataObject = self._wrapper._polymorphicFactory(TheVolumeDataHandle) else: @@ -8092,7 +8092,7 @@ def SetVolumeData(self, TheVolumeDataObject): TheVolumeDataHandle = TheVolumeDataObject._handle else: raise ELib3MFException(ErrorCodes.INVALIDPARAM, 'Invalid return/output value') - self._wrapper.checkError(self, self._wrapper.lib.lib3mf_boundaryshape_setvolumedata(self._handle, TheVolumeDataHandle)) + self._wrapper.checkError(self, self._wrapper.lib.lib3mf_levelset_setvolumedata(self._handle, TheVolumeDataHandle)) @@ -12799,19 +12799,19 @@ def AddVolumeData(self): return VolumeDataInstanceObject - def AddBoundaryShape(self): - BoundaryShapeInstanceHandle = ctypes.c_void_p() - self._wrapper.checkError(self, self._wrapper.lib.lib3mf_model_addboundaryshape(self._handle, BoundaryShapeInstanceHandle)) - if BoundaryShapeInstanceHandle: - BoundaryShapeInstanceObject = self._wrapper._polymorphicFactory(BoundaryShapeInstanceHandle) + def AddLevelSet(self): + LevelSetInstanceHandle = ctypes.c_void_p() + self._wrapper.checkError(self, self._wrapper.lib.lib3mf_model_addlevelset(self._handle, LevelSetInstanceHandle)) + if LevelSetInstanceHandle: + LevelSetInstanceObject = self._wrapper._polymorphicFactory(LevelSetInstanceHandle) else: raise ELib3MFException(ErrorCodes.INVALIDCAST, 'Invalid return/output value') - return BoundaryShapeInstanceObject + return LevelSetInstanceObject - def GetBoundaryShapes(self): + def GetLevelSets(self): ResourceIteratorHandle = ctypes.c_void_p() - self._wrapper.checkError(self, self._wrapper.lib.lib3mf_model_getboundaryshapes(self._handle, ResourceIteratorHandle)) + self._wrapper.checkError(self, self._wrapper.lib.lib3mf_model_getlevelsets(self._handle, ResourceIteratorHandle)) if ResourceIteratorHandle: ResourceIteratorObject = self._wrapper._polymorphicFactory(ResourceIteratorHandle) else: diff --git a/Autogenerated/Source/lib3mf_abi.hpp b/Autogenerated/Source/lib3mf_abi.hpp index d0e6cb422..a968b54c5 100644 --- a/Autogenerated/Source/lib3mf_abi.hpp +++ b/Autogenerated/Source/lib3mf_abi.hpp @@ -602,17 +602,17 @@ LIB3MF_DECLSPEC Lib3MFResult lib3mf_image3diterator_getcurrentimage3d(Lib3MF_Ima LIB3MF_DECLSPEC Lib3MFResult lib3mf_functioniterator_getcurrentfunction(Lib3MF_FunctionIterator pFunctionIterator, Lib3MF_Function * pResource); /************************************************************************************************************************* - Class definition for BoundaryShapeIterator + Class definition for LevelSetIterator **************************************************************************************************************************/ /** -* Returns the BoundaryShape the iterator points at. +* Returns the LevelSet the iterator points at. * -* @param[in] pBoundaryShapeIterator - BoundaryShapeIterator instance. +* @param[in] pLevelSetIterator - LevelSetIterator instance. * @param[out] pResource - returns the MeshObject instance. * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_boundaryshapeiterator_getcurrentboundaryshape(Lib3MF_BoundaryShapeIterator pBoundaryShapeIterator, Lib3MF_BoundaryShape * pResource); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_levelsetiterator_getcurrentlevelset(Lib3MF_LevelSetIterator pLevelSetIterator, Lib3MF_LevelSet * pResource); /************************************************************************************************************************* Class definition for MetaData @@ -1224,154 +1224,154 @@ LIB3MF_DECLSPEC Lib3MFResult lib3mf_meshobject_getvolumedata(Lib3MF_MeshObject p LIB3MF_DECLSPEC Lib3MFResult lib3mf_meshobject_setvolumedata(Lib3MF_MeshObject pMeshObject, Lib3MF_VolumeData pTheVolumeData); /************************************************************************************************************************* - Class definition for BoundaryShape + Class definition for LevelSet **************************************************************************************************************************/ /** * Returns the function that is used as boundary shape. * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[out] pTheFunction - the function to use as boundary shape * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_boundaryshape_getfunction(Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_Function * pTheFunction); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_levelset_getfunction(Lib3MF_LevelSet pLevelSet, Lib3MF_Function * pTheFunction); /** * Sets the function to use as boundary shape. * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] pTheFunction - the function to use as boundary shape * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_boundaryshape_setfunction(Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_Function pTheFunction); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_levelset_setfunction(Lib3MF_LevelSet pLevelSet, Lib3MF_Function pTheFunction); /** * Returns the transformation matrix into the coordinate system of the referenced Function. * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[out] pTransform - the transformation matrix * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_boundaryshape_gettransform(Lib3MF_BoundaryShape pBoundaryShape, Lib3MF::sTransform * pTransform); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_levelset_gettransform(Lib3MF_LevelSet pLevelSet, Lib3MF::sTransform * pTransform); /** * Sets the transformation matrix into the coordinate system of the referenced Function. * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] pTransform - new transformation matrix * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_boundaryshape_settransform(Lib3MF_BoundaryShape pBoundaryShape, const Lib3MF::sTransform * pTransform); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_levelset_settransform(Lib3MF_LevelSet pLevelSet, const Lib3MF::sTransform * pTransform); /** * Returns the name of the function output channel to use. * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] nChannelNameBufferSize - size of the buffer (including trailing 0) * @param[out] pChannelNameNeededChars - will be filled with the count of the written bytes, or needed buffer size. * @param[out] pChannelNameBuffer - buffer of the name of the function output channel, may be NULL * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_boundaryshape_getchannelname(Lib3MF_BoundaryShape pBoundaryShape, const Lib3MF_uint32 nChannelNameBufferSize, Lib3MF_uint32* pChannelNameNeededChars, char * pChannelNameBuffer); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_levelset_getchannelname(Lib3MF_LevelSet pLevelSet, const Lib3MF_uint32 nChannelNameBufferSize, Lib3MF_uint32* pChannelNameNeededChars, char * pChannelNameBuffer); /** * Sets the name of the function output channel to use. * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] pChannelName - new name of the function output channel * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_boundaryshape_setchannelname(Lib3MF_BoundaryShape pBoundaryShape, const char * pChannelName); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_levelset_setchannelname(Lib3MF_LevelSet pLevelSet, const char * pChannelName); /** * Sets the minimal feature size as a hint for the function evaluator * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] dMinFeatureSize - minimal feature size * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_boundaryshape_setminfeaturesize(Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_double dMinFeatureSize); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_levelset_setminfeaturesize(Lib3MF_LevelSet pLevelSet, Lib3MF_double dMinFeatureSize); /** * Returns the minimal feature size as a hint for the function evaluator * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[out] pMinFeatureSize - minimal feature size * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_boundaryshape_getminfeaturesize(Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_double * pMinFeatureSize); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_levelset_getminfeaturesize(Lib3MF_LevelSet pLevelSet, Lib3MF_double * pMinFeatureSize); /** * Sets the fallback value to use if the function evaluation fails (e.g. evaluates to NaN or Inf). * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] dFallBackValue - fallback value * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_boundaryshape_setfallbackvalue(Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_double dFallBackValue); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_levelset_setfallbackvalue(Lib3MF_LevelSet pLevelSet, Lib3MF_double dFallBackValue); /** * Returns the fallback value to use if the function evaluation fails (e.g. evaluates to NaN or Inf). * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[out] pFallBackValue - fallback value * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_boundaryshape_getfallbackvalue(Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_double * pFallBackValue); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_levelset_getfallbackvalue(Lib3MF_LevelSet pLevelSet, Lib3MF_double * pFallBackValue); /** * If set only the bounding box of the mesh is intersected with the boundary * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] bMeshBBoxOnly - If set only the bounding box of the mesh is intersected with the boundary * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_boundaryshape_setmeshbboxonly(Lib3MF_BoundaryShape pBoundaryShape, bool bMeshBBoxOnly); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_levelset_setmeshbboxonly(Lib3MF_LevelSet pLevelSet, bool bMeshBBoxOnly); /** * If set only the bounding box of the mesh is intersected with the boundary * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[out] pMeshBBoxOnly - If set only the bounding box of the mesh is intersected with the boundary * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_boundaryshape_getmeshbboxonly(Lib3MF_BoundaryShape pBoundaryShape, bool * pMeshBBoxOnly); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_levelset_getmeshbboxonly(Lib3MF_LevelSet pLevelSet, bool * pMeshBBoxOnly); /** * Sets the mesh to use as evaluation domain * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] pTheMesh - The mesh * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_boundaryshape_setmesh(Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_MeshObject pTheMesh); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_levelset_setmesh(Lib3MF_LevelSet pLevelSet, Lib3MF_MeshObject pTheMesh); /** * Returns the mesh that is used as evaluation domain * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[out] pTheMesh - The mesh * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_boundaryshape_getmesh(Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_MeshObject * pTheMesh); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_levelset_getmesh(Lib3MF_LevelSet pLevelSet, Lib3MF_MeshObject * pTheMesh); /** * Retrieves the VolumeData this MeshObject. * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[out] pTheVolumeData - the VolumeData of this MeshObject * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_boundaryshape_getvolumedata(Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_VolumeData * pTheVolumeData); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_levelset_getvolumedata(Lib3MF_LevelSet pLevelSet, Lib3MF_VolumeData * pTheVolumeData); /** -* Sets the VolumeData of this BoundaryShape. +* Sets the VolumeData of this LevelSet. * -* @param[in] pBoundaryShape - BoundaryShape instance. +* @param[in] pLevelSet - LevelSet instance. * @param[in] pTheVolumeData - the VolumeData of this MeshObject * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_boundaryshape_setvolumedata(Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_VolumeData pTheVolumeData); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_levelset_setvolumedata(Lib3MF_LevelSet pLevelSet, Lib3MF_VolumeData pTheVolumeData); /************************************************************************************************************************* Class definition for BeamLattice @@ -6207,10 +6207,10 @@ LIB3MF_DECLSPEC Lib3MFResult lib3mf_model_addvolumedata(Lib3MF_Model pModel, Lib * adds an empty boundary shape object to the model. * * @param[in] pModel - Model instance. -* @param[out] pBoundaryShapeInstance - returns the mesh object instance +* @param[out] pLevelSetInstance - returns the mesh object instance * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_model_addboundaryshape(Lib3MF_Model pModel, Lib3MF_BoundaryShape * pBoundaryShapeInstance); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_model_addlevelset(Lib3MF_Model pModel, Lib3MF_LevelSet * pLevelSetInstance); /** * creates a resource iterator instance with all boundary shape resources. @@ -6219,7 +6219,7 @@ LIB3MF_DECLSPEC Lib3MFResult lib3mf_model_addboundaryshape(Lib3MF_Model pModel, * @param[out] pResourceIterator - returns the iterator instance. * @return error code or 0 (success) */ -LIB3MF_DECLSPEC Lib3MFResult lib3mf_model_getboundaryshapes(Lib3MF_Model pModel, Lib3MF_BoundaryShapeIterator * pResourceIterator); +LIB3MF_DECLSPEC Lib3MFResult lib3mf_model_getlevelsets(Lib3MF_Model pModel, Lib3MF_LevelSetIterator * pResourceIterator); /************************************************************************************************************************* Global functions diff --git a/Autogenerated/Source/lib3mf_interfaces.hpp b/Autogenerated/Source/lib3mf_interfaces.hpp index 31be0fdda..474c74277 100644 --- a/Autogenerated/Source/lib3mf_interfaces.hpp +++ b/Autogenerated/Source/lib3mf_interfaces.hpp @@ -69,12 +69,12 @@ class ICompositeMaterialsIterator; class IMultiPropertyGroupIterator; class IImage3DIterator; class IFunctionIterator; -class IBoundaryShapeIterator; +class ILevelSetIterator; class IMetaData; class IMetaDataGroup; class IObject; class IMeshObject; -class IBoundaryShape; +class ILevelSet; class IBeamLattice; class IFunctionReference; class IVolumeDataColor; @@ -1026,29 +1026,29 @@ typedef IBaseSharedPtr PIFunctionIterator; /************************************************************************************************************************* - Class interface for BoundaryShapeIterator + Class interface for LevelSetIterator **************************************************************************************************************************/ -class IBoundaryShapeIterator : public virtual IResourceIterator { +class ILevelSetIterator : public virtual IResourceIterator { public: /** - * IBoundaryShapeIterator::ClassTypeId - Get Class Type Id + * ILevelSetIterator::ClassTypeId - Get Class Type Id * @return Class type as a 64 bits integer */ Lib3MF_uint64 ClassTypeId() override { - return 0x9FBC898CF30CDEF3UL; // First 64 bits of SHA1 of a string: "Lib3MF::BoundaryShapeIterator" + return 0x9FBC898CF30CDEF3UL; // First 64 bits of SHA1 of a string: "Lib3MF::LevelSetIterator" } /** - * IBoundaryShapeIterator::GetCurrentBoundaryShape - Returns the BoundaryShape the iterator points at. + * ILevelSetIterator::GetCurrentLevelSet - Returns the LevelSet the iterator points at. * @return returns the MeshObject instance. */ - virtual IBoundaryShape * GetCurrentBoundaryShape() = 0; + virtual ILevelSet * GetCurrentLevelSet() = 0; }; -typedef IBaseSharedPtr PIBoundaryShapeIterator; +typedef IBaseSharedPtr PILevelSetIterator; /************************************************************************************************************************* @@ -1526,119 +1526,119 @@ typedef IBaseSharedPtr PIMeshObject; /************************************************************************************************************************* - Class interface for BoundaryShape + Class interface for LevelSet **************************************************************************************************************************/ -class IBoundaryShape : public virtual IObject { +class ILevelSet : public virtual IObject { public: /** - * IBoundaryShape::ClassTypeId - Get Class Type Id + * ILevelSet::ClassTypeId - Get Class Type Id * @return Class type as a 64 bits integer */ Lib3MF_uint64 ClassTypeId() override { - return 0x2BE0E57BA81B2ECBUL; // First 64 bits of SHA1 of a string: "Lib3MF::BoundaryShape" + return 0x2BE0E57BA81B2ECBUL; // First 64 bits of SHA1 of a string: "Lib3MF::LevelSet" } /** - * IBoundaryShape::GetFunction - Returns the function that is used as boundary shape. + * ILevelSet::GetFunction - Returns the function that is used as boundary shape. * @return the function to use as boundary shape */ virtual IFunction * GetFunction() = 0; /** - * IBoundaryShape::SetFunction - Sets the function to use as boundary shape. + * ILevelSet::SetFunction - Sets the function to use as boundary shape. * @param[in] pTheFunction - the function to use as boundary shape */ virtual void SetFunction(IFunction* pTheFunction) = 0; /** - * IBoundaryShape::GetTransform - Returns the transformation matrix into the coordinate system of the referenced Function. + * ILevelSet::GetTransform - Returns the transformation matrix into the coordinate system of the referenced Function. * @return the transformation matrix */ virtual Lib3MF::sTransform GetTransform() = 0; /** - * IBoundaryShape::SetTransform - Sets the transformation matrix into the coordinate system of the referenced Function. + * ILevelSet::SetTransform - Sets the transformation matrix into the coordinate system of the referenced Function. * @param[in] Transform - new transformation matrix */ virtual void SetTransform(const Lib3MF::sTransform Transform) = 0; /** - * IBoundaryShape::GetChannelName - Returns the name of the function output channel to use. + * ILevelSet::GetChannelName - Returns the name of the function output channel to use. * @return the name of the function output channel */ virtual std::string GetChannelName() = 0; /** - * IBoundaryShape::SetChannelName - Sets the name of the function output channel to use. + * ILevelSet::SetChannelName - Sets the name of the function output channel to use. * @param[in] sChannelName - new name of the function output channel */ virtual void SetChannelName(const std::string & sChannelName) = 0; /** - * IBoundaryShape::SetMinFeatureSize - Sets the minimal feature size as a hint for the function evaluator + * ILevelSet::SetMinFeatureSize - Sets the minimal feature size as a hint for the function evaluator * @param[in] dMinFeatureSize - minimal feature size */ virtual void SetMinFeatureSize(const Lib3MF_double dMinFeatureSize) = 0; /** - * IBoundaryShape::GetMinFeatureSize - Returns the minimal feature size as a hint for the function evaluator + * ILevelSet::GetMinFeatureSize - Returns the minimal feature size as a hint for the function evaluator * @return minimal feature size */ virtual Lib3MF_double GetMinFeatureSize() = 0; /** - * IBoundaryShape::SetFallBackValue - Sets the fallback value to use if the function evaluation fails (e.g. evaluates to NaN or Inf). + * ILevelSet::SetFallBackValue - Sets the fallback value to use if the function evaluation fails (e.g. evaluates to NaN or Inf). * @param[in] dFallBackValue - fallback value */ virtual void SetFallBackValue(const Lib3MF_double dFallBackValue) = 0; /** - * IBoundaryShape::GetFallBackValue - Returns the fallback value to use if the function evaluation fails (e.g. evaluates to NaN or Inf). + * ILevelSet::GetFallBackValue - Returns the fallback value to use if the function evaluation fails (e.g. evaluates to NaN or Inf). * @return fallback value */ virtual Lib3MF_double GetFallBackValue() = 0; /** - * IBoundaryShape::SetMeshBBoxOnly - If set only the bounding box of the mesh is intersected with the boundary + * ILevelSet::SetMeshBBoxOnly - If set only the bounding box of the mesh is intersected with the boundary * @param[in] bMeshBBoxOnly - If set only the bounding box of the mesh is intersected with the boundary */ virtual void SetMeshBBoxOnly(const bool bMeshBBoxOnly) = 0; /** - * IBoundaryShape::GetMeshBBoxOnly - If set only the bounding box of the mesh is intersected with the boundary + * ILevelSet::GetMeshBBoxOnly - If set only the bounding box of the mesh is intersected with the boundary * @return If set only the bounding box of the mesh is intersected with the boundary */ virtual bool GetMeshBBoxOnly() = 0; /** - * IBoundaryShape::SetMesh - Sets the mesh to use as evaluation domain + * ILevelSet::SetMesh - Sets the mesh to use as evaluation domain * @param[in] pTheMesh - The mesh */ virtual void SetMesh(IMeshObject* pTheMesh) = 0; /** - * IBoundaryShape::GetMesh - Returns the mesh that is used as evaluation domain + * ILevelSet::GetMesh - Returns the mesh that is used as evaluation domain * @return The mesh */ virtual IMeshObject * GetMesh() = 0; /** - * IBoundaryShape::GetVolumeData - Retrieves the VolumeData this MeshObject. + * ILevelSet::GetVolumeData - Retrieves the VolumeData this MeshObject. * @return the VolumeData of this MeshObject */ virtual IVolumeData * GetVolumeData() = 0; /** - * IBoundaryShape::SetVolumeData - Sets the VolumeData of this BoundaryShape. + * ILevelSet::SetVolumeData - Sets the VolumeData of this LevelSet. * @param[in] pTheVolumeData - the VolumeData of this MeshObject */ virtual void SetVolumeData(IVolumeData* pTheVolumeData) = 0; }; -typedef IBaseSharedPtr PIBoundaryShape; +typedef IBaseSharedPtr PILevelSet; /************************************************************************************************************************* @@ -6501,16 +6501,16 @@ class IModel : public virtual IBase { virtual IVolumeData * AddVolumeData() = 0; /** - * IModel::AddBoundaryShape - adds an empty boundary shape object to the model. + * IModel::AddLevelSet - adds an empty boundary shape object to the model. * @return returns the mesh object instance */ - virtual IBoundaryShape * AddBoundaryShape() = 0; + virtual ILevelSet * AddLevelSet() = 0; /** - * IModel::GetBoundaryShapes - creates a resource iterator instance with all boundary shape resources. + * IModel::GetLevelSets - creates a resource iterator instance with all boundary shape resources. * @return returns the iterator instance. */ - virtual IBoundaryShapeIterator * GetBoundaryShapes() = 0; + virtual ILevelSetIterator * GetLevelSets() = 0; }; diff --git a/Autogenerated/Source/lib3mf_interfacewrapper.cpp b/Autogenerated/Source/lib3mf_interfacewrapper.cpp index 1d7104463..50b10724f 100644 --- a/Autogenerated/Source/lib3mf_interfacewrapper.cpp +++ b/Autogenerated/Source/lib3mf_interfacewrapper.cpp @@ -1955,25 +1955,25 @@ Lib3MFResult lib3mf_functioniterator_getcurrentfunction(Lib3MF_FunctionIterator /************************************************************************************************************************* - Class implementation for BoundaryShapeIterator + Class implementation for LevelSetIterator **************************************************************************************************************************/ -Lib3MFResult lib3mf_boundaryshapeiterator_getcurrentboundaryshape(Lib3MF_BoundaryShapeIterator pBoundaryShapeIterator, Lib3MF_BoundaryShape * pResource) +Lib3MFResult lib3mf_levelsetiterator_getcurrentlevelset(Lib3MF_LevelSetIterator pLevelSetIterator, Lib3MF_LevelSet * pResource) { - IBase* pIBaseClass = (IBase *)pBoundaryShapeIterator; + IBase* pIBaseClass = (IBase *)pLevelSetIterator; PLib3MFInterfaceJournalEntry pJournalEntry; try { if (m_GlobalJournal.get() != nullptr) { - pJournalEntry = m_GlobalJournal->beginClassMethod(pBoundaryShapeIterator, "BoundaryShapeIterator", "GetCurrentBoundaryShape"); + pJournalEntry = m_GlobalJournal->beginClassMethod(pLevelSetIterator, "LevelSetIterator", "GetCurrentLevelSet"); } if (pResource == nullptr) throw ELib3MFInterfaceException (LIB3MF_ERROR_INVALIDPARAM); IBase* pBaseResource(nullptr); - IBoundaryShapeIterator* pIBoundaryShapeIterator = dynamic_cast(pIBaseClass); - if (!pIBoundaryShapeIterator) + ILevelSetIterator* pILevelSetIterator = dynamic_cast(pIBaseClass); + if (!pILevelSetIterator) throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDCAST); - pBaseResource = pIBoundaryShapeIterator->GetCurrentBoundaryShape(); + pBaseResource = pILevelSetIterator->GetCurrentLevelSet(); *pResource = (IBase*)(pBaseResource); if (pJournalEntry.get() != nullptr) { @@ -4304,25 +4304,25 @@ Lib3MFResult lib3mf_meshobject_setvolumedata(Lib3MF_MeshObject pMeshObject, Lib3 /************************************************************************************************************************* - Class implementation for BoundaryShape + Class implementation for LevelSet **************************************************************************************************************************/ -Lib3MFResult lib3mf_boundaryshape_getfunction(Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_Function * pTheFunction) +Lib3MFResult lib3mf_levelset_getfunction(Lib3MF_LevelSet pLevelSet, Lib3MF_Function * pTheFunction) { - IBase* pIBaseClass = (IBase *)pBoundaryShape; + IBase* pIBaseClass = (IBase *)pLevelSet; PLib3MFInterfaceJournalEntry pJournalEntry; try { if (m_GlobalJournal.get() != nullptr) { - pJournalEntry = m_GlobalJournal->beginClassMethod(pBoundaryShape, "BoundaryShape", "GetFunction"); + pJournalEntry = m_GlobalJournal->beginClassMethod(pLevelSet, "LevelSet", "GetFunction"); } if (pTheFunction == nullptr) throw ELib3MFInterfaceException (LIB3MF_ERROR_INVALIDPARAM); IBase* pBaseTheFunction(nullptr); - IBoundaryShape* pIBoundaryShape = dynamic_cast(pIBaseClass); - if (!pIBoundaryShape) + ILevelSet* pILevelSet = dynamic_cast(pIBaseClass); + if (!pILevelSet) throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDCAST); - pBaseTheFunction = pIBoundaryShape->GetFunction(); + pBaseTheFunction = pILevelSet->GetFunction(); *pTheFunction = (IBase*)(pBaseTheFunction); if (pJournalEntry.get() != nullptr) { @@ -4342,14 +4342,14 @@ Lib3MFResult lib3mf_boundaryshape_getfunction(Lib3MF_BoundaryShape pBoundaryShap } } -Lib3MFResult lib3mf_boundaryshape_setfunction(Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_Function pTheFunction) +Lib3MFResult lib3mf_levelset_setfunction(Lib3MF_LevelSet pLevelSet, Lib3MF_Function pTheFunction) { - IBase* pIBaseClass = (IBase *)pBoundaryShape; + IBase* pIBaseClass = (IBase *)pLevelSet; PLib3MFInterfaceJournalEntry pJournalEntry; try { if (m_GlobalJournal.get() != nullptr) { - pJournalEntry = m_GlobalJournal->beginClassMethod(pBoundaryShape, "BoundaryShape", "SetFunction"); + pJournalEntry = m_GlobalJournal->beginClassMethod(pLevelSet, "LevelSet", "SetFunction"); pJournalEntry->addHandleParameter("TheFunction", pTheFunction); } IBase* pIBaseClassTheFunction = (IBase *)pTheFunction; @@ -4357,11 +4357,11 @@ Lib3MFResult lib3mf_boundaryshape_setfunction(Lib3MF_BoundaryShape pBoundaryShap if (!pITheFunction) throw ELib3MFInterfaceException (LIB3MF_ERROR_INVALIDCAST); - IBoundaryShape* pIBoundaryShape = dynamic_cast(pIBaseClass); - if (!pIBoundaryShape) + ILevelSet* pILevelSet = dynamic_cast(pIBaseClass); + if (!pILevelSet) throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDCAST); - pIBoundaryShape->SetFunction(pITheFunction); + pILevelSet->SetFunction(pITheFunction); if (pJournalEntry.get() != nullptr) { pJournalEntry->writeSuccess(); @@ -4379,22 +4379,22 @@ Lib3MFResult lib3mf_boundaryshape_setfunction(Lib3MF_BoundaryShape pBoundaryShap } } -Lib3MFResult lib3mf_boundaryshape_gettransform(Lib3MF_BoundaryShape pBoundaryShape, sLib3MFTransform * pTransform) +Lib3MFResult lib3mf_levelset_gettransform(Lib3MF_LevelSet pLevelSet, sLib3MFTransform * pTransform) { - IBase* pIBaseClass = (IBase *)pBoundaryShape; + IBase* pIBaseClass = (IBase *)pLevelSet; PLib3MFInterfaceJournalEntry pJournalEntry; try { if (m_GlobalJournal.get() != nullptr) { - pJournalEntry = m_GlobalJournal->beginClassMethod(pBoundaryShape, "BoundaryShape", "GetTransform"); + pJournalEntry = m_GlobalJournal->beginClassMethod(pLevelSet, "LevelSet", "GetTransform"); } if (pTransform == nullptr) throw ELib3MFInterfaceException (LIB3MF_ERROR_INVALIDPARAM); - IBoundaryShape* pIBoundaryShape = dynamic_cast(pIBaseClass); - if (!pIBoundaryShape) + ILevelSet* pILevelSet = dynamic_cast(pIBaseClass); + if (!pILevelSet) throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDCAST); - *pTransform = pIBoundaryShape->GetTransform(); + *pTransform = pILevelSet->GetTransform(); if (pJournalEntry.get() != nullptr) { pJournalEntry->writeSuccess(); @@ -4412,20 +4412,20 @@ Lib3MFResult lib3mf_boundaryshape_gettransform(Lib3MF_BoundaryShape pBoundarySha } } -Lib3MFResult lib3mf_boundaryshape_settransform(Lib3MF_BoundaryShape pBoundaryShape, const sLib3MFTransform * pTransform) +Lib3MFResult lib3mf_levelset_settransform(Lib3MF_LevelSet pLevelSet, const sLib3MFTransform * pTransform) { - IBase* pIBaseClass = (IBase *)pBoundaryShape; + IBase* pIBaseClass = (IBase *)pLevelSet; PLib3MFInterfaceJournalEntry pJournalEntry; try { if (m_GlobalJournal.get() != nullptr) { - pJournalEntry = m_GlobalJournal->beginClassMethod(pBoundaryShape, "BoundaryShape", "SetTransform"); + pJournalEntry = m_GlobalJournal->beginClassMethod(pLevelSet, "LevelSet", "SetTransform"); } - IBoundaryShape* pIBoundaryShape = dynamic_cast(pIBaseClass); - if (!pIBoundaryShape) + ILevelSet* pILevelSet = dynamic_cast(pIBaseClass); + if (!pILevelSet) throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDCAST); - pIBoundaryShape->SetTransform(*pTransform); + pILevelSet->SetTransform(*pTransform); if (pJournalEntry.get() != nullptr) { pJournalEntry->writeSuccess(); @@ -4443,34 +4443,34 @@ Lib3MFResult lib3mf_boundaryshape_settransform(Lib3MF_BoundaryShape pBoundarySha } } -Lib3MFResult lib3mf_boundaryshape_getchannelname(Lib3MF_BoundaryShape pBoundaryShape, const Lib3MF_uint32 nChannelNameBufferSize, Lib3MF_uint32* pChannelNameNeededChars, char * pChannelNameBuffer) +Lib3MFResult lib3mf_levelset_getchannelname(Lib3MF_LevelSet pLevelSet, const Lib3MF_uint32 nChannelNameBufferSize, Lib3MF_uint32* pChannelNameNeededChars, char * pChannelNameBuffer) { - IBase* pIBaseClass = (IBase *)pBoundaryShape; + IBase* pIBaseClass = (IBase *)pLevelSet; PLib3MFInterfaceJournalEntry pJournalEntry; try { if (m_GlobalJournal.get() != nullptr) { - pJournalEntry = m_GlobalJournal->beginClassMethod(pBoundaryShape, "BoundaryShape", "GetChannelName"); + pJournalEntry = m_GlobalJournal->beginClassMethod(pLevelSet, "LevelSet", "GetChannelName"); } if ( (!pChannelNameBuffer) && !(pChannelNameNeededChars) ) throw ELib3MFInterfaceException (LIB3MF_ERROR_INVALIDPARAM); std::string sChannelName(""); - IBoundaryShape* pIBoundaryShape = dynamic_cast(pIBaseClass); - if (!pIBoundaryShape) + ILevelSet* pILevelSet = dynamic_cast(pIBaseClass); + if (!pILevelSet) throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDCAST); bool isCacheCall = (pChannelNameBuffer == nullptr); if (isCacheCall) { - sChannelName = pIBoundaryShape->GetChannelName(); + sChannelName = pILevelSet->GetChannelName(); - pIBoundaryShape->_setCache (new ParameterCache_1 (sChannelName)); + pILevelSet->_setCache (new ParameterCache_1 (sChannelName)); } else { - auto cache = dynamic_cast*> (pIBoundaryShape->_getCache ()); + auto cache = dynamic_cast*> (pILevelSet->_getCache ()); if (cache == nullptr) throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDCAST); cache->retrieveData (sChannelName); - pIBoundaryShape->_setCache (nullptr); + pILevelSet->_setCache (nullptr); } if (pChannelNameNeededChars) @@ -4499,24 +4499,24 @@ Lib3MFResult lib3mf_boundaryshape_getchannelname(Lib3MF_BoundaryShape pBoundaryS } } -Lib3MFResult lib3mf_boundaryshape_setchannelname(Lib3MF_BoundaryShape pBoundaryShape, const char * pChannelName) +Lib3MFResult lib3mf_levelset_setchannelname(Lib3MF_LevelSet pLevelSet, const char * pChannelName) { - IBase* pIBaseClass = (IBase *)pBoundaryShape; + IBase* pIBaseClass = (IBase *)pLevelSet; PLib3MFInterfaceJournalEntry pJournalEntry; try { if (m_GlobalJournal.get() != nullptr) { - pJournalEntry = m_GlobalJournal->beginClassMethod(pBoundaryShape, "BoundaryShape", "SetChannelName"); + pJournalEntry = m_GlobalJournal->beginClassMethod(pLevelSet, "LevelSet", "SetChannelName"); pJournalEntry->addStringParameter("ChannelName", pChannelName); } if (pChannelName == nullptr) throw ELib3MFInterfaceException (LIB3MF_ERROR_INVALIDPARAM); std::string sChannelName(pChannelName); - IBoundaryShape* pIBoundaryShape = dynamic_cast(pIBaseClass); - if (!pIBoundaryShape) + ILevelSet* pILevelSet = dynamic_cast(pIBaseClass); + if (!pILevelSet) throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDCAST); - pIBoundaryShape->SetChannelName(sChannelName); + pILevelSet->SetChannelName(sChannelName); if (pJournalEntry.get() != nullptr) { pJournalEntry->writeSuccess(); @@ -4534,21 +4534,21 @@ Lib3MFResult lib3mf_boundaryshape_setchannelname(Lib3MF_BoundaryShape pBoundaryS } } -Lib3MFResult lib3mf_boundaryshape_setminfeaturesize(Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_double dMinFeatureSize) +Lib3MFResult lib3mf_levelset_setminfeaturesize(Lib3MF_LevelSet pLevelSet, Lib3MF_double dMinFeatureSize) { - IBase* pIBaseClass = (IBase *)pBoundaryShape; + IBase* pIBaseClass = (IBase *)pLevelSet; PLib3MFInterfaceJournalEntry pJournalEntry; try { if (m_GlobalJournal.get() != nullptr) { - pJournalEntry = m_GlobalJournal->beginClassMethod(pBoundaryShape, "BoundaryShape", "SetMinFeatureSize"); + pJournalEntry = m_GlobalJournal->beginClassMethod(pLevelSet, "LevelSet", "SetMinFeatureSize"); pJournalEntry->addDoubleParameter("MinFeatureSize", dMinFeatureSize); } - IBoundaryShape* pIBoundaryShape = dynamic_cast(pIBaseClass); - if (!pIBoundaryShape) + ILevelSet* pILevelSet = dynamic_cast(pIBaseClass); + if (!pILevelSet) throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDCAST); - pIBoundaryShape->SetMinFeatureSize(dMinFeatureSize); + pILevelSet->SetMinFeatureSize(dMinFeatureSize); if (pJournalEntry.get() != nullptr) { pJournalEntry->writeSuccess(); @@ -4566,22 +4566,22 @@ Lib3MFResult lib3mf_boundaryshape_setminfeaturesize(Lib3MF_BoundaryShape pBounda } } -Lib3MFResult lib3mf_boundaryshape_getminfeaturesize(Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_double * pMinFeatureSize) +Lib3MFResult lib3mf_levelset_getminfeaturesize(Lib3MF_LevelSet pLevelSet, Lib3MF_double * pMinFeatureSize) { - IBase* pIBaseClass = (IBase *)pBoundaryShape; + IBase* pIBaseClass = (IBase *)pLevelSet; PLib3MFInterfaceJournalEntry pJournalEntry; try { if (m_GlobalJournal.get() != nullptr) { - pJournalEntry = m_GlobalJournal->beginClassMethod(pBoundaryShape, "BoundaryShape", "GetMinFeatureSize"); + pJournalEntry = m_GlobalJournal->beginClassMethod(pLevelSet, "LevelSet", "GetMinFeatureSize"); } if (pMinFeatureSize == nullptr) throw ELib3MFInterfaceException (LIB3MF_ERROR_INVALIDPARAM); - IBoundaryShape* pIBoundaryShape = dynamic_cast(pIBaseClass); - if (!pIBoundaryShape) + ILevelSet* pILevelSet = dynamic_cast(pIBaseClass); + if (!pILevelSet) throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDCAST); - *pMinFeatureSize = pIBoundaryShape->GetMinFeatureSize(); + *pMinFeatureSize = pILevelSet->GetMinFeatureSize(); if (pJournalEntry.get() != nullptr) { pJournalEntry->addDoubleResult("MinFeatureSize", *pMinFeatureSize); @@ -4600,21 +4600,21 @@ Lib3MFResult lib3mf_boundaryshape_getminfeaturesize(Lib3MF_BoundaryShape pBounda } } -Lib3MFResult lib3mf_boundaryshape_setfallbackvalue(Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_double dFallBackValue) +Lib3MFResult lib3mf_levelset_setfallbackvalue(Lib3MF_LevelSet pLevelSet, Lib3MF_double dFallBackValue) { - IBase* pIBaseClass = (IBase *)pBoundaryShape; + IBase* pIBaseClass = (IBase *)pLevelSet; PLib3MFInterfaceJournalEntry pJournalEntry; try { if (m_GlobalJournal.get() != nullptr) { - pJournalEntry = m_GlobalJournal->beginClassMethod(pBoundaryShape, "BoundaryShape", "SetFallBackValue"); + pJournalEntry = m_GlobalJournal->beginClassMethod(pLevelSet, "LevelSet", "SetFallBackValue"); pJournalEntry->addDoubleParameter("FallBackValue", dFallBackValue); } - IBoundaryShape* pIBoundaryShape = dynamic_cast(pIBaseClass); - if (!pIBoundaryShape) + ILevelSet* pILevelSet = dynamic_cast(pIBaseClass); + if (!pILevelSet) throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDCAST); - pIBoundaryShape->SetFallBackValue(dFallBackValue); + pILevelSet->SetFallBackValue(dFallBackValue); if (pJournalEntry.get() != nullptr) { pJournalEntry->writeSuccess(); @@ -4632,22 +4632,22 @@ Lib3MFResult lib3mf_boundaryshape_setfallbackvalue(Lib3MF_BoundaryShape pBoundar } } -Lib3MFResult lib3mf_boundaryshape_getfallbackvalue(Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_double * pFallBackValue) +Lib3MFResult lib3mf_levelset_getfallbackvalue(Lib3MF_LevelSet pLevelSet, Lib3MF_double * pFallBackValue) { - IBase* pIBaseClass = (IBase *)pBoundaryShape; + IBase* pIBaseClass = (IBase *)pLevelSet; PLib3MFInterfaceJournalEntry pJournalEntry; try { if (m_GlobalJournal.get() != nullptr) { - pJournalEntry = m_GlobalJournal->beginClassMethod(pBoundaryShape, "BoundaryShape", "GetFallBackValue"); + pJournalEntry = m_GlobalJournal->beginClassMethod(pLevelSet, "LevelSet", "GetFallBackValue"); } if (pFallBackValue == nullptr) throw ELib3MFInterfaceException (LIB3MF_ERROR_INVALIDPARAM); - IBoundaryShape* pIBoundaryShape = dynamic_cast(pIBaseClass); - if (!pIBoundaryShape) + ILevelSet* pILevelSet = dynamic_cast(pIBaseClass); + if (!pILevelSet) throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDCAST); - *pFallBackValue = pIBoundaryShape->GetFallBackValue(); + *pFallBackValue = pILevelSet->GetFallBackValue(); if (pJournalEntry.get() != nullptr) { pJournalEntry->addDoubleResult("FallBackValue", *pFallBackValue); @@ -4666,21 +4666,21 @@ Lib3MFResult lib3mf_boundaryshape_getfallbackvalue(Lib3MF_BoundaryShape pBoundar } } -Lib3MFResult lib3mf_boundaryshape_setmeshbboxonly(Lib3MF_BoundaryShape pBoundaryShape, bool bMeshBBoxOnly) +Lib3MFResult lib3mf_levelset_setmeshbboxonly(Lib3MF_LevelSet pLevelSet, bool bMeshBBoxOnly) { - IBase* pIBaseClass = (IBase *)pBoundaryShape; + IBase* pIBaseClass = (IBase *)pLevelSet; PLib3MFInterfaceJournalEntry pJournalEntry; try { if (m_GlobalJournal.get() != nullptr) { - pJournalEntry = m_GlobalJournal->beginClassMethod(pBoundaryShape, "BoundaryShape", "SetMeshBBoxOnly"); + pJournalEntry = m_GlobalJournal->beginClassMethod(pLevelSet, "LevelSet", "SetMeshBBoxOnly"); pJournalEntry->addBooleanParameter("MeshBBoxOnly", bMeshBBoxOnly); } - IBoundaryShape* pIBoundaryShape = dynamic_cast(pIBaseClass); - if (!pIBoundaryShape) + ILevelSet* pILevelSet = dynamic_cast(pIBaseClass); + if (!pILevelSet) throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDCAST); - pIBoundaryShape->SetMeshBBoxOnly(bMeshBBoxOnly); + pILevelSet->SetMeshBBoxOnly(bMeshBBoxOnly); if (pJournalEntry.get() != nullptr) { pJournalEntry->writeSuccess(); @@ -4698,22 +4698,22 @@ Lib3MFResult lib3mf_boundaryshape_setmeshbboxonly(Lib3MF_BoundaryShape pBoundary } } -Lib3MFResult lib3mf_boundaryshape_getmeshbboxonly(Lib3MF_BoundaryShape pBoundaryShape, bool * pMeshBBoxOnly) +Lib3MFResult lib3mf_levelset_getmeshbboxonly(Lib3MF_LevelSet pLevelSet, bool * pMeshBBoxOnly) { - IBase* pIBaseClass = (IBase *)pBoundaryShape; + IBase* pIBaseClass = (IBase *)pLevelSet; PLib3MFInterfaceJournalEntry pJournalEntry; try { if (m_GlobalJournal.get() != nullptr) { - pJournalEntry = m_GlobalJournal->beginClassMethod(pBoundaryShape, "BoundaryShape", "GetMeshBBoxOnly"); + pJournalEntry = m_GlobalJournal->beginClassMethod(pLevelSet, "LevelSet", "GetMeshBBoxOnly"); } if (pMeshBBoxOnly == nullptr) throw ELib3MFInterfaceException (LIB3MF_ERROR_INVALIDPARAM); - IBoundaryShape* pIBoundaryShape = dynamic_cast(pIBaseClass); - if (!pIBoundaryShape) + ILevelSet* pILevelSet = dynamic_cast(pIBaseClass); + if (!pILevelSet) throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDCAST); - *pMeshBBoxOnly = pIBoundaryShape->GetMeshBBoxOnly(); + *pMeshBBoxOnly = pILevelSet->GetMeshBBoxOnly(); if (pJournalEntry.get() != nullptr) { pJournalEntry->addBooleanResult("MeshBBoxOnly", *pMeshBBoxOnly); @@ -4732,14 +4732,14 @@ Lib3MFResult lib3mf_boundaryshape_getmeshbboxonly(Lib3MF_BoundaryShape pBoundary } } -Lib3MFResult lib3mf_boundaryshape_setmesh(Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_MeshObject pTheMesh) +Lib3MFResult lib3mf_levelset_setmesh(Lib3MF_LevelSet pLevelSet, Lib3MF_MeshObject pTheMesh) { - IBase* pIBaseClass = (IBase *)pBoundaryShape; + IBase* pIBaseClass = (IBase *)pLevelSet; PLib3MFInterfaceJournalEntry pJournalEntry; try { if (m_GlobalJournal.get() != nullptr) { - pJournalEntry = m_GlobalJournal->beginClassMethod(pBoundaryShape, "BoundaryShape", "SetMesh"); + pJournalEntry = m_GlobalJournal->beginClassMethod(pLevelSet, "LevelSet", "SetMesh"); pJournalEntry->addHandleParameter("TheMesh", pTheMesh); } IBase* pIBaseClassTheMesh = (IBase *)pTheMesh; @@ -4747,11 +4747,11 @@ Lib3MFResult lib3mf_boundaryshape_setmesh(Lib3MF_BoundaryShape pBoundaryShape, L if (!pITheMesh) throw ELib3MFInterfaceException (LIB3MF_ERROR_INVALIDCAST); - IBoundaryShape* pIBoundaryShape = dynamic_cast(pIBaseClass); - if (!pIBoundaryShape) + ILevelSet* pILevelSet = dynamic_cast(pIBaseClass); + if (!pILevelSet) throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDCAST); - pIBoundaryShape->SetMesh(pITheMesh); + pILevelSet->SetMesh(pITheMesh); if (pJournalEntry.get() != nullptr) { pJournalEntry->writeSuccess(); @@ -4769,23 +4769,23 @@ Lib3MFResult lib3mf_boundaryshape_setmesh(Lib3MF_BoundaryShape pBoundaryShape, L } } -Lib3MFResult lib3mf_boundaryshape_getmesh(Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_MeshObject * pTheMesh) +Lib3MFResult lib3mf_levelset_getmesh(Lib3MF_LevelSet pLevelSet, Lib3MF_MeshObject * pTheMesh) { - IBase* pIBaseClass = (IBase *)pBoundaryShape; + IBase* pIBaseClass = (IBase *)pLevelSet; PLib3MFInterfaceJournalEntry pJournalEntry; try { if (m_GlobalJournal.get() != nullptr) { - pJournalEntry = m_GlobalJournal->beginClassMethod(pBoundaryShape, "BoundaryShape", "GetMesh"); + pJournalEntry = m_GlobalJournal->beginClassMethod(pLevelSet, "LevelSet", "GetMesh"); } if (pTheMesh == nullptr) throw ELib3MFInterfaceException (LIB3MF_ERROR_INVALIDPARAM); IBase* pBaseTheMesh(nullptr); - IBoundaryShape* pIBoundaryShape = dynamic_cast(pIBaseClass); - if (!pIBoundaryShape) + ILevelSet* pILevelSet = dynamic_cast(pIBaseClass); + if (!pILevelSet) throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDCAST); - pBaseTheMesh = pIBoundaryShape->GetMesh(); + pBaseTheMesh = pILevelSet->GetMesh(); *pTheMesh = (IBase*)(pBaseTheMesh); if (pJournalEntry.get() != nullptr) { @@ -4805,23 +4805,23 @@ Lib3MFResult lib3mf_boundaryshape_getmesh(Lib3MF_BoundaryShape pBoundaryShape, L } } -Lib3MFResult lib3mf_boundaryshape_getvolumedata(Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_VolumeData * pTheVolumeData) +Lib3MFResult lib3mf_levelset_getvolumedata(Lib3MF_LevelSet pLevelSet, Lib3MF_VolumeData * pTheVolumeData) { - IBase* pIBaseClass = (IBase *)pBoundaryShape; + IBase* pIBaseClass = (IBase *)pLevelSet; PLib3MFInterfaceJournalEntry pJournalEntry; try { if (m_GlobalJournal.get() != nullptr) { - pJournalEntry = m_GlobalJournal->beginClassMethod(pBoundaryShape, "BoundaryShape", "GetVolumeData"); + pJournalEntry = m_GlobalJournal->beginClassMethod(pLevelSet, "LevelSet", "GetVolumeData"); } if (pTheVolumeData == nullptr) throw ELib3MFInterfaceException (LIB3MF_ERROR_INVALIDPARAM); IBase* pBaseTheVolumeData(nullptr); - IBoundaryShape* pIBoundaryShape = dynamic_cast(pIBaseClass); - if (!pIBoundaryShape) + ILevelSet* pILevelSet = dynamic_cast(pIBaseClass); + if (!pILevelSet) throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDCAST); - pBaseTheVolumeData = pIBoundaryShape->GetVolumeData(); + pBaseTheVolumeData = pILevelSet->GetVolumeData(); *pTheVolumeData = (IBase*)(pBaseTheVolumeData); if (pJournalEntry.get() != nullptr) { @@ -4841,14 +4841,14 @@ Lib3MFResult lib3mf_boundaryshape_getvolumedata(Lib3MF_BoundaryShape pBoundarySh } } -Lib3MFResult lib3mf_boundaryshape_setvolumedata(Lib3MF_BoundaryShape pBoundaryShape, Lib3MF_VolumeData pTheVolumeData) +Lib3MFResult lib3mf_levelset_setvolumedata(Lib3MF_LevelSet pLevelSet, Lib3MF_VolumeData pTheVolumeData) { - IBase* pIBaseClass = (IBase *)pBoundaryShape; + IBase* pIBaseClass = (IBase *)pLevelSet; PLib3MFInterfaceJournalEntry pJournalEntry; try { if (m_GlobalJournal.get() != nullptr) { - pJournalEntry = m_GlobalJournal->beginClassMethod(pBoundaryShape, "BoundaryShape", "SetVolumeData"); + pJournalEntry = m_GlobalJournal->beginClassMethod(pLevelSet, "LevelSet", "SetVolumeData"); pJournalEntry->addHandleParameter("TheVolumeData", pTheVolumeData); } IBase* pIBaseClassTheVolumeData = (IBase *)pTheVolumeData; @@ -4856,11 +4856,11 @@ Lib3MFResult lib3mf_boundaryshape_setvolumedata(Lib3MF_BoundaryShape pBoundarySh if (!pITheVolumeData) throw ELib3MFInterfaceException (LIB3MF_ERROR_INVALIDCAST); - IBoundaryShape* pIBoundaryShape = dynamic_cast(pIBaseClass); - if (!pIBoundaryShape) + ILevelSet* pILevelSet = dynamic_cast(pIBaseClass); + if (!pILevelSet) throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDCAST); - pIBoundaryShape->SetVolumeData(pITheVolumeData); + pILevelSet->SetVolumeData(pITheVolumeData); if (pJournalEntry.get() != nullptr) { pJournalEntry->writeSuccess(); @@ -22460,27 +22460,27 @@ Lib3MFResult lib3mf_model_addvolumedata(Lib3MF_Model pModel, Lib3MF_VolumeData * } } -Lib3MFResult lib3mf_model_addboundaryshape(Lib3MF_Model pModel, Lib3MF_BoundaryShape * pBoundaryShapeInstance) +Lib3MFResult lib3mf_model_addlevelset(Lib3MF_Model pModel, Lib3MF_LevelSet * pLevelSetInstance) { IBase* pIBaseClass = (IBase *)pModel; PLib3MFInterfaceJournalEntry pJournalEntry; try { if (m_GlobalJournal.get() != nullptr) { - pJournalEntry = m_GlobalJournal->beginClassMethod(pModel, "Model", "AddBoundaryShape"); + pJournalEntry = m_GlobalJournal->beginClassMethod(pModel, "Model", "AddLevelSet"); } - if (pBoundaryShapeInstance == nullptr) + if (pLevelSetInstance == nullptr) throw ELib3MFInterfaceException (LIB3MF_ERROR_INVALIDPARAM); - IBase* pBaseBoundaryShapeInstance(nullptr); + IBase* pBaseLevelSetInstance(nullptr); IModel* pIModel = dynamic_cast(pIBaseClass); if (!pIModel) throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDCAST); - pBaseBoundaryShapeInstance = pIModel->AddBoundaryShape(); + pBaseLevelSetInstance = pIModel->AddLevelSet(); - *pBoundaryShapeInstance = (IBase*)(pBaseBoundaryShapeInstance); + *pLevelSetInstance = (IBase*)(pBaseLevelSetInstance); if (pJournalEntry.get() != nullptr) { - pJournalEntry->addHandleResult("BoundaryShapeInstance", *pBoundaryShapeInstance); + pJournalEntry->addHandleResult("LevelSetInstance", *pLevelSetInstance); pJournalEntry->writeSuccess(); } return LIB3MF_SUCCESS; @@ -22496,14 +22496,14 @@ Lib3MFResult lib3mf_model_addboundaryshape(Lib3MF_Model pModel, Lib3MF_BoundaryS } } -Lib3MFResult lib3mf_model_getboundaryshapes(Lib3MF_Model pModel, Lib3MF_BoundaryShapeIterator * pResourceIterator) +Lib3MFResult lib3mf_model_getlevelsets(Lib3MF_Model pModel, Lib3MF_LevelSetIterator * pResourceIterator) { IBase* pIBaseClass = (IBase *)pModel; PLib3MFInterfaceJournalEntry pJournalEntry; try { if (m_GlobalJournal.get() != nullptr) { - pJournalEntry = m_GlobalJournal->beginClassMethod(pModel, "Model", "GetBoundaryShapes"); + pJournalEntry = m_GlobalJournal->beginClassMethod(pModel, "Model", "GetLevelSets"); } if (pResourceIterator == nullptr) throw ELib3MFInterfaceException (LIB3MF_ERROR_INVALIDPARAM); @@ -22512,7 +22512,7 @@ Lib3MFResult lib3mf_model_getboundaryshapes(Lib3MF_Model pModel, Lib3MF_Boundary if (!pIModel) throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDCAST); - pBaseResourceIterator = pIModel->GetBoundaryShapes(); + pBaseResourceIterator = pIModel->GetLevelSets(); *pResourceIterator = (IBase*)(pBaseResourceIterator); if (pJournalEntry.get() != nullptr) { @@ -22647,8 +22647,8 @@ Lib3MFResult Lib3MF::Impl::Lib3MF_GetProcAddress (const char * pProcName, void * *ppProcAddress = (void*) &lib3mf_image3diterator_getcurrentimage3d; if (sProcName == "lib3mf_functioniterator_getcurrentfunction") *ppProcAddress = (void*) &lib3mf_functioniterator_getcurrentfunction; - if (sProcName == "lib3mf_boundaryshapeiterator_getcurrentboundaryshape") - *ppProcAddress = (void*) &lib3mf_boundaryshapeiterator_getcurrentboundaryshape; + if (sProcName == "lib3mf_levelsetiterator_getcurrentlevelset") + *ppProcAddress = (void*) &lib3mf_levelsetiterator_getcurrentlevelset; if (sProcName == "lib3mf_metadata_getnamespace") *ppProcAddress = (void*) &lib3mf_metadata_getnamespace; if (sProcName == "lib3mf_metadata_setnamespace") @@ -22771,38 +22771,38 @@ Lib3MFResult Lib3MF::Impl::Lib3MF_GetProcAddress (const char * pProcName, void * *ppProcAddress = (void*) &lib3mf_meshobject_getvolumedata; if (sProcName == "lib3mf_meshobject_setvolumedata") *ppProcAddress = (void*) &lib3mf_meshobject_setvolumedata; - if (sProcName == "lib3mf_boundaryshape_getfunction") - *ppProcAddress = (void*) &lib3mf_boundaryshape_getfunction; - if (sProcName == "lib3mf_boundaryshape_setfunction") - *ppProcAddress = (void*) &lib3mf_boundaryshape_setfunction; - if (sProcName == "lib3mf_boundaryshape_gettransform") - *ppProcAddress = (void*) &lib3mf_boundaryshape_gettransform; - if (sProcName == "lib3mf_boundaryshape_settransform") - *ppProcAddress = (void*) &lib3mf_boundaryshape_settransform; - if (sProcName == "lib3mf_boundaryshape_getchannelname") - *ppProcAddress = (void*) &lib3mf_boundaryshape_getchannelname; - if (sProcName == "lib3mf_boundaryshape_setchannelname") - *ppProcAddress = (void*) &lib3mf_boundaryshape_setchannelname; - if (sProcName == "lib3mf_boundaryshape_setminfeaturesize") - *ppProcAddress = (void*) &lib3mf_boundaryshape_setminfeaturesize; - if (sProcName == "lib3mf_boundaryshape_getminfeaturesize") - *ppProcAddress = (void*) &lib3mf_boundaryshape_getminfeaturesize; - if (sProcName == "lib3mf_boundaryshape_setfallbackvalue") - *ppProcAddress = (void*) &lib3mf_boundaryshape_setfallbackvalue; - if (sProcName == "lib3mf_boundaryshape_getfallbackvalue") - *ppProcAddress = (void*) &lib3mf_boundaryshape_getfallbackvalue; - if (sProcName == "lib3mf_boundaryshape_setmeshbboxonly") - *ppProcAddress = (void*) &lib3mf_boundaryshape_setmeshbboxonly; - if (sProcName == "lib3mf_boundaryshape_getmeshbboxonly") - *ppProcAddress = (void*) &lib3mf_boundaryshape_getmeshbboxonly; - if (sProcName == "lib3mf_boundaryshape_setmesh") - *ppProcAddress = (void*) &lib3mf_boundaryshape_setmesh; - if (sProcName == "lib3mf_boundaryshape_getmesh") - *ppProcAddress = (void*) &lib3mf_boundaryshape_getmesh; - if (sProcName == "lib3mf_boundaryshape_getvolumedata") - *ppProcAddress = (void*) &lib3mf_boundaryshape_getvolumedata; - if (sProcName == "lib3mf_boundaryshape_setvolumedata") - *ppProcAddress = (void*) &lib3mf_boundaryshape_setvolumedata; + if (sProcName == "lib3mf_levelset_getfunction") + *ppProcAddress = (void*) &lib3mf_levelset_getfunction; + if (sProcName == "lib3mf_levelset_setfunction") + *ppProcAddress = (void*) &lib3mf_levelset_setfunction; + if (sProcName == "lib3mf_levelset_gettransform") + *ppProcAddress = (void*) &lib3mf_levelset_gettransform; + if (sProcName == "lib3mf_levelset_settransform") + *ppProcAddress = (void*) &lib3mf_levelset_settransform; + if (sProcName == "lib3mf_levelset_getchannelname") + *ppProcAddress = (void*) &lib3mf_levelset_getchannelname; + if (sProcName == "lib3mf_levelset_setchannelname") + *ppProcAddress = (void*) &lib3mf_levelset_setchannelname; + if (sProcName == "lib3mf_levelset_setminfeaturesize") + *ppProcAddress = (void*) &lib3mf_levelset_setminfeaturesize; + if (sProcName == "lib3mf_levelset_getminfeaturesize") + *ppProcAddress = (void*) &lib3mf_levelset_getminfeaturesize; + if (sProcName == "lib3mf_levelset_setfallbackvalue") + *ppProcAddress = (void*) &lib3mf_levelset_setfallbackvalue; + if (sProcName == "lib3mf_levelset_getfallbackvalue") + *ppProcAddress = (void*) &lib3mf_levelset_getfallbackvalue; + if (sProcName == "lib3mf_levelset_setmeshbboxonly") + *ppProcAddress = (void*) &lib3mf_levelset_setmeshbboxonly; + if (sProcName == "lib3mf_levelset_getmeshbboxonly") + *ppProcAddress = (void*) &lib3mf_levelset_getmeshbboxonly; + if (sProcName == "lib3mf_levelset_setmesh") + *ppProcAddress = (void*) &lib3mf_levelset_setmesh; + if (sProcName == "lib3mf_levelset_getmesh") + *ppProcAddress = (void*) &lib3mf_levelset_getmesh; + if (sProcName == "lib3mf_levelset_getvolumedata") + *ppProcAddress = (void*) &lib3mf_levelset_getvolumedata; + if (sProcName == "lib3mf_levelset_setvolumedata") + *ppProcAddress = (void*) &lib3mf_levelset_setvolumedata; if (sProcName == "lib3mf_beamlattice_getminlength") *ppProcAddress = (void*) &lib3mf_beamlattice_getminlength; if (sProcName == "lib3mf_beamlattice_setminlength") @@ -23703,10 +23703,10 @@ Lib3MFResult Lib3MF::Impl::Lib3MF_GetProcAddress (const char * pProcName, void * *ppProcAddress = (void*) &lib3mf_model_addfunctionfromimage3d; if (sProcName == "lib3mf_model_addvolumedata") *ppProcAddress = (void*) &lib3mf_model_addvolumedata; - if (sProcName == "lib3mf_model_addboundaryshape") - *ppProcAddress = (void*) &lib3mf_model_addboundaryshape; - if (sProcName == "lib3mf_model_getboundaryshapes") - *ppProcAddress = (void*) &lib3mf_model_getboundaryshapes; + if (sProcName == "lib3mf_model_addlevelset") + *ppProcAddress = (void*) &lib3mf_model_addlevelset; + if (sProcName == "lib3mf_model_getlevelsets") + *ppProcAddress = (void*) &lib3mf_model_getlevelsets; if (sProcName == "lib3mf_getlibraryversion") *ppProcAddress = (void*) &lib3mf_getlibraryversion; if (sProcName == "lib3mf_getprereleaseinformation") diff --git a/Autogenerated/Source/lib3mf_types.hpp b/Autogenerated/Source/lib3mf_types.hpp index 3860a5709..8c709a77e 100644 --- a/Autogenerated/Source/lib3mf_types.hpp +++ b/Autogenerated/Source/lib3mf_types.hpp @@ -221,12 +221,12 @@ typedef Lib3MFHandle Lib3MF_CompositeMaterialsIterator; typedef Lib3MFHandle Lib3MF_MultiPropertyGroupIterator; typedef Lib3MFHandle Lib3MF_Image3DIterator; typedef Lib3MFHandle Lib3MF_FunctionIterator; -typedef Lib3MFHandle Lib3MF_BoundaryShapeIterator; +typedef Lib3MFHandle Lib3MF_LevelSetIterator; typedef Lib3MFHandle Lib3MF_MetaData; typedef Lib3MFHandle Lib3MF_MetaDataGroup; typedef Lib3MFHandle Lib3MF_Object; typedef Lib3MFHandle Lib3MF_MeshObject; -typedef Lib3MFHandle Lib3MF_BoundaryShape; +typedef Lib3MFHandle Lib3MF_LevelSet; typedef Lib3MFHandle Lib3MF_BeamLattice; typedef Lib3MFHandle Lib3MF_FunctionReference; typedef Lib3MFHandle Lib3MF_VolumeDataColor; diff --git a/AutomaticComponentToolkit/lib3mf.xml b/AutomaticComponentToolkit/lib3mf.xml index b9d8fe9fb..50971ff02 100644 --- a/AutomaticComponentToolkit/lib3mf.xml +++ b/AutomaticComponentToolkit/lib3mf.xml @@ -666,10 +666,10 @@ - - - + + @@ -976,7 +976,7 @@ - + - + @@ -4115,14 +4115,14 @@ description="returns the new volume data instance." /> - - + - - diff --git a/Include/API/lib3mf_boundaryshape.hpp b/Include/API/lib3mf_levelset.hpp similarity index 67% rename from Include/API/lib3mf_boundaryshape.hpp rename to Include/API/lib3mf_levelset.hpp index 8f0cd58b1..b1adda5da 100644 --- a/Include/API/lib3mf_boundaryshape.hpp +++ b/Include/API/lib3mf_levelset.hpp @@ -24,7 +24,7 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -Abstract: This is the class declaration of CBoundaryShape +Abstract: This is the class declaration of CLevelSet */ @@ -42,23 +42,23 @@ Abstract: This is the class declaration of CBoundaryShape #endif // Include custom headers here. -#include "Model/Classes/NMR_ModelBoundaryShapeObject.h" +#include "Model/Classes/NMR_ModelLevelSetObject.h" namespace Lib3MF { namespace Impl { /************************************************************************************************************************* - Class declaration of CBoundaryShape + Class declaration of CLevelSet **************************************************************************************************************************/ -class CBoundaryShape : public virtual IBoundaryShape, public virtual CObject { +class CLevelSet : public virtual ILevelSet, public virtual CObject { private: /** * Put private members here. */ - NMR::PModelBoundaryShapeObject boundaryShapeObject(); + NMR::PModelLevelSetObject levelSetObject(); protected: /** @@ -70,110 +70,110 @@ class CBoundaryShape : public virtual IBoundaryShape, public virtual CObject { * Put additional public members here. They will not be visible in the external API. */ - CBoundaryShape() = delete; + CLevelSet() = delete; - CBoundaryShape(NMR::PModelResource pResource); + CLevelSet(NMR::PModelResource pResource); /** * Public member functions to implement. */ - static IBoundaryShape* fnCreateBoundaryShapeFromModelResource( + static ILevelSet* fnCreateLevelSetFromModelResource( NMR::PModelResource pResource, bool bFailIfUnkownClass); /** - * IBoundaryShape::GetFunction - Returns the function that is used as boundary shape. + * ILevelSet::GetFunction - Returns the function that is used as boundary shape. * @return the function to use as boundary shape */ IFunction * GetFunction() override; /** - * IBoundaryShape::SetFunction - Sets the function to use as boundary shape. + * ILevelSet::SetFunction - Sets the function to use as boundary shape. * @param[in] pTheFunction - the function to use as boundary shape */ void SetFunction(IFunction* pTheFunction) override; /** - * IBoundaryShape::GetTransform - Returns the transformation matrix into the coordinate system of the referenced Function. + * ILevelSet::GetTransform - Returns the transformation matrix into the coordinate system of the referenced Function. * @return the transformation matrix */ Lib3MF::sTransform GetTransform() override; /** - * IBoundaryShape::SetTransform - Sets the transformation matrix into the coordinate system of the referenced Function. + * ILevelSet::SetTransform - Sets the transformation matrix into the coordinate system of the referenced Function. * @param[in] Transform - new transformation matrix */ void SetTransform(const Lib3MF::sTransform Transform) override; /** - * IBoundaryShape::GetChannelName - Returns the name of the function output channel to use. + * ILevelSet::GetChannelName - Returns the name of the function output channel to use. * @return the name of the function output channel */ std::string GetChannelName() override; /** - * IBoundaryShape::SetChannelName - Sets the name of the function output channel to use. + * ILevelSet::SetChannelName - Sets the name of the function output channel to use. * @param[in] sChannelName - new name of the function output channel */ void SetChannelName(const std::string & sChannelName) override; /** - * IBoundaryShape::SetMinFeatureSize - Sets the minimal feature size as a hint for the function evaluator + * ILevelSet::SetMinFeatureSize - Sets the minimal feature size as a hint for the function evaluator * @param[in] dMinFeatureSize - minimal feature size */ void SetMinFeatureSize(const Lib3MF_double dMinFeatureSize) override; /** - * IBoundaryShape::GetMinFeatureSize - Returns the minimal feature size as a hint for the function evaluator + * ILevelSet::GetMinFeatureSize - Returns the minimal feature size as a hint for the function evaluator * @return minimal feature size */ Lib3MF_double GetMinFeatureSize() override; /** - * IBoundaryShape::SetFallBackValue - Sets the fallback value to use if the function evaluation fails (e.g. evaluates to NaN or Inf). + * ILevelSet::SetFallBackValue - Sets the fallback value to use if the function evaluation fails (e.g. evaluates to NaN or Inf). * @param[in] dFallBackValue - fallback value */ void SetFallBackValue(const Lib3MF_double dFallBackValue) override; /** - * IBoundaryShape::GetFallBackValue - Returns the fallback value to use if the function evaluation fails (e.g. evaluates to NaN or Inf). + * ILevelSet::GetFallBackValue - Returns the fallback value to use if the function evaluation fails (e.g. evaluates to NaN or Inf). * @return fallback value */ Lib3MF_double GetFallBackValue() override; /** - * IBoundaryShape::SetMeshBBoxOnly - If set only the bounding box of the mesh is intersected with the boundary + * ILevelSet::SetMeshBBoxOnly - If set only the bounding box of the mesh is intersected with the boundary * @param[in] bMeshBBoxOnly - If set only the bounding box of the mesh is intersected with the boundary */ void SetMeshBBoxOnly(const bool bMeshBBoxOnly) override; /** - * IBoundaryShape::GetMeshBBoxOnly - If set only the bounding box of the mesh is intersected with the boundary + * ILevelSet::GetMeshBBoxOnly - If set only the bounding box of the mesh is intersected with the boundary * @return If set only the bounding box of the mesh is intersected with the boundary */ bool GetMeshBBoxOnly() override; /** - * IBoundaryShape::SetMesh - Sets the mesh to use as evaluation domain + * ILevelSet::SetMesh - Sets the mesh to use as evaluation domain * @param[in] pTheMesh - The mesh */ void SetMesh(IMeshObject* pTheMesh) override; /** - * IBoundaryShape::GetMesh - Returns the mesh that is used as evaluation domain + * ILevelSet::GetMesh - Returns the mesh that is used as evaluation domain * @return The mesh */ IMeshObject * GetMesh() override; /** - * IBoundaryShape::GetVolumeData - Retrieves the VolumeData this MeshObject. + * ILevelSet::GetVolumeData - Retrieves the VolumeData this MeshObject. * @return the VolumeData of this MeshObject */ IVolumeData * GetVolumeData() override; /** - * IBoundaryShape::SetVolumeData - Sets the VolumeData of this BoundaryShape. + * ILevelSet::SetVolumeData - Sets the VolumeData of this LevelSet. * @param[in] pTheVolumeData - the VolumeData of this MeshObject */ void SetVolumeData(IVolumeData* pTheVolumeData) override; diff --git a/Include/API/lib3mf_boundaryshapeiterator.hpp b/Include/API/lib3mf_levelsetiterator.hpp similarity index 86% rename from Include/API/lib3mf_boundaryshapeiterator.hpp rename to Include/API/lib3mf_levelsetiterator.hpp index 9bb5e4e1a..1684a1322 100644 --- a/Include/API/lib3mf_boundaryshapeiterator.hpp +++ b/Include/API/lib3mf_levelsetiterator.hpp @@ -24,7 +24,7 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -Abstract: This is the class declaration of CBoundaryShapeIterator +Abstract: This is the class declaration of CLevelSetIterator */ @@ -49,10 +49,10 @@ namespace Impl { /************************************************************************************************************************* - Class declaration of CBoundaryShapeIterator + Class declaration of CLevelSetIterator **************************************************************************************************************************/ -class CBoundaryShapeIterator : public virtual IBoundaryShapeIterator, public virtual CResourceIterator { +class CLevelSetIterator : public virtual ILevelSetIterator, public virtual CResourceIterator { private: /** @@ -77,10 +77,10 @@ class CBoundaryShapeIterator : public virtual IBoundaryShapeIterator, public vir */ /** - * IBoundaryShapeIterator::GetCurrentBoundaryShape - Returns the BoundaryShape the iterator points at. + * ILevelSetIterator::GetCurrentLevelSet - Returns the LevelSet the iterator points at. * @return returns the MeshObject instance. */ - IBoundaryShape * GetCurrentBoundaryShape() override; + ILevelSet * GetCurrentLevelSet() override; }; diff --git a/Include/API/lib3mf_model.hpp b/Include/API/lib3mf_model.hpp index 276a7808e..f3df6b033 100644 --- a/Include/API/lib3mf_model.hpp +++ b/Include/API/lib3mf_model.hpp @@ -217,9 +217,9 @@ class CModel : public virtual IModel, public virtual CBase { IVolumeData * AddVolumeData() override; - IBoundaryShape* AddBoundaryShape() override; + ILevelSet* AddLevelSet() override; - IBoundaryShapeIterator * GetBoundaryShapes() override; + ILevelSetIterator * GetLevelSets() override; }; } diff --git a/Include/Common/NMR_ErrorConst.h b/Include/Common/NMR_ErrorConst.h index c1dd8771d..aeded2ef0 100644 --- a/Include/Common/NMR_ErrorConst.h +++ b/Include/Common/NMR_ErrorConst.h @@ -1431,28 +1431,28 @@ Model error codes (0x8XXX) // Duplicate attribute fallbackvalue in volumedata element #define NMR_ERROR_DUPLICATE_VOLUMEDATA_FALLBACKVALUE 0x8842 -// Duplicate attribute functionid in boundaryshape element +// Duplicate attribute functionid in levelset element #define NMR_ERROR_DUPLICATE_BOUNDARY_SHAPE_FUNCTION_ID 0x8843 -// Duplicate attribute channel in boundaryshape element +// Duplicate attribute channel in levelset element #define NMR_ERROR_DUPLICATE_BOUNDARY_SHAPE_CHANNEL 0x8844 -// Duplicate attribute fallbackvalue in boundaryshape element +// Duplicate attribute fallbackvalue in levelset element #define NMR_ERROR_DUPLICATE_BOUNDARY_SHAOE_FALLBACKVALUE 0x8845 -// Duplicate attribute transform in boundaryshape element +// Duplicate attribute transform in levelset element #define NMR_ERROR_DUPLICATE_BOUNDARY_SHAPE_TRANSFORM 0x8846 -// Duplicate attribute minfeaturesize in boundaryshape element +// Duplicate attribute minfeaturesize in levelset element #define NMR_ERROR_DUPLICATE_BOUNDARY_SHAPE_MIN_FEATURE_SIZE 0x8847 -// Duplicate attribute fallbackvalue in boundaryshape element +// Duplicate attribute fallbackvalue in levelset element #define NMR_ERROR_DUPLICATE_BOUNDARY_SHAPE_FALLBACK_VALUE 0x8848 -// Duplicate attribute volumeid in boundaryshape element +// Duplicate attribute volumeid in levelset element #define NMR_ERROR_DUPLICATE_BOUNDARY_SHAPE_VOLUME_ID 0x8849 -// Duplicate attribute mesh id in boundaryshape element +// Duplicate attribute mesh id in levelset element #define NMR_ERROR_DUPLICATE_BOUNDARY_SHAPE_MESH_ID 0x884A /*------------------------------------------------------------------- diff --git a/Include/Model/Classes/NMR_Model.h b/Include/Model/Classes/NMR_Model.h index 846a65082..9580a6544 100644 --- a/Include/Model/Classes/NMR_Model.h +++ b/Include/Model/Classes/NMR_Model.h @@ -114,8 +114,8 @@ namespace NMR { class CModelVolumeData; typedef std::shared_ptr PModelVolumeData; - class BoundaryShapeObject; - typedef std::shared_ptr PBoundaryShapeObject; + class LevelSetObject; + typedef std::shared_ptr PLevelSetObject; // The Model class implements the unification of all model-file in a 3MF package // It should be understood as a "MultiModel" @@ -171,7 +171,7 @@ namespace NMR { std::vector m_Image3DLookup; std::vector m_FunctionLookup; // for implicit models std::vector m_VolumeDataLookup; - std::vector m_boundaryShapeObjectLookup; + std::vector m_levelSetObjectLookup; // The KeyStore reference PKeyStore m_pKeyStore; diff --git a/Include/Model/Classes/NMR_ModelConstants.h b/Include/Model/Classes/NMR_ModelConstants.h index 868328714..c800de4a8 100644 --- a/Include/Model/Classes/NMR_ModelConstants.h +++ b/Include/Model/Classes/NMR_ModelConstants.h @@ -398,7 +398,7 @@ These are given by the 3MF Standard #define XML_3MF_ATTRIBUTE_FUNTCTION_FROM_IMAGE3D_FILTER "filter" -#define XML_3MF_ELEMENT_BOUNDARY_SHAPE "boundaryshape" +#define XML_3MF_ELEMENT_BOUNDARY_SHAPE "levelset" #define XML_3MF_ATTRIBUTE_BOUNDARY_SHAPE_ID "id" #define XML_3MF_ATTRIBUTE_BOUNDARY_SHAPE_FUNCTION_ID "functionid" #define XML_3MF_ATTRIBUTE_BOUNDARY_SHAPE_CHANNEL "channel" diff --git a/Include/Model/Classes/NMR_ModelBoundaryShapeObject.h b/Include/Model/Classes/NMR_ModelLevelsetObject.h similarity index 84% rename from Include/Model/Classes/NMR_ModelBoundaryShapeObject.h rename to Include/Model/Classes/NMR_ModelLevelsetObject.h index 233334e43..7bab5ac98 100644 --- a/Include/Model/Classes/NMR_ModelBoundaryShapeObject.h +++ b/Include/Model/Classes/NMR_ModelLevelsetObject.h @@ -26,14 +26,14 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Abstract: -NMR_ModelBoundaryShapeObject.cpp implements the Model BoundaryShape Object Class. -A model boundaryshape object is an in memory representation of the 3MF -boundaryshape object. +NMR_ModelLevelSetObject.cpp implements the Model LevelSet Object Class. +A model levelset object is an in memory representation of the 3MF +levelset object. --*/ -#ifndef __NMR_ModelBoundaryShapeObject -#define __NMR_ModelBoundaryShapeObject +#ifndef __NMR_ModelLevelSetObject +#define __NMR_ModelLevelSetObject #include "Model/Classes/NMR_ModelObject.h" @@ -53,7 +53,7 @@ namespace NMR { class CModelFunction; typedef std::shared_ptr PModelFunction; - class CModelBoundaryShapeObject : public CModelObject { + class CModelLevelSetObject : public CModelObject { private: PModelMeshObject m_pMesh; PModelFunction m_pFunction; @@ -66,9 +66,9 @@ namespace NMR { double m_fallBackValue = 0.0; bool m_meshBBoxOnly = false; public: - CModelBoundaryShapeObject() = delete; - CModelBoundaryShapeObject(const ModelResourceID sID, CModel * pModel); - ~CModelBoundaryShapeObject(); + CModelLevelSetObject() = delete; + CModelLevelSetObject(const ModelResourceID sID, CModel * pModel); + ~CModelLevelSetObject(); void mergeToMesh(_In_ CMesh* pMesh, _In_ const NMATRIX3 mMatrix) override; @@ -107,8 +107,8 @@ namespace NMR { bool getMeshBBoxOnly() const; }; - typedef std::shared_ptr PModelBoundaryShapeObject; + typedef std::shared_ptr PModelLevelSetObject; } -#endif // __NMR_ModelBoundaryShapeObject +#endif // __NMR_ModelLevelSetObject diff --git a/Include/Model/Reader/Volumetric2201/NMR_ModelReaderNode_BoundaryShape.h b/Include/Model/Reader/Volumetric2201/NMR_ModelReaderNode_Levelset.h similarity index 86% rename from Include/Model/Reader/Volumetric2201/NMR_ModelReaderNode_BoundaryShape.h rename to Include/Model/Reader/Volumetric2201/NMR_ModelReaderNode_Levelset.h index 9d2d369ec..102c0ccc3 100644 --- a/Include/Model/Reader/Volumetric2201/NMR_ModelReaderNode_BoundaryShape.h +++ b/Include/Model/Reader/Volumetric2201/NMR_ModelReaderNode_Levelset.h @@ -32,16 +32,16 @@ Reader for boundary shape objects #pragma once #include "Model/Classes/NMR_ImplicitNodeTypes.h" -#include "Model/Classes/NMR_ModelBoundaryShapeObject.h" +#include "Model/Classes/NMR_ModelLevelSetObject.h" #include "Model/Reader/NMR_ModelReaderNode.h" #include "Model/Reader/v100/NMR_ModelReaderNode100_Object.h" namespace NMR { - class CModelReaderNode_BoundaryShape : public CModelReaderNode + class CModelReaderNode_LevelSet : public CModelReaderNode { private: - PModelBoundaryShapeObject m_pBoundaryShape; + PModelLevelSetObject m_pLevelSet; CModel* m_parentModel = nullptr; ModelResourceID m_resID = 0; @@ -69,8 +69,8 @@ namespace NMR nfBool m_bHasVolumeDataID = false; public: - CModelReaderNode_BoundaryShape() = delete; - CModelReaderNode_BoundaryShape(CModel* pModel, PModelBoundaryShapeObject boundaryShape, PModelWarnings pWarnings, + CModelReaderNode_LevelSet() = delete; + CModelReaderNode_LevelSet(CModel* pModel, PModelLevelSetObject levelSet, PModelWarnings pWarnings, PProgressMonitor pProgressMonitor); void parseXML(_In_ CXmlReader* pXMLReader) override; @@ -83,6 +83,6 @@ namespace NMR _In_ CXmlReader* pXMLReader) override; }; - typedef std::shared_ptr - PModelReaderNode_BoundaryShape; + typedef std::shared_ptr + PModelReaderNode_LevelSet; } // namespace NMR \ No newline at end of file diff --git a/Include/Model/Writer/NMR_ModelWriterNode_BoundaryShape.h b/Include/Model/Writer/NMR_ModelWriterNode_Levelset.h similarity index 78% rename from Include/Model/Writer/NMR_ModelWriterNode_BoundaryShape.h rename to Include/Model/Writer/NMR_ModelWriterNode_Levelset.h index c1b6bc054..ed52bcb33 100644 --- a/Include/Model/Writer/NMR_ModelWriterNode_BoundaryShape.h +++ b/Include/Model/Writer/NMR_ModelWriterNode_Levelset.h @@ -25,7 +25,7 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Abstract: -Writer node for BoundaryShape resources +Writer node for LevelSet resources --*/ @@ -46,25 +46,25 @@ namespace NMR class NodeTypes; } - class CModelBoundaryShapeObject; + class CModelLevelSetObject; - class CModelWriterNode_BoundaryShape : public CModelWriterNode_ModelBase + class CModelWriterNode_LevelSet : public CModelWriterNode_ModelBase { public: - CModelWriterNode_BoundaryShape() = delete; - CModelWriterNode_BoundaryShape(CModel * pModel, - CModelBoundaryShapeObject * pBoundaryShape, + CModelWriterNode_LevelSet() = delete; + CModelWriterNode_LevelSet(CModel * pModel, + CModelLevelSetObject * pLevelSet, CXmlWriter * pXMLWriter, PProgressMonitor pProgressMonitor); void writeToXML() override; private: - void writeBoundaryShapeResources(); - void writeBoundaryShapeResource(CModelBoundaryShapeObject& boundaryShape); + void writeLevelSetResources(); + void writeLevelSetResource(CModelLevelSetObject& levelSet); - CModelBoundaryShapeObject * m_pBoundaryShape = nullptr; + CModelLevelSetObject * m_pLevelSet = nullptr; }; } diff --git a/Source/API/lib3mf_boundaryshape.cpp b/Source/API/lib3mf_levelset.cpp similarity index 57% rename from Source/API/lib3mf_boundaryshape.cpp rename to Source/API/lib3mf_levelset.cpp index 8970fdbe8..fe463b56d 100644 --- a/Source/API/lib3mf_boundaryshape.cpp +++ b/Source/API/lib3mf_levelset.cpp @@ -24,11 +24,11 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -Abstract: This is a stub class definition of CBoundaryShape +Abstract: This is a stub class definition of CLevelSet */ -#include "lib3mf_boundaryshape.hpp" +#include "lib3mf_levelset.hpp" #include "lib3mf_interfaceexception.hpp" // Include custom headers here. @@ -36,7 +36,7 @@ Abstract: This is a stub class definition of CBoundaryShape #include "lib3mf_utils.hpp" #include "lib3mf_function.hpp" #include "lib3mf_volumedata.hpp" -#include "Model/Classes/NMR_ModelBoundaryShapeObject.h" +#include "Model/Classes/NMR_ModelLevelSetObject.h" #include "Model/Classes/NMR_ModelFunction.h" #include "Model/Classes/NMR_ModelMeshObject.h" @@ -44,18 +44,18 @@ Abstract: This is a stub class definition of CBoundaryShape using namespace Lib3MF::Impl; /************************************************************************************************************************* - Class definition of CBoundaryShape + Class definition of CLevelSet **************************************************************************************************************************/ -IBoundaryShape* CBoundaryShape::fnCreateBoundaryShapeFromModelResource(NMR::PModelResource pResource, bool bFailIfUnkownClass) { +ILevelSet* CLevelSet::fnCreateLevelSetFromModelResource(NMR::PModelResource pResource, bool bFailIfUnkownClass) { if (!pResource.get()) throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); - NMR::CModelBoundaryShapeObject * BoundaryShapeObject = dynamic_cast (pResource.get()); - if (BoundaryShapeObject) { - return new CBoundaryShape(pResource); + NMR::CModelLevelSetObject * LevelSetObject = dynamic_cast (pResource.get()); + if (LevelSetObject) { + return new CLevelSet(pResource); } if (bFailIfUnkownClass) @@ -66,10 +66,10 @@ IBoundaryShape* CBoundaryShape::fnCreateBoundaryShapeFromModelResource(NMR::PMod -IFunction * CBoundaryShape::GetFunction() +IFunction * CLevelSet::GetFunction() { - auto boundaryShape = boundaryShapeObject(); - auto function = boundaryShape->getFunction(); + auto levelSet = levelSetObject(); + auto function = levelSet->getFunction(); if (!function) { return nullptr; @@ -77,28 +77,28 @@ IFunction * CBoundaryShape::GetFunction() return new CFunction(function); } -NMR::PModelBoundaryShapeObject -Lib3MF::Impl::CBoundaryShape::boundaryShapeObject() +NMR::PModelLevelSetObject +Lib3MF::Impl::CLevelSet::levelSetObject() { - NMR::PModelBoundaryShapeObject pBoundaryShape = std::dynamic_pointer_cast(resource()); - if (pBoundaryShape.get() == nullptr) + NMR::PModelLevelSetObject pLevelSet = std::dynamic_pointer_cast(resource()); + if (pLevelSet.get() == nullptr) throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDOBJECT); - return pBoundaryShape; + return pLevelSet; } -CBoundaryShape::CBoundaryShape(NMR::PModelResource pResource) +CLevelSet::CLevelSet(NMR::PModelResource pResource) : CResource(pResource), CObject(pResource) { } -void CBoundaryShape::SetFunction(IFunction* pTheFunction) +void CLevelSet::SetFunction(IFunction* pTheFunction) { if(pTheFunction == nullptr) { throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); } - NMR::CModel* pModel = boundaryShapeObject()->getModel(); + NMR::CModel* pModel = levelSetObject()->getModel(); if(pModel == nullptr) { throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDOBJECT); @@ -112,67 +112,67 @@ void CBoundaryShape::SetFunction(IFunction* pTheFunction) { throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); } - boundaryShapeObject()->setFunction(pFunction); + levelSetObject()->setFunction(pFunction); } -Lib3MF::sTransform CBoundaryShape::GetTransform() +Lib3MF::sTransform CLevelSet::GetTransform() { - return MatrixToTransform(boundaryShapeObject()->getTransform()); + return MatrixToTransform(levelSetObject()->getTransform()); } -void CBoundaryShape::SetTransform(const Lib3MF::sTransform Transform) +void CLevelSet::SetTransform(const Lib3MF::sTransform Transform) { - boundaryShapeObject()->setTransform(TransformToMatrix(Transform)); + levelSetObject()->setTransform(TransformToMatrix(Transform)); } -std::string CBoundaryShape::GetChannelName() +std::string CLevelSet::GetChannelName() { - return boundaryShapeObject()->getChannelName(); + return levelSetObject()->getChannelName(); } -void CBoundaryShape::SetChannelName(const std::string & sChannelName) +void CLevelSet::SetChannelName(const std::string & sChannelName) { - boundaryShapeObject()->setChannelName(sChannelName); + levelSetObject()->setChannelName(sChannelName); } -void CBoundaryShape::SetMinFeatureSize(const Lib3MF_double dMinFeatureSize) +void CLevelSet::SetMinFeatureSize(const Lib3MF_double dMinFeatureSize) { - boundaryShapeObject()->setMinFeatureSize(dMinFeatureSize); + levelSetObject()->setMinFeatureSize(dMinFeatureSize); } -Lib3MF_double CBoundaryShape::GetMinFeatureSize() +Lib3MF_double CLevelSet::GetMinFeatureSize() { - return boundaryShapeObject()->getMinFeatureSize(); + return levelSetObject()->getMinFeatureSize(); } -void CBoundaryShape::SetFallBackValue(const Lib3MF_double dFallBackValue) +void CLevelSet::SetFallBackValue(const Lib3MF_double dFallBackValue) { - boundaryShapeObject()->setFallBackValue(dFallBackValue); + levelSetObject()->setFallBackValue(dFallBackValue); } -Lib3MF_double CBoundaryShape::GetFallBackValue() +Lib3MF_double CLevelSet::GetFallBackValue() { - return boundaryShapeObject()->getFallBackValue(); + return levelSetObject()->getFallBackValue(); } -void CBoundaryShape::SetMeshBBoxOnly(const bool bMeshBBoxOnly) +void CLevelSet::SetMeshBBoxOnly(const bool bMeshBBoxOnly) { - boundaryShapeObject()->setMeshBBoxOnly(bMeshBBoxOnly); + levelSetObject()->setMeshBBoxOnly(bMeshBBoxOnly); } -bool CBoundaryShape::GetMeshBBoxOnly() +bool CLevelSet::GetMeshBBoxOnly() { - return boundaryShapeObject()->getMeshBBoxOnly(); + return levelSetObject()->getMeshBBoxOnly(); } -void CBoundaryShape::SetMesh(IMeshObject* pTheMesh) +void CLevelSet::SetMesh(IMeshObject* pTheMesh) { if(pTheMesh == nullptr) { throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); } - NMR::CModel* pModel = boundaryShapeObject()->getModel(); + NMR::CModel* pModel = levelSetObject()->getModel(); if(pModel == nullptr) { throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDOBJECT); @@ -186,12 +186,12 @@ void CBoundaryShape::SetMesh(IMeshObject* pTheMesh) { throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDPARAM); } - boundaryShapeObject()->setMesh(pMesh); + levelSetObject()->setMesh(pMesh); } -IMeshObject * CBoundaryShape::GetMesh() +IMeshObject * CLevelSet::GetMesh() { - NMR::PModelMeshObject meshObject = boundaryShapeObject()->getMesh(); + NMR::PModelMeshObject meshObject = levelSetObject()->getMesh(); if (!meshObject) { @@ -201,9 +201,9 @@ IMeshObject * CBoundaryShape::GetMesh() return new CMeshObject(meshObject); } -void CBoundaryShape::SetVolumeData(IVolumeData* pTheVolumeData) +void CLevelSet::SetVolumeData(IVolumeData* pTheVolumeData) { - NMR::CModel * pModel = boundaryShapeObject()->getModel(); + NMR::CModel * pModel = levelSetObject()->getModel(); if (pModel == nullptr) throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDOBJECT); @@ -214,12 +214,12 @@ void CBoundaryShape::SetVolumeData(IVolumeData* pTheVolumeData) if (pVolumeData == nullptr) throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDOBJECT); - boundaryShapeObject()->setVolumeData(pVolumeData); + levelSetObject()->setVolumeData(pVolumeData); } -IVolumeData * CBoundaryShape::GetVolumeData() +IVolumeData * CLevelSet::GetVolumeData() { - NMR::PModelVolumeData pVolumeData = boundaryShapeObject()->getVolumeData(); + NMR::PModelVolumeData pVolumeData = levelSetObject()->getVolumeData(); if (pVolumeData == nullptr) throw ELib3MFInterfaceException(LIB3MF_ERROR_INVALIDOBJECT); return new CVolumeData(pVolumeData); diff --git a/Source/API/lib3mf_boundaryshapeiterator.cpp b/Source/API/lib3mf_levelsetiterator.cpp similarity index 82% rename from Source/API/lib3mf_boundaryshapeiterator.cpp rename to Source/API/lib3mf_levelsetiterator.cpp index 7121cfe67..0814f7286 100644 --- a/Source/API/lib3mf_boundaryshapeiterator.cpp +++ b/Source/API/lib3mf_levelsetiterator.cpp @@ -24,25 +24,25 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -Abstract: This is a stub class definition of CBoundaryShapeIterator +Abstract: This is a stub class definition of CLevelSetIterator */ -#include "lib3mf_boundaryshapeiterator.hpp" +#include "lib3mf_levelsetiterator.hpp" #include "lib3mf_interfaceexception.hpp" // Include custom headers here. -#include "lib3mf_boundaryshape.hpp" +#include "lib3mf_levelset.hpp" using namespace Lib3MF::Impl; /************************************************************************************************************************* - Class definition of CBoundaryShapeIterator + Class definition of CLevelSetIterator **************************************************************************************************************************/ -IBoundaryShape * CBoundaryShapeIterator::GetCurrentBoundaryShape() +ILevelSet * CLevelSetIterator::GetCurrentLevelSet() { - return CBoundaryShape::fnCreateBoundaryShapeFromModelResource(GetCurrentResource(), true); + return CLevelSet::fnCreateLevelSetFromModelResource(GetCurrentResource(), true); } diff --git a/Source/API/lib3mf_model.cpp b/Source/API/lib3mf_model.cpp index fb481743b..09474175b 100644 --- a/Source/API/lib3mf_model.cpp +++ b/Source/API/lib3mf_model.cpp @@ -67,8 +67,8 @@ Abstract: This is a stub class definition of CModel #include "lib3mf_functioniterator.hpp" #include "lib3mf_functionfromimage3d.hpp" #include "lib3mf_volumedata.hpp" -#include "lib3mf_boundaryshape.hpp" -#include "lib3mf_boundaryshapeiterator.hpp" +#include "lib3mf_levelset.hpp" +#include "lib3mf_levelsetiterator.hpp" // Include custom headers here. #include "Model/Classes/NMR_ModelMeshObject.h" @@ -81,7 +81,7 @@ Abstract: This is a stub class definition of CModel #include "Model/Classes/NMR_ModelImplicitFunction.h" #include "Model/Classes/NMR_ModelFunctionFromImage3D.h" #include "Model/Classes/NMR_ModelVolumeData.h" -#include "Model/Classes/NMR_ModelBoundaryShapeObject.h" +#include "Model/Classes/NMR_ModelLevelSetObject.h" #include "Common/NMR_SecureContentTypes.h" #include "lib3mf_utils.hpp" @@ -181,8 +181,8 @@ IResource* CModel::createIResourceFromModelResource(NMR::PModelResource pResourc return new CVolumeData(p); } - if (auto p = std::dynamic_pointer_cast(pResource)) { - return new CBoundaryShape(p); + if (auto p = std::dynamic_pointer_cast(pResource)) { + return new CLevelSet(p); } if (bFailIfUnkownClass) @@ -905,24 +905,24 @@ IVolumeData * CModel::AddVolumeData() return new CVolumeData(pNewResource); } -IBoundaryShape* CModel::AddBoundaryShape() +ILevelSet* CModel::AddLevelSet() { NMR::ModelResourceID NewResourceID = model().generateResourceID(); - NMR::PModelBoundaryShapeObject pNewResource = std::make_shared(NewResourceID, &model()); + NMR::PModelLevelSetObject pNewResource = std::make_shared(NewResourceID, &model()); model().addResource(pNewResource); - return new CBoundaryShape(pNewResource); + return new CLevelSet(pNewResource); } -IBoundaryShapeIterator * CModel::GetBoundaryShapes() +ILevelSetIterator * CModel::GetLevelSets() { - auto pResult = std::unique_ptr(new CBoundaryShapeIterator()); + auto pResult = std::unique_ptr(new CLevelSetIterator()); Lib3MF_uint32 nObjectsCount = model().getObjectCount(); for (Lib3MF_uint32 nIdx = 0; nIdx < nObjectsCount; nIdx++) { auto resource = model().getObjectResource(nIdx); - if (dynamic_cast(resource.get())) + if (dynamic_cast(resource.get())) pResult->addResource(resource); } return pResult.release(); diff --git a/Source/Common/NMR_Exception.cpp b/Source/Common/NMR_Exception.cpp index dc3e0a43b..dfcd8c3d7 100644 --- a/Source/Common/NMR_Exception.cpp +++ b/Source/Common/NMR_Exception.cpp @@ -505,13 +505,13 @@ namespace NMR { case NMR_ERROR_IMPLICIT_FUNCTION_CYCLIC_GRAPH : return "Cyclic graph in implicit function"; case NMR_ERROR_DUPLICATE_VOLUMEDATA_FALLBACKVALUE : return "Duplicate VolumeData FallbackValue"; - case NMR_ERROR_DUPLICATE_BOUNDARY_SHAPE_FUNCTION_ID: return "Duplicate attribute functionid in boundaryshape element"; - case NMR_ERROR_DUPLICATE_BOUNDARY_SHAPE_CHANNEL: return "Duplicate attribute channel in boundaryshape element"; - case NMR_ERROR_DUPLICATE_BOUNDARY_SHAOE_FALLBACKVALUE: return "Duplicate attribute fallbackvalue in boundaryshape element"; - case NMR_ERROR_DUPLICATE_BOUNDARY_SHAPE_TRANSFORM: return "Duplicate attribute transform in boundaryshape element"; - case NMR_ERROR_DUPLICATE_BOUNDARY_SHAPE_MIN_FEATURE_SIZE: return "Duplicate attribute minfeaturesize in boundaryshape element"; - case NMR_ERROR_DUPLICATE_BOUNDARY_SHAPE_FALLBACK_VALUE: return "Duplicate attribute fallbackvalue in boundaryshape element"; - case NMR_ERROR_DUPLICATE_BOUNDARY_SHAPE_VOLUME_ID: return "Duplicate attribute volumeid in boundaryshape element"; + case NMR_ERROR_DUPLICATE_BOUNDARY_SHAPE_FUNCTION_ID: return "Duplicate attribute functionid in levelset element"; + case NMR_ERROR_DUPLICATE_BOUNDARY_SHAPE_CHANNEL: return "Duplicate attribute channel in levelset element"; + case NMR_ERROR_DUPLICATE_BOUNDARY_SHAOE_FALLBACKVALUE: return "Duplicate attribute fallbackvalue in levelset element"; + case NMR_ERROR_DUPLICATE_BOUNDARY_SHAPE_TRANSFORM: return "Duplicate attribute transform in levelset element"; + case NMR_ERROR_DUPLICATE_BOUNDARY_SHAPE_MIN_FEATURE_SIZE: return "Duplicate attribute minfeaturesize in levelset element"; + case NMR_ERROR_DUPLICATE_BOUNDARY_SHAPE_FALLBACK_VALUE: return "Duplicate attribute fallbackvalue in levelset element"; + case NMR_ERROR_DUPLICATE_BOUNDARY_SHAPE_VOLUME_ID: return "Duplicate attribute volumeid in levelset element"; // XML Parser Error Constants(0x9XXX) case NMR_ERROR_XMLPARSER_INVALIDATTRIBVALUE: return "Invalid XML attribute value"; diff --git a/Source/Model/Classes/NMR_ModelBoundaryShapeObject.cpp b/Source/Model/Classes/NMR_ModelLevelsetObject.cpp similarity index 65% rename from Source/Model/Classes/NMR_ModelBoundaryShapeObject.cpp rename to Source/Model/Classes/NMR_ModelLevelsetObject.cpp index 12c2305d9..0e329962c 100644 --- a/Source/Model/Classes/NMR_ModelBoundaryShapeObject.cpp +++ b/Source/Model/Classes/NMR_ModelLevelsetObject.cpp @@ -26,13 +26,13 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Abstract: -NMR_ModelBoundaryShapeObject.cpp implements the Model BoundaryShape Object -Class. A model boundaryshape object is an in memory representation of the 3MF -boundaryshape object. +NMR_ModelLevelSetObject.cpp implements the Model LevelSet Object +Class. A model levelset object is an in memory representation of the 3MF +levelset object. --*/ -#include "Model/Classes/NMR_ModelBoundaryShapeObject.h" +#include "Model/Classes/NMR_ModelLevelSetObject.h" #include "Common/Math/NMR_PairMatchingTree.h" #include "Common/Mesh/NMR_Mesh.h" @@ -43,43 +43,43 @@ boundaryshape object. namespace NMR { - CModelBoundaryShapeObject::CModelBoundaryShapeObject( + CModelLevelSetObject::CModelLevelSetObject( const ModelResourceID sID, CModel* pModel) : CModelObject(sID, pModel) { } - CModelBoundaryShapeObject::~CModelBoundaryShapeObject() {} + CModelLevelSetObject::~CModelLevelSetObject() {} - void CModelBoundaryShapeObject::mergeToMesh(CMesh* pMesh, + void CModelLevelSetObject::mergeToMesh(CMesh* pMesh, const NMATRIX3 mMatrix) { throw CNMRException(NMR_ERROR_NOTIMPLEMENTED); } - PModelMeshObject CModelBoundaryShapeObject::getMesh() + PModelMeshObject CModelLevelSetObject::getMesh() { return m_pMesh; } - void CModelBoundaryShapeObject::setMesh(PModelMeshObject pMesh) + void CModelLevelSetObject::setMesh(PModelMeshObject pMesh) { if(!pMesh) throw CNMRException(NMR_ERROR_INVALIDPARAM); m_pMesh = pMesh; } - nfBool CModelBoundaryShapeObject::isValid() + nfBool CModelLevelSetObject::isValid() { return true; } - nfBool CModelBoundaryShapeObject::hasSlices(nfBool bRecursive) + nfBool CModelLevelSetObject::hasSlices(nfBool bRecursive) { return (this->getSliceStack().get() != nullptr); } - nfBool CModelBoundaryShapeObject::isValidForSlices( + nfBool CModelLevelSetObject::isValidForSlices( const NMATRIX3& totalParentMatrix) { if(!this->getSliceStack().get()) @@ -92,30 +92,30 @@ namespace NMR } } - void CModelBoundaryShapeObject::extendOutbox( + void CModelLevelSetObject::extendOutbox( NOUTBOX3& vOutBox, const NMATRIX3 mAccumulatedMatrix) { throw CNMRException(NMR_ERROR_NOTIMPLEMENTED); } - PModelFunction CModelBoundaryShapeObject::getFunction() + PModelFunction CModelLevelSetObject::getFunction() { return m_pFunction; } - void CModelBoundaryShapeObject::setFunction(PModelFunction pFunction) + void CModelLevelSetObject::setFunction(PModelFunction pFunction) { if(!pFunction) throw CNMRException(NMR_ERROR_INVALIDPARAM); m_pFunction = pFunction; } - PModelVolumeData CModelBoundaryShapeObject::getVolumeData() + PModelVolumeData CModelLevelSetObject::getVolumeData() { return m_pVolumeData; } - void CModelBoundaryShapeObject::setVolumeData( + void CModelLevelSetObject::setVolumeData( _In_ PModelVolumeData pVolumeData) { if(!pVolumeData) throw CNMRException(NMR_ERROR_INVALIDPARAM); @@ -123,58 +123,58 @@ namespace NMR m_pVolumeData = pVolumeData; } - void CModelBoundaryShapeObject::setChannelName(std::string outputPortName) + void CModelLevelSetObject::setChannelName(std::string outputPortName) { m_outputPortName = std::move(outputPortName); } - std::string const& CModelBoundaryShapeObject::getChannelName() const + std::string const& CModelLevelSetObject::getChannelName() const { return m_outputPortName; } - void CModelBoundaryShapeObject::setTransform(NMR::NMATRIX3 transform) + void CModelLevelSetObject::setTransform(NMR::NMATRIX3 transform) { m_transform = transform; m_bHasTransform = true; } - NMR::NMATRIX3 CModelBoundaryShapeObject::getTransform() const + NMR::NMATRIX3 CModelLevelSetObject::getTransform() const { return m_transform; } - bool CModelBoundaryShapeObject::hasTransform() const + bool CModelLevelSetObject::hasTransform() const { return m_bHasTransform; } - void CModelBoundaryShapeObject::setMinFeatureSize(double minFeatureSize) + void CModelLevelSetObject::setMinFeatureSize(double minFeatureSize) { m_minFeatureSize = minFeatureSize; } - double CModelBoundaryShapeObject::getMinFeatureSize() const + double CModelLevelSetObject::getMinFeatureSize() const { return m_minFeatureSize; } - void CModelBoundaryShapeObject::setFallBackValue(double fallBackValue) + void CModelLevelSetObject::setFallBackValue(double fallBackValue) { m_fallBackValue = fallBackValue; } - double CModelBoundaryShapeObject::getFallBackValue() const + double CModelLevelSetObject::getFallBackValue() const { return m_fallBackValue; } - void CModelBoundaryShapeObject::setMeshBBoxOnly(bool bMeshBBoxOnly) + void CModelLevelSetObject::setMeshBBoxOnly(bool bMeshBBoxOnly) { m_meshBBoxOnly = bMeshBBoxOnly; } - bool CModelBoundaryShapeObject::getMeshBBoxOnly() const + bool CModelLevelSetObject::getMeshBBoxOnly() const { return m_meshBBoxOnly; } diff --git a/Source/Model/Reader/Volumetric2201/NMR_ModelReaderNode_BoundaryShape.cpp b/Source/Model/Reader/Volumetric2201/NMR_ModelReaderNode_Levelset.cpp similarity index 88% rename from Source/Model/Reader/Volumetric2201/NMR_ModelReaderNode_BoundaryShape.cpp rename to Source/Model/Reader/Volumetric2201/NMR_ModelReaderNode_Levelset.cpp index 6a3fa34c0..103139245 100644 --- a/Source/Model/Reader/Volumetric2201/NMR_ModelReaderNode_BoundaryShape.cpp +++ b/Source/Model/Reader/Volumetric2201/NMR_ModelReaderNode_Levelset.cpp @@ -29,12 +29,12 @@ Reader for boundary shape objects --*/ -#include "Model/Reader/Volumetric2201/NMR_ModelReaderNode_BoundaryShape.h" +#include "Model/Reader/Volumetric2201/NMR_ModelReaderNode_LevelSet.h" #include "Common/NMR_Exception.h" #include "Common/NMR_Exception_Windows.h" #include "Common/NMR_StringUtils.h" -#include "Model/Classes/NMR_ModelBoundaryShapeObject.h" +#include "Model/Classes/NMR_ModelLevelSetObject.h" #include "Model/Classes/NMR_ModelMeshObject.h" #include "Model/Classes/NMR_ModelResource.h" #include "Model/Classes/NMR_ModelConstants.h" @@ -42,15 +42,15 @@ Reader for boundary shape objects namespace NMR { - NMR::CModelReaderNode_BoundaryShape::CModelReaderNode_BoundaryShape( - CModel * pModel, PModelBoundaryShapeObject boundaryShape, + NMR::CModelReaderNode_LevelSet::CModelReaderNode_LevelSet( + CModel * pModel, PModelLevelSetObject levelSet, PModelWarnings pWarnings, PProgressMonitor pProgressMonitor) - : CModelReaderNode(pWarnings, pProgressMonitor), m_parentModel(pModel), m_pBoundaryShape(std::move(boundaryShape)) + : CModelReaderNode(pWarnings, pProgressMonitor), m_parentModel(pModel), m_pLevelSet(std::move(levelSet)) { } - void CModelReaderNode_BoundaryShape::parseXML(CXmlReader* pXMLReader) + void CModelReaderNode_LevelSet::parseXML(CXmlReader* pXMLReader) { __NMRASSERT(pXMLReader); // Parse name @@ -75,7 +75,7 @@ namespace NMR throw CNMRException(NMR_ERROR_INVALIDMODELRESOURCE); } - m_pBoundaryShape->setFunction(pFunction); + m_pLevelSet->setFunction(pFunction); PPackageResourceID meshPackageId = m_parentModel->findPackageResourceID( m_parentModel->currentPath(), m_nMeshID); @@ -99,31 +99,31 @@ namespace NMR throw CNMRException(NMR_ERROR_INVALIDMODELRESOURCE); } - m_pBoundaryShape->setMesh(pMeshObject); + m_pLevelSet->setMesh(pMeshObject); if(m_bHasTransform) { - m_pBoundaryShape->setTransform(m_Transform); + m_pLevelSet->setTransform(m_Transform); } if(m_bHasChannel) { - m_pBoundaryShape->setChannelName(m_sChannel); + m_pLevelSet->setChannelName(m_sChannel); } if(m_bHasMeshBBoxOnly) { - m_pBoundaryShape->setMeshBBoxOnly(m_meshBBoxOnly); + m_pLevelSet->setMeshBBoxOnly(m_meshBBoxOnly); } if(m_bHasMinFeatureSize) { - m_pBoundaryShape->setMinFeatureSize(m_dMinFeatureSize); + m_pLevelSet->setMinFeatureSize(m_dMinFeatureSize); } if(m_bHasFallBackValue) { - m_pBoundaryShape->setFallBackValue(m_dFallBackValue); + m_pLevelSet->setFallBackValue(m_dFallBackValue); } if(m_bHasVolumeDataID) @@ -140,11 +140,11 @@ namespace NMR auto pVolumeData = m_parentModel->findVolumeData( volumePackageId->getUniqueID()); - m_pBoundaryShape->setVolumeData(pVolumeData); + m_pLevelSet->setVolumeData(pVolumeData); } } - void CModelReaderNode_BoundaryShape::OnAttribute( + void CModelReaderNode_LevelSet::OnAttribute( const nfChar* pAttributeName, const nfChar* pAttributeValue) { if (strcmp(pAttributeName, XML_3MF_ATTRIBUTE_BOUNDARY_SHAPE_ID) == 0) @@ -235,7 +235,7 @@ namespace NMR m_nVolumeDataID = fnStringToUint32(pAttributeValue); } } - void CModelReaderNode_BoundaryShape::OnNSChildElement( + void CModelReaderNode_LevelSet::OnNSChildElement( const nfChar* pChildName, const nfChar* pNameSpace, CXmlReader* pXMLReader) { diff --git a/Source/Model/Reader/v100/NMR_ModelReaderNode100_Object.cpp b/Source/Model/Reader/v100/NMR_ModelReaderNode100_Object.cpp index 562ca6062..7eb5cbadf 100644 --- a/Source/Model/Reader/v100/NMR_ModelReaderNode100_Object.cpp +++ b/Source/Model/Reader/v100/NMR_ModelReaderNode100_Object.cpp @@ -36,7 +36,7 @@ Stream. #include "Model/Reader/v100/NMR_ModelReaderNode100_Mesh.h" #include "Model/Reader/v100/NMR_ModelReaderNode100_MetaDataGroup.h" #include "Model/Reader/v100/NMR_ModelReaderNode100_Components.h" -#include "Model/Reader/Volumetric2201/NMR_ModelReaderNode_BoundaryShape.h" +#include "Model/Reader/Volumetric2201/NMR_ModelReaderNode_LevelSet.h" #include "Model/Classes/NMR_ModelConstants.h" #include "Model/Classes/NMR_ModelMeshObject.h" @@ -321,13 +321,13 @@ namespace NMR { { if(strcmp(pChildName, XML_3MF_ELEMENT_BOUNDARY_SHAPE) == 0) { - auto boundaryShape = std::make_shared(m_nID, m_pModel); + auto levelSet = std::make_shared(m_nID, m_pModel); PModelReaderNode pXMLNode = - std::make_shared( - m_pModel, boundaryShape, m_pWarnings, m_pProgressMonitor); + std::make_shared( + m_pModel, levelSet, m_pWarnings, m_pProgressMonitor); pXMLNode->parseXML(pXMLReader); - m_pObject = boundaryShape; + m_pObject = levelSet; m_pModel->addResource(m_pObject); } diff --git a/Source/Model/Reader/v100/NMR_ModelReaderNode100_Resources.cpp b/Source/Model/Reader/v100/NMR_ModelReaderNode100_Resources.cpp index 43609791c..6b48bda17 100644 --- a/Source/Model/Reader/v100/NMR_ModelReaderNode100_Resources.cpp +++ b/Source/Model/Reader/v100/NMR_ModelReaderNode100_Resources.cpp @@ -43,7 +43,7 @@ XML Model Stream. #include "Model/Reader/Volumetric2201/NMR_ModelReaderNode_Volumetric2201_Image3D.h" #include "Model/Reader/Volumetric2201/NMR_ModelReaderNode_Implicit_Function.h" #include "Model/Reader/Volumetric2201/NMR_ModelReaderNode_FunctionFromImage3D.h" -#include "Model/Reader/Volumetric2201/NMR_ModelReaderNode_BoundaryShape.h" +#include "Model/Reader/Volumetric2201/NMR_ModelReaderNode_LevelSet.h" #include "Model/Reader/Volumetric2201/NMR_ModelReaderNode_Volumetric2201_VolumeData.h" #include "Model/Classes/NMR_ModelConstants.h" diff --git a/Source/Model/Writer/NMR_ModelWriterNode_BoundaryShape.cpp b/Source/Model/Writer/NMR_ModelWriterNode_Levelset.cpp similarity index 70% rename from Source/Model/Writer/NMR_ModelWriterNode_BoundaryShape.cpp rename to Source/Model/Writer/NMR_ModelWriterNode_Levelset.cpp index fd971ea3f..c1b4a094a 100644 --- a/Source/Model/Writer/NMR_ModelWriterNode_BoundaryShape.cpp +++ b/Source/Model/Writer/NMR_ModelWriterNode_Levelset.cpp @@ -25,54 +25,54 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Abstract: -Writer node for BoundaryShape resources +Writer node for LevelSet resources --*/ -#include "Model/Writer/NMR_ModelWriterNode_BoundaryShape.h" +#include "Model/Writer/NMR_ModelWriterNode_LevelSet.h" #include #include "Common/NMR_Exception.h" #include "Model/Classes/NMR_ImplicitNodeTypes.h" -#include "Model/Classes/NMR_ModelBoundaryShapeObject.h" +#include "Model/Classes/NMR_ModelLevelSetObject.h" #include "Model/Classes/NMR_ModelMeshObject.h" #include "lib3mf_types.hpp" namespace NMR { - CModelWriterNode_BoundaryShape::CModelWriterNode_BoundaryShape( + CModelWriterNode_LevelSet::CModelWriterNode_LevelSet( CModel* pModel, - CModelBoundaryShapeObject * pBoundaryShape, + CModelLevelSetObject * pLevelSet, CXmlWriter* pXMLWriter, PProgressMonitor pProgressMonitor) - : CModelWriterNode_ModelBase(pModel, pXMLWriter, pProgressMonitor), m_pBoundaryShape(pBoundaryShape) + : CModelWriterNode_ModelBase(pModel, pXMLWriter, pProgressMonitor), m_pLevelSet(pLevelSet) { } - void CModelWriterNode_BoundaryShape::writeBoundaryShapeResources() + void CModelWriterNode_LevelSet::writeLevelSetResources() { nfUint32 const nCount = m_pModel->getObjectCount(); for(nfUint32 nIndex = 0; nIndex < nCount; nIndex++) { m_pProgressMonitor->IncrementProgress(1); - CModelBoundaryShapeObject* pBoundaryShape = - dynamic_cast( + CModelLevelSetObject* pLevelSet = + dynamic_cast( m_pModel->getObject(nIndex)); - if(!pBoundaryShape) + if(!pLevelSet) { continue; } - writeBoundaryShapeResource(*pBoundaryShape); + writeLevelSetResource(*pLevelSet); } } - void CModelWriterNode_BoundaryShape::writeBoundaryShapeResource( - CModelBoundaryShapeObject& boundaryShape) + void CModelWriterNode_LevelSet::writeLevelSetResource( + CModelLevelSetObject& levelSet) { writeStartElementWithPrefix(XML_3MF_ELEMENT_BOUNDARY_SHAPE, XML_3MF_NAMESPACEPREFIX_VOLUMETRIC); - auto function = boundaryShape.getFunction(); + auto function = levelSet.getFunction(); if(!function) { throw CNMRException(NMR_ERROR_INVALIDMODELRESOURCE); @@ -87,7 +87,7 @@ namespace NMR functionPackageID->getModelResourceID()); - PModelMeshObject mesh = boundaryShape.getMesh(); + PModelMeshObject mesh = levelSet.getMesh(); if(!mesh) { throw CNMRException(NMR_ERROR_INVALIDMODELRESOURCE); @@ -101,16 +101,16 @@ namespace NMR writeIntAttribute(XML_3MF_ATTRIBUTE_BOUNDARY_SHAPE_MESH_ID, meshPackageID->getModelResourceID()); - if(!fnMATRIX3_isIdentity(boundaryShape.getTransform())) + if(!fnMATRIX3_isIdentity(levelSet.getTransform())) { writeStringAttribute(XML_3MF_ATTRIBUTE_BOUNDARY_SHAPE_TRANSFORM, - fnMATRIX3_toString(boundaryShape.getTransform())); + fnMATRIX3_toString(levelSet.getTransform())); } - if(!boundaryShape.getChannelName().empty()) + if(!levelSet.getChannelName().empty()) { writeStringAttribute(XML_3MF_ATTRIBUTE_BOUNDARY_SHAPE_CHANNEL, - boundaryShape.getChannelName()); + levelSet.getChannelName()); } else { @@ -119,27 +119,27 @@ namespace NMR } writeStringAttribute(XML_3MF_ATTRIBUTE_BOUNDARY_SHAPE_MESH_BBOX_ONLY, - boundaryShape.getMeshBBoxOnly() ? "true" : "false"); - if(boundaryShape.getMinFeatureSize() != 0.0) + levelSet.getMeshBBoxOnly() ? "true" : "false"); + if(levelSet.getMinFeatureSize() != 0.0) { writeFloatAttribute(XML_3MF_ATTRIBUTE_BOUNDARY_SHAPE_MIN_FEATURE_SIZE, - float(boundaryShape.getMinFeatureSize())); + float(levelSet.getMinFeatureSize())); } - if(boundaryShape.getFallBackValue() != 0.0) + if(levelSet.getFallBackValue() != 0.0) { writeFloatAttribute(XML_3MF_ATTRIBUTE_BOUNDARY_SHAPE_FALLBACK_VALUE, - float(boundaryShape.getFallBackValue())); + float(levelSet.getFallBackValue())); } // writeEndElement(); writeFullEndElement(); } - void CModelWriterNode_BoundaryShape::writeToXML() + void CModelWriterNode_LevelSet::writeToXML() { - if (m_pBoundaryShape) + if (m_pLevelSet) { - writeBoundaryShapeResource(*m_pBoundaryShape); + writeLevelSetResource(*m_pLevelSet); } } diff --git a/Source/Model/Writer/v100/NMR_ModelWriterNode100_Model.cpp b/Source/Model/Writer/v100/NMR_ModelWriterNode100_Model.cpp index d971c6e8c..43333782a 100644 --- a/Source/Model/Writer/v100/NMR_ModelWriterNode100_Model.cpp +++ b/Source/Model/Writer/v100/NMR_ModelWriterNode100_Model.cpp @@ -55,10 +55,10 @@ This is the class for exporting the 3mf model stream root node. #include "Common/MeshInformation/NMR_MeshInformation_Properties.h" #include "Model/Classes/NMR_ModelConstants_Slices.h" #include "Model/Classes/NMR_ModelImplicitFunction.h" -#include "Model/Classes/NMR_ModelBoundaryShapeObject.h" +#include "Model/Classes/NMR_ModelLevelSetObject.h" #include "Model/Classes/NMR_ModelVolumeData.h" #include "Model/Writer/NMR_ModelWriterNode_Implicit.h" -#include "Model/Writer/NMR_ModelWriterNode_BoundaryShape.h" +#include "Model/Writer/NMR_ModelWriterNode_LevelSet.h" #include "Model/Writer/NMR_ModelWriterNode_VolumeData.h" @@ -512,10 +512,10 @@ namespace NMR { writeComponentsObject(pComponentObject); } - CModelBoundaryShapeObject * pBoundaryShape = dynamic_cast (pObject); - if (pBoundaryShape) { - CModelWriterNode_BoundaryShape ModelWriter_BoundaryShape(m_pModel, pBoundaryShape, m_pXMLWriter, m_pProgressMonitor); - ModelWriter_BoundaryShape.writeToXML(); + CModelLevelSetObject * pLevelSet = dynamic_cast (pObject); + if (pLevelSet) { + CModelWriterNode_LevelSet ModelWriter_LevelSet(m_pModel, pLevelSet, m_pXMLWriter, m_pProgressMonitor); + ModelWriter_LevelSet.writeToXML(); } writeFullEndElement(); diff --git a/Tests/CPP_Bindings/Include/UnitTest_Utilities.h b/Tests/CPP_Bindings/Include/UnitTest_Utilities.h index db5902838..bbd09a01c 100644 --- a/Tests/CPP_Bindings/Include/UnitTest_Utilities.h +++ b/Tests/CPP_Bindings/Include/UnitTest_Utilities.h @@ -129,7 +129,7 @@ namespace Lib3MF */ Lib3MF::sTransform ComputeTransformFromMeshCoordinatesToUVW(Lib3MF::PMeshObject mesh); - Lib3MF::PBoundaryShape getFirstBoundaryShape(Lib3MF::PModel model); + Lib3MF::PLevelSet getFirstLevelSet(Lib3MF::PModel model); } // namespace helper } // namespace Lib3MF diff --git a/Tests/CPP_Bindings/Source/UnitTest_Utilities.cpp b/Tests/CPP_Bindings/Source/UnitTest_Utilities.cpp index b2f8b1997..0de134d80 100644 --- a/Tests/CPP_Bindings/Source/UnitTest_Utilities.cpp +++ b/Tests/CPP_Bindings/Source/UnitTest_Utilities.cpp @@ -341,12 +341,12 @@ namespace Lib3MF return transform; } - Lib3MF::PBoundaryShape getFirstBoundaryShape(Lib3MF::PModel model) + Lib3MF::PLevelSet getFirstLevelSet(Lib3MF::PModel model) { - auto iterator = model->GetBoundaryShapes(); + auto iterator = model->GetLevelSets(); if(iterator->MoveNext()) { - return iterator->GetCurrentBoundaryShape(); + return iterator->GetCurrentLevelSet(); } return {}; } diff --git a/Tests/CPP_Bindings/Source/Volumetric.cpp b/Tests/CPP_Bindings/Source/Volumetric.cpp index 57587a742..0a1297974 100644 --- a/Tests/CPP_Bindings/Source/Volumetric.cpp +++ b/Tests/CPP_Bindings/Source/Volumetric.cpp @@ -389,7 +389,7 @@ namespace Lib3MF auto theMesh = GetMesh(); // auto volumeData = theMesh->VolumeData(); // auto theBoundary = volumeData->CreateNewBoundary(newFunction.get()); - auto theBoundary = model->AddBoundaryShape(); + auto theBoundary = model->AddLevelSet(); theBoundary->SetMesh(theMesh); theBoundary->SetFunction(newFunction.get()); @@ -476,7 +476,7 @@ namespace Lib3MF output->SetReference("distance_2.result"); auto theMesh = GetMesh(); - auto theBoundary = model->AddBoundaryShape(); + auto theBoundary = model->AddLevelSet(); theBoundary->SetMesh(theMesh); theBoundary->SetFunction(newFunction.get()); theBoundary->SetFallBackValue(-1.2345); @@ -505,7 +505,7 @@ namespace Lib3MF meshesFromWrittenFile->GetCurrentMeshObject(); // Check the fallback value - auto boundaryFromWrittenFile = helper::getFirstBoundaryShape(ioModel); + auto boundaryFromWrittenFile = helper::getFirstLevelSet(ioModel); EXPECT_EQ(boundaryFromWrittenFile->GetFallBackValue(), -1.2345); // Compare the functions @@ -518,7 +518,7 @@ namespace Lib3MF PImplicitFunction newFunction = helper::createGyroidFunction(*model); auto theMesh = GetMesh(); - auto theBoundary = model->AddBoundaryShape(); + auto theBoundary = model->AddLevelSet(); theBoundary->SetFunction(newFunction.get()); theBoundary->SetMesh(theMesh); @@ -599,7 +599,7 @@ namespace Lib3MF output->SetReference("subtraction.result"); auto theMesh = GetMesh(); - auto theBoundary = model->AddBoundaryShape(); + auto theBoundary = model->AddLevelSet(); theBoundary->SetMesh(theMesh); theBoundary->SetFunction(std::dynamic_pointer_cast(newFunction)); @@ -743,7 +743,7 @@ namespace Lib3MF // Add a boundary to the volume data auto theMesh = GetMesh(); - auto theBoundary = model->AddBoundaryShape(); + auto theBoundary = model->AddLevelSet(); theBoundary->SetMesh(theMesh); theBoundary->SetFunction(newFunction.get()); theBoundary->SetMinFeatureSize(0.1); @@ -922,7 +922,7 @@ namespace Lib3MF // Add boundary - auto boundary = model->AddBoundaryShape(); + auto boundary = model->AddLevelSet(); boundary->SetMesh(theMesh); boundary->SetFunction(funcFromImage3d.get()); @@ -956,7 +956,7 @@ namespace Lib3MF functionFromFile); // Check the boundary - auto boundaryFromFile = helper::getFirstBoundaryShape(ioModel); + auto boundaryFromFile = helper::getFirstLevelSet(ioModel); ASSERT_TRUE(boundaryFromFile); EXPECT_EQ(boundaryFromFile->GetFunction()->GetModelResourceID(), funcImg3dId); helper::CompareTransforms(boundary->GetTransform(),