mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 06:39:13 +00:00
Finish mapping Qto_DoorBaseQuantities and Qto_WindowBaseQuantities
This commit is contained in:
committed by
Dion Moult
parent
899995cb51
commit
02eb846dea
@@ -65,10 +65,10 @@ mapper = {
|
|||||||
'GrossWeight' : None,
|
'GrossWeight' : None,
|
||||||
},
|
},
|
||||||
'Qto_DoorBaseQuantities' : {
|
'Qto_DoorBaseQuantities' : {
|
||||||
'Width' : None,
|
'Width' : { "function_name" : "get_length", "args" : ", main_axis = 'x'"},
|
||||||
'Height' : None,
|
'Height' : "get_height",
|
||||||
'Perimeter' : None,
|
'Perimeter' : "get_rectangular_perimeter",
|
||||||
'Area' : None,
|
'Area' : "get_net_side_area",
|
||||||
},
|
},
|
||||||
'Qto_DuctSegmentBaseQuantities' : {
|
'Qto_DuctSegmentBaseQuantities' : {
|
||||||
'Length' : None,
|
'Length' : None,
|
||||||
@@ -506,10 +506,10 @@ mapper = {
|
|||||||
'GrossWeight' : None,
|
'GrossWeight' : None,
|
||||||
},
|
},
|
||||||
'Qto_WindowBaseQuantities' : {
|
'Qto_WindowBaseQuantities' : {
|
||||||
'Width' : None,
|
'Width' : { "function_name" : "get_length", "args" : ", main_axis = 'x'"},
|
||||||
'Height' : None,
|
'Height' : "get_height",
|
||||||
'Perimeter' : None,
|
'Perimeter' : "get_rectangular_perimeter",
|
||||||
'Area' : None,
|
'Area' : "get_net_side_area",
|
||||||
},
|
},
|
||||||
'Qto_SanitaryTerminalBaseQuantities' : {
|
'Qto_SanitaryTerminalBaseQuantities' : {
|
||||||
'GrossWeight' : None,
|
'GrossWeight' : None,
|
||||||
|
|||||||
@@ -18,6 +18,9 @@ LATERAL AREA
|
|||||||
All lateral areas are counted, so for example also the inside surfaces.
|
All lateral areas are counted, so for example also the inside surfaces.
|
||||||
It shouldn't be like that so we should find a method to only external lateral area.
|
It shouldn't be like that so we should find a method to only external lateral area.
|
||||||
|
|
||||||
|
DOORS AND WINDOWS
|
||||||
|
Doors and Windows have to have the main axis along 'x' and the height is measured along 'z' axis
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -161,6 +161,11 @@ class QtoCalculator:
|
|||||||
self.delete_obj(gross_obj)
|
self.delete_obj(gross_obj)
|
||||||
return gross_perimeter
|
return gross_perimeter
|
||||||
|
|
||||||
|
def get_rectangular_perimeter(self, obj):
|
||||||
|
length = self.get_length(obj, main_axis='x')
|
||||||
|
height = self.get_height(obj)
|
||||||
|
return (length+height)*2
|
||||||
|
|
||||||
def get_lowest_polygons(self, o):
|
def get_lowest_polygons(self, o):
|
||||||
lowest_polygons = []
|
lowest_polygons = []
|
||||||
lowest_z = None
|
lowest_z = None
|
||||||
|
|||||||
Reference in New Issue
Block a user