Fixes for compilation of cgal kernel

This commit is contained in:
Thomas Krijnen
2019-01-23 12:34:21 +01:00
parent a7a1ad129e
commit 30479ca0a6
15 changed files with 171 additions and 99 deletions
@@ -35,7 +35,9 @@ bool OpenCascadeBasedSerializer::ready() {
}
void OpenCascadeBasedSerializer::write(const IfcGeom::NativeElement<real_t>* o) {
TopoDS_Shape compound = o->geometry().as_compound();
IfcGeom::OpenCascadeShape* occt_shape = ((IfcGeom::OpenCascadeShape*) o->geometry().as_compound());
TopoDS_Shape compound = occt_shape->shape();
delete occt_shape;
if (o->geometry().settings().get(IfcGeom::IteratorSettings::CONVERT_BACK_UNITS)) {
gp_Trsf scale;
+6 -1
View File
@@ -19,6 +19,8 @@
* *
********************************************************************************/
#include "../ifcgeom/schema_agnostic/opencascade/OpenCascadeConversionResult.h"
#include <string>
#include <fstream>
#include <cstdio>
@@ -342,7 +344,10 @@ void SvgSerializer::write(const IfcGeom::NativeElement<real_t>* o)
path_object& p = start_path(storey, nameElement(o));
TopoDS_Shape compound = o->geometry().as_compound();
IfcGeom::OpenCascadeShape* occt_shape = ((IfcGeom::OpenCascadeShape*) o->geometry().as_compound());
TopoDS_Shape compound = occt_shape->shape();
delete occt_shape;
TopoDS_Iterator it(compound);
// Iterate over components of compound to have better chance of matching section edges to closed wires