Skip to content

Commit

Permalink
directly use beam attributes as they are now aligned with btlx
Browse files Browse the repository at this point in the history
  • Loading branch information
chenkasirer committed Aug 9, 2024
1 parent 525ce79 commit 6efaf47
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/compas_timber/fabrication/btlx.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,13 +192,9 @@ def __init__(self, beam, order_num):
self.beam = beam
self.order_num = order_num
self.length = beam.blank_length
self.width = beam.height
self.height = beam.width
self.frame = Frame(
self.beam.long_edges[2].closest_point(self.beam.blank_frame.point),
beam.frame.xaxis,
beam.frame.yaxis,
) # I used long_edge[2] because it is in Y and Z negative. Using that as reference puts the beam entirely in positive coordinates.
self.width = beam.width
self.height = beam.height
self.frame = beam.ref_frame
self.blank_length = beam.blank_length
self.processings = []
self._et_element = None
Expand Down

0 comments on commit 6efaf47

Please sign in to comment.