Hello everyone,
Getting more and more into ifcopenshell.api and it's really fantastic!!
But I ran into one issue that I can't manage to solve.
How can I create sloped walls (for roof spaces or gables) like in the image:
What I use for making walls is something like this:
def convert_wall_to_ifc_wall(ifcfile, sb, body, storey, points, height=0):
wall = ifcopenshell.api.run("root.create_entity", ifcfile, ifc_class="IfcWall", name="Wall")
profile = sb.polyline(points)
extruded_solid = sb.extrude(profile, magnitude=height, position=mathutils.Vector((0.0, 0.0, 0.0)), extrusion_vector=mathutils.Vector((0.0, 0.0, 1.0)))
representation = sb.get_representation(body, extruded_solid)
ifcopenshell.api.run("geometry.assign_representation", ifcfile, product=wall, representation=representation)
ifcopenshell.api.run("spatial.assign_container", ifcfile, relating_structure=storey, product=wall)
ifcopenshell.api.run("geometry.edit_object_placement", ifcfile, product=wall)
Is it possible to adapt this logic so different points of the profile polyline get extuded by different magnitudes?
Thank you in advance!