feat: Add tripod attachment point
This commit is contained in:
parent
596311f326
commit
9d78bf604a
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue