mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-19 19:54:07 +00:00
shapebuilder - replace y extrusion args with shortcut for readibility
This commit is contained in:
@@ -274,9 +274,7 @@ class FilledOpeningGenerator:
|
||||
get_curve_2d_from_3d(profile),
|
||||
magnitude=thickness / unit_scale,
|
||||
position=Vector([0.0, -thickness * 0.5 / unit_scale, 0.0]),
|
||||
position_x_axis=Vector((1, 0, 0)),
|
||||
position_z_axis=Vector((0, -1, 0)),
|
||||
extrusion_vector=Vector((0, 0, -1)),
|
||||
**shape_builder.extrude_kwargs("Y")
|
||||
)
|
||||
return shape_builder.get_representation(context, [extrusion])
|
||||
|
||||
@@ -309,9 +307,7 @@ class FilledOpeningGenerator:
|
||||
shape_builder.rectangle(size=opening_size),
|
||||
magnitude=thickness / unit_scale,
|
||||
position=opening_position,
|
||||
position_z_axis=Vector((0.0, -1.0, 0.0)),
|
||||
position_x_axis=Vector((1.0, 0.0, 0.0)),
|
||||
extrusion_vector=Vector((0.0, 0.0, -1.0)),
|
||||
**shape_builder.extrude_kwargs("Y")
|
||||
)
|
||||
|
||||
return shape_builder.get_representation(context, [extrusion])
|
||||
|
||||
@@ -68,9 +68,7 @@ def update_simple_openings(element, opening_width, opening_height):
|
||||
shape_builder.rectangle(size=Vector([opening_width, 0.0, opening_height]).xz),
|
||||
magnitude=thickness / unit_scale,
|
||||
position=Vector([0.0, -0.1 / unit_scale, 0.0]),
|
||||
position_x_axis=V(1, 0, 0),
|
||||
position_z_axis=V(0, -1, 0),
|
||||
extrusion_vector=V(0, 0, -1),
|
||||
**shape_builder.extrude_kwargs("Y")
|
||||
)
|
||||
|
||||
new_representation = shape_builder.get_representation(context, extrusion)
|
||||
|
||||
@@ -1134,8 +1134,7 @@ class LibraryGenerator:
|
||||
back_wall_extruded = builder.extrude(
|
||||
back_wall,
|
||||
back_wall_depth + back_wall_border_mask_depth,
|
||||
position_z_axis=V(0, -1, 0),
|
||||
extrusion_vector=V(0, 0, -1),
|
||||
**builder.extrude_kwargs("Y")
|
||||
)
|
||||
items_3d_to_center.append(back_wall_extruded)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user