From f4d58b39692b03f9f125404567fbb7e46cf38e4b Mon Sep 17 00:00:00 2001 From: aothms Date: Mon, 1 Feb 2016 14:58:42 +0100 Subject: [PATCH] Fix for IfcAdvancedFace when compiling for 2x3 --- src/ifcgeom/IfcGeomFaces.cpp | 16 ++++++++-------- src/ifcgeom/IfcRegister.h | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/ifcgeom/IfcGeomFaces.cpp b/src/ifcgeom/IfcGeomFaces.cpp index 1e03911238..6d83f90609 100644 --- a/src/ifcgeom/IfcGeomFaces.cpp +++ b/src/ifcgeom/IfcGeomFaces.cpp @@ -889,6 +889,14 @@ bool IfcGeom::Kernel::convert(const IfcSchema::IfcDerivedProfileDef* l, TopoDS_S } } +bool IfcGeom::Kernel::convert(const IfcSchema::IfcPlane* l, TopoDS_Shape& face) { + gp_Pln pln; + convert(l, pln); + Handle_Geom_Surface surf = new Geom_Plane(pln); + face = BRepBuilderAPI_MakeFace(surf, getValue(GV_PRECISION)); + return true; +} + #ifdef USE_IFC4 bool IfcGeom::Kernel::convert(const IfcSchema::IfcBSplineSurfaceWithKnots* l, TopoDS_Shape& face) { @@ -939,12 +947,4 @@ bool IfcGeom::Kernel::convert(const IfcSchema::IfcBSplineSurfaceWithKnots* l, To return true; } -bool IfcGeom::Kernel::convert(const IfcSchema::IfcPlane* l, TopoDS_Shape& face) { - gp_Pln pln; - convert(l, pln); - Handle_Geom_Surface surf = new Geom_Plane(pln); - face = BRepBuilderAPI_MakeFace(surf, getValue(GV_PRECISION)); - return true; -} - #endif \ No newline at end of file diff --git a/src/ifcgeom/IfcRegister.h b/src/ifcgeom/IfcRegister.h index dc231b2b40..305c0c9f5e 100644 --- a/src/ifcgeom/IfcRegister.h +++ b/src/ifcgeom/IfcRegister.h @@ -53,9 +53,9 @@ SHAPE(IfcCylindricalSurface); SHAPE(IfcAdvancedBrep); // FIXME: Surfaces should have a shape type of their own SHAPE(IfcBSplineSurfaceWithKnots); -SHAPE(IfcPlane); SHAPE(IfcTriangulatedFaceSet); #endif +SHAPE(IfcPlane); SHAPE(IfcExtrudedAreaSolid); SHAPE(IfcRevolvedAreaSolid); SHAPE(IfcConnectedFaceSet);