mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-30 12:09:51 +00:00
Merge remote-tracking branch 'origin/v0.8.0' into datamodel-v1.0
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "ParseIfcFile.h"
|
||||
#include "../ifcgeom/hybrid_kernel.h"
|
||||
|
||||
#include "MessageLogger.h"
|
||||
#include "osg/Array"
|
||||
@@ -31,7 +32,7 @@ bool ParseIfcFile::Parse(
|
||||
settings.set("weld-vertices", false);
|
||||
settings.set("apply-default-materials", true);
|
||||
|
||||
IfcGeom::Iterator* it = new IfcGeom::Iterator(settings, &file);
|
||||
IfcGeom::Iterator* it = new IfcGeom::Iterator(ifcopenshell::geometry::kernels::construct(&file, "opencascade", settings), settings, &file);
|
||||
if (!it->initialize()) {
|
||||
MessageLogger::log("Error: Iterator failed to initialize! Aborting.");
|
||||
delete it;
|
||||
|
||||
Reference in New Issue
Block a user