mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-09 13:52:23 +00:00
@@ -548,7 +548,7 @@ class Regenerator:
|
|||||||
material = ifcopenshell.util.element.get_material(wall, should_skip_usage=True)
|
material = ifcopenshell.util.element.get_material(wall, should_skip_usage=True)
|
||||||
if not material or not material.is_a("IfcMaterialLayerSet"):
|
if not material or not material.is_a("IfcMaterialLayerSet"):
|
||||||
return []
|
return []
|
||||||
return [PrioritisedLayer(l.Priority or 0, l.LayerThickness) for l in material.MaterialLayers]
|
return [PrioritisedLayer(getattr(l, "Priority", 0) or 0, l.LayerThickness) for l in material.MaterialLayers]
|
||||||
|
|
||||||
def combine_layers(self, layers, override_priorities):
|
def combine_layers(self, layers, override_priorities):
|
||||||
results = []
|
results = []
|
||||||
|
|||||||
@@ -480,7 +480,7 @@ def get_reference_line(wall: ifcopenshell.entity_instance, fallback_length: floa
|
|||||||
if axis := ifcopenshell.util.representation.get_representation(wall, "Plan", "Axis", "GRAPH_VIEW"):
|
if axis := ifcopenshell.util.representation.get_representation(wall, "Plan", "Axis", "GRAPH_VIEW"):
|
||||||
for item in ifcopenshell.util.representation.resolve_representation(axis).Items:
|
for item in ifcopenshell.util.representation.resolve_representation(axis).Items:
|
||||||
if item.is_a("IfcPolyline"):
|
if item.is_a("IfcPolyline"):
|
||||||
points = item.Points
|
points = [p[0] for p in item.Points]
|
||||||
elif item.is_a("IfcIndexedPolyCurve"):
|
elif item.is_a("IfcIndexedPolyCurve"):
|
||||||
points = item.Points.CoordList
|
points = item.Points.CoordList
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user