mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-23 07:42:41 +00:00
Support FootPrint GeomSet geometry representations
This commit is contained in:
@@ -1926,7 +1926,9 @@ class IfcExporter():
|
|||||||
elif representation['subcontext'] == 'CoG':
|
elif representation['subcontext'] == 'CoG':
|
||||||
pass
|
pass
|
||||||
elif representation['subcontext'] == 'FootPrint':
|
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':
|
elif representation['subcontext'] == 'Reference':
|
||||||
pass
|
pass
|
||||||
elif representation['subcontext'] == 'SurveyPoints':
|
elif representation['subcontext'] == 'SurveyPoints':
|
||||||
@@ -1984,8 +1986,8 @@ class IfcExporter():
|
|||||||
'Curve',
|
'Curve',
|
||||||
self.create_curves(representation['raw']))
|
self.create_curves(representation['raw']))
|
||||||
|
|
||||||
def create_geometric_curve_set_representation(self, representation):
|
def create_geometric_curve_set_representation(self, representation, is_2d=False):
|
||||||
geometric_curve_set = self.file.createIfcGeometricCurveSet(self.create_curves(representation['raw']))
|
geometric_curve_set = self.file.createIfcGeometricCurveSet(self.create_curves(representation['raw'], is_2d=is_2d))
|
||||||
return self.file.createIfcShapeRepresentation(
|
return self.file.createIfcShapeRepresentation(
|
||||||
self.ifc_rep_context[representation['context']][representation['subcontext']][
|
self.ifc_rep_context[representation['context']][representation['subcontext']][
|
||||||
representation['target_view']]['ifc'],
|
representation['target_view']]['ifc'],
|
||||||
|
|||||||
Reference in New Issue
Block a user