File tree 1 file changed +3
-8
lines changed 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -61,25 +61,20 @@ def from_rocket_model(cls, rocket: RocketView) -> Self:
61
61
# NoseCone
62
62
if rocket .nose :
63
63
nose = cls .get_rocketpy_nose (rocket .nose )
64
- rocketpy_rocket .aerodynamic_surfaces .add (nose , nose .position )
65
- rocketpy_rocket .evaluate_static_margin ()
64
+ rocketpy_rocket .add_surfaces (nose , nose .position )
66
65
67
66
# FinSet
68
67
if rocket .fins :
69
68
rocketpy_finset_list = cls .get_rocketpy_finset_list_from_fins_list (
70
69
rocket .fins
71
70
)
72
71
for finset in rocketpy_finset_list :
73
- rocketpy_rocket .aerodynamic_surfaces .add (
74
- finset , finset .position
75
- )
76
- rocketpy_rocket .evaluate_static_margin ()
72
+ rocketpy_rocket .add_surfaces (finset , finset .position )
77
73
78
74
# Tail
79
75
if rocket .tail :
80
76
tail = cls .get_rocketpy_tail (rocket .tail )
81
- rocketpy_rocket .aerodynamic_surfaces .add (tail , tail .position )
82
- rocketpy_rocket .evaluate_static_margin ()
77
+ rocketpy_rocket .add_surfaces (tail , tail .position )
83
78
84
79
# Air Brakes
85
80
You can’t perform that action at this time.
0 commit comments