Make all angle joints flanged
This commit is contained in:
parent
c5f9e570a6
commit
bd7e8677c7
|
@ -846,7 +846,7 @@ class Onbashira(Model):
|
|||
return result
|
||||
|
||||
@target(name="angle-joint")
|
||||
def angle_joint(self) -> Cq.Workplane:
|
||||
def angle_joint(self, add_flange=True) -> Cq.Workplane:
|
||||
"""
|
||||
Angular joint between two side panels (excluding chamber). This sits at the intersection of
|
||||
4 side panels to provide compressive, shear, and tensile strength.
|
||||
|
@ -961,11 +961,8 @@ class Onbashira(Model):
|
|||
result.tagAbsolute(f"holeRSO{i}", locrot * Cq.Location(dr, -x, -py), direction="+X")
|
||||
result.tagAbsolute(f"holeLSM{i}", locrot * Cq.Location(dr0, -x, py), direction="-X")
|
||||
result.tagAbsolute(f"holeRSM{i}", locrot * Cq.Location(dr0, -x, -py), direction="-X")
|
||||
return result
|
||||
|
||||
@target(name="angle-joint-flanged")
|
||||
def angle_joint_flanged(self) -> Cq.Workplane:
|
||||
result = self.angle_joint()
|
||||
if add_flange:
|
||||
th = math.pi / self.n_side
|
||||
r = self.bulk_radius
|
||||
flange = (
|
||||
|
@ -1016,7 +1013,7 @@ class Onbashira(Model):
|
|||
name="section1",
|
||||
)
|
||||
.add(
|
||||
self.assembly_ring(self.angle_joint_flanged()),
|
||||
self.assembly_ring(self.angle_joint()),
|
||||
name="ring1",
|
||||
)
|
||||
.add(
|
||||
|
|
Loading…
Reference in New Issue