Skip to content

Commit

Permalink
reverse multigroup component string. closes #175
Browse files Browse the repository at this point in the history
  • Loading branch information
ranjian0 committed Dec 15, 2020
1 parent f6be11e commit 25c476d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions btools/building/multigroup/multigroup_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ def create_multigroup_frame(bm, face, prop):
"""
normal = face.normal.copy()

dws = parse_components(prop.components)
# XXX Reverse prop.components to solve issue #175
# -- the real issue is with util_mesh.subdivide_face_* functions that don't allow direction parameter
dws = parse_components(prop.components[::-1])
door_faces, window_faces, frame_faces = make_multigroup_insets(bm, face, prop, dws)
arch_face = None

Expand Down Expand Up @@ -166,10 +168,7 @@ def make_multigroup_insets(bm, face, prop, dws):
clubbed_widths = [clubbed_width(dw_width, frame_thickness, dw['type'], dw['count'], i == 0, i == len(dws)-1) for i, dw in enumerate(dws)]
clubbed_faces = subdivide_face_horizontally(bm, face, clubbed_widths)

doors = []
windows = []
frames = []

doors, windows, frames = [], [], []
for i, (dw, f) in enumerate(zip(dws, clubbed_faces)):
if dw['type'] == 'door':
ds, fs = make_door_insets(bm, f, dw['count'], door_height, dw_width, frame_thickness, i == 0, i == len(dws)-1)
Expand Down

0 comments on commit 25c476d

Please sign in to comment.