Skip to content

Commit a31afaf

Browse files
committed
formatting
1 parent 40d7ad0 commit a31afaf

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/timber_design/ghpython/components/CT_Beam_From_Box/code.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
from timber_design.ghpython.ghcomponent_helpers import list_input_valid_cpython
1616
from timber_design.ghpython.ghcomponent_helpers import get_guid_and_geometry
1717

18-
class BeamFromBox(Grasshopper.Kernel.GH_ScriptInstance):
1918

19+
class BeamFromBox(Grasshopper.Kernel.GH_ScriptInstance):
2020
def RunScript(
2121
self,
2222
box_brep: System.Collections.Generic.List[object],
@@ -64,9 +64,9 @@ def _box_from_obb_consistent(self, obb_points):
6464
pts = [Point(*p) for p in obb_points]
6565

6666
origin = pts[0]
67-
x_vec = pts[1] - pts[0] # edge along local X
68-
y_vec = pts[3] - pts[0] # edge along local Y
69-
z_vec = pts[4] - pts[0] # edge along local Z
67+
x_vec = pts[1] - pts[0] # edge along local X
68+
y_vec = pts[3] - pts[0] # edge along local Y
69+
z_vec = pts[4] - pts[0] # edge along local Z
7070

7171
xsize = x_vec.length
7272
ysize = y_vec.length
@@ -79,7 +79,7 @@ def _box_from_obb_consistent(self, obb_points):
7979
)
8080

8181
sizes = [a[0] for a in axes]
82-
vecs = [a[1] for a in axes]
82+
vecs = [a[1] for a in axes]
8383

8484
x_axis = vecs[0].unitized()
8585
y_axis = vecs[1].unitized()

src/timber_design/ghpython/components/CT_Plate/code.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
from timber_design.ghpython.ghcomponent_helpers import item_input_valid_cpython
1515
from timber_design.ghpython.ghcomponent_helpers import get_guid_and_geometry
1616

17+
1718
class Plate(Grasshopper.Kernel.GH_ScriptInstance):
1819
def RunScript(self, outline, thickness: float, vector: Rhino.Geometry.Vector3d, openings: System.Collections.Generic.List[object], category: str, updateRefObj: bool):
1920
# minimum inputs required

src/timber_design/ghpython/components/CT_Plate_From_Brep/code.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,3 @@ def RunScript(self, brep, category: str, updateRefObj: bool):
3030
scene.add(plate.geometry)
3131
geo = scene.draw()
3232
return plate, geo
33-

0 commit comments

Comments
 (0)