Skip to content

Commit

Permalink
fix(Waverider): limit planform bezier points based on fuselage
Browse files Browse the repository at this point in the history
  • Loading branch information
kieran-mackle committed Apr 14, 2024
1 parent 443d230 commit a074a37
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions hypervehicle/hangar/waverider.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,19 +225,23 @@ def modify_underside(x, y, z):
clustering={"i_clustering_func": self._cf},
curvatures=self.curvatures,
modifier_function=modify_underside,
ghost=True,
# ghost=True,
)

def _create_wings(self, waverider: Vehicle) -> None:
# Create body planform line
A1 = Vector3(x=0.5 * self.length, y=0)
TT = Vector3(x=self.length, y=0)
B0 = Vector3(x=0, y=self.width / 2)

# Need to limit p2y based on fuselage width
p2y = max(self.p2y, self._get_local_height(self.p2x))
p3y = max(self.p3y, self._get_local_height(self.p2x))
Line_B0TT = Bezier(
[
B0,
Vector3(self.p2x, self.p2y),
Vector3(self.p3x, self.p3y),
Vector3(self.p2x, p2y),
Vector3(self.p3x, p3y),
TT,
]
)
Expand Down

0 comments on commit a074a37

Please sign in to comment.