mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-16 21:42:19 +00:00
First start plug-in architecture
This commit is contained in:
@@ -3,6 +3,9 @@ find_package(Boost REQUIRED)
|
||||
file(GLOB CPP_FILES *.cpp)
|
||||
set(SOURCE_FILES ${CPP_FILES})
|
||||
add_executable(IfcGeomServer ${SOURCE_FILES})
|
||||
target_link_libraries(IfcGeomServer IfcGeom ${kernel_libraries} ${OpenCASCADE_LIBRARIES})
|
||||
target_link_libraries(IfcGeomServer IfcGeom ${OpenCASCADE_LIBRARIES})
|
||||
if(WITH_OPENCASCADE)
|
||||
target_link_libraries(IfcGeomServer geometry_kernel_opencascade)
|
||||
endif()
|
||||
|
||||
install(TARGETS IfcGeomServer)
|
||||
|
||||
@@ -43,11 +43,11 @@
|
||||
|
||||
#include "../ifcgeom/Iterator.h"
|
||||
#include "../ifcgeom/IfcGeomElement.h"
|
||||
#include "../ifcgeom/kernel_registry.h"
|
||||
#include "../ifcgeom/kernels/opencascade/OpenCascadeConversionResult.h"
|
||||
#include "../ifcparse/file.h"
|
||||
#include "../ifcparse/logger.h"
|
||||
|
||||
#include "../ifcgeom/kernels/opencascade/OpenCascadeKernel.h"
|
||||
|
||||
#if USE_VLD
|
||||
#include <vld.h>
|
||||
#endif
|
||||
@@ -605,7 +605,7 @@ int main () {
|
||||
settings.get<ifcopenshell::geometry::settings::MesherLinearDeflection>().value = deflection;
|
||||
|
||||
file = new ifcopenshell::file(data, (int)len);
|
||||
iterator = new IfcGeom::Iterator(std::unique_ptr<ifcopenshell::geometry::kernels::AbstractKernel>(new IfcGeom::OpenCascadeKernel(settings)), settings, file);
|
||||
iterator = new IfcGeom::Iterator(ifcopenshell::geometry::kernels::construct(file, "opencascade", settings), settings, file);
|
||||
has_more = iterator->initialize();
|
||||
|
||||
More(has_more).write(std::cout);
|
||||
|
||||
Reference in New Issue
Block a user