Skip to content

Commit e4589ad

Browse files
ADD box getter for column and beam.
1 parent 706420a commit e4589ad

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/compas_model/elements/beam.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ def __init__(
7979
self._box = Box.from_width_height_depth(width, length, depth)
8080
self._box.frame = Frame(point=[0, 0, self._box.zsize / 2], xaxis=[1, 0, 0], yaxis=[0, 1, 0])
8181

82+
def box(self) -> Box:
83+
return self._box
84+
8285
@property
8386
def width(self) -> float:
8487
return self._box.xsize

src/compas_model/elements/column.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ def __init__(
7474
self._box = Box.from_width_height_depth(width, height, depth)
7575
self._box.frame = Frame(point=[0, 0, self._box.zsize / 2], xaxis=[1, 0, 0], yaxis=[0, 1, 0])
7676

77+
def box(self) -> Box:
78+
return self._box
79+
7780
@property
7881
def width(self) -> float:
7982
return self._box.xsize

0 commit comments

Comments
 (0)