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