feat: Add tripod attachment point

This commit is contained in:
Leni Aniva 2025-01-28 17:15:38 -08:00
parent 596311f326
commit 9d78bf604a
Signed by: aniva
GPG Key ID: 4D9B1C8D10EA4C50
1 changed files with 19 additions and 0 deletions

View File

@ -13,6 +13,10 @@ class LightPanel(Model):
length: float = 300.0 length: float = 300.0
width: float = 200.0 width: float = 200.0
attach_height: float = 20.0
attach_diam: float = 8.0
attach_depth: float = 12.7
grid_height: float = 20.0 grid_height: float = 20.0
grid_top_height: float = 5.0 grid_top_height: float = 5.0
# Distance from grid to edge # Distance from grid to edge
@ -91,6 +95,21 @@ class LightPanel(Model):
thickness=self.base_thickness, thickness=self.base_thickness,
) )
@target(name="attachment")
def attachment(self) -> Cq.Workplane:
l = self.length / 2
w = self.width / 2
return (
Cq.Workplane('XY')
.box(
l, w, self.attach_height,
centered=(True, True, False),
)
.faces(">Z")
.hole(self.attach_diam, self.attach_depth)
)
def assembly(self) -> Cq.Assembly: def assembly(self) -> Cq.Assembly:
assembly = ( assembly = (
Cq.Assembly() Cq.Assembly()