finish mapping Qto_FootingBaseQuantities

This commit is contained in:
Massimo Fabbro
2023-02-14 21:20:12 +01:00
committed by Dion Moult
parent 31cf1127a6
commit 3687e4ed91
2 changed files with 9 additions and 8 deletions
@@ -283,14 +283,14 @@ mapper = {
'NumberOfCircuits' : None,
},
'Qto_FootingBaseQuantities' : {
'Length' : None,
'Width' : None,
'Height' : None,
'CrossSectionArea' : None,
'OuterSurfaceArea' : None,
'GrossSurfaceArea' : None,
'GrossVolume' : None,
'NetVolume' : None,
'Length' : "get_length",
'Width' : "get_width",
'Height' : "get_height",
'CrossSectionArea' : "get_cross_section_area",
'OuterSurfaceArea' : "get_outer_surface_area",
'GrossSurfaceArea' : "get_gross_surface_area",
'GrossVolume' : "get_gross_volume",
'NetVolume' : "get_net_volume",
'GrossWeight' : None,
'NetWeight' : None,
},
@@ -413,6 +413,7 @@ class QtoCalculator:
if not self.has_openings(o):
return self.get_net_surface_area(o)
element = tool.Ifc.get_entity(o)
mesh = self.get_gross_element_mesh(element)
area = self.get_mesh_area(mesh)
bpy.data.meshes.remove(mesh)