From 0288af196d11aee8b315e3d0067a2d47cd887105 Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Tue, 5 May 2020 18:17:12 +1000 Subject: [PATCH] Support FootPrint GeomSet geometry representations --- src/ifcblenderexport/blenderbim/bim/export_ifc.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ifcblenderexport/blenderbim/bim/export_ifc.py b/src/ifcblenderexport/blenderbim/bim/export_ifc.py index 51925ca22c..95ed12e9a1 100644 --- a/src/ifcblenderexport/blenderbim/bim/export_ifc.py +++ b/src/ifcblenderexport/blenderbim/bim/export_ifc.py @@ -1926,7 +1926,9 @@ class IfcExporter(): elif representation['subcontext'] == 'CoG': pass elif representation['subcontext'] == 'FootPrint': - pass + if representation['target_view'] in ['PLAN_VIEW', 'REFLECTED_PLAN_VIEW']: + return self.file.createIfcRepresentationMap(self.origin, + self.create_geometric_curve_set_representation(representation, is_2d=True)) elif representation['subcontext'] == 'Reference': pass elif representation['subcontext'] == 'SurveyPoints': @@ -1984,8 +1986,8 @@ class IfcExporter(): 'Curve', self.create_curves(representation['raw'])) - def create_geometric_curve_set_representation(self, representation): - geometric_curve_set = self.file.createIfcGeometricCurveSet(self.create_curves(representation['raw'])) + def create_geometric_curve_set_representation(self, representation, is_2d=False): + geometric_curve_set = self.file.createIfcGeometricCurveSet(self.create_curves(representation['raw'], is_2d=is_2d)) return self.file.createIfcShapeRepresentation( self.ifc_rep_context[representation['context']][representation['subcontext']][ representation['target_view']]['ifc'],