lib3mf 2.5 :
- aggiornamento versione - utilizzate le nostre librerie esterne libzip e zlib e non quelle incluse in lib3mf.
This commit is contained in:
@@ -32,6 +32,7 @@ Abstract: This is a stub class definition of CObject
|
||||
#include "lib3mf_interfaceexception.hpp"
|
||||
|
||||
#include "lib3mf_meshobject.hpp"
|
||||
#include "lib3mf_levelset.hpp"
|
||||
#include "lib3mf_componentsobject.hpp"
|
||||
#include "lib3mf_metadatagroup.hpp"
|
||||
#include "lib3mf_slicestack.hpp"
|
||||
@@ -39,6 +40,7 @@ Abstract: This is a stub class definition of CObject
|
||||
|
||||
// Include custom headers here.
|
||||
#include "Model/Classes/NMR_ModelMeshObject.h"
|
||||
#include "Model/Classes/NMR_ModelLevelSetObject.h"
|
||||
#include "Model/Classes/NMR_ModelComponentsObject.h"
|
||||
|
||||
using namespace Lib3MF::Impl;
|
||||
@@ -65,6 +67,11 @@ IObject* CObject::fnCreateObjectFromModelResource(NMR::PModelResource pResource,
|
||||
return new CMeshObject(pResource);
|
||||
}
|
||||
|
||||
NMR::CModelLevelSetObject * PILevelSet = dynamic_cast<NMR::CModelLevelSetObject *> (pResource.get());
|
||||
if (PILevelSet) {
|
||||
return new CLevelSet(pResource);
|
||||
}
|
||||
|
||||
NMR::CModelComponentsObject * pComponentsResource = dynamic_cast<NMR::CModelComponentsObject *> (pResource.get());
|
||||
if (pComponentsResource) {
|
||||
return new CComponentsObject(pResource);
|
||||
@@ -124,6 +131,13 @@ bool CObject::IsComponentsObject ()
|
||||
throw ELib3MFInterfaceException(LIB3MF_ERROR_SHOULDNOTBECALLED);
|
||||
}
|
||||
|
||||
bool CObject::IsLevelSetObject()
|
||||
{
|
||||
// overwritten by child class
|
||||
throw ELib3MFInterfaceException(LIB3MF_ERROR_SHOULDNOTBECALLED);
|
||||
}
|
||||
|
||||
|
||||
IMeshObject * CObject::AsMeshObject()
|
||||
{
|
||||
if (dynamic_cast<NMR::CModelMeshObject*>(resource().get()))
|
||||
|
||||
Reference in New Issue
Block a user