calculate center of airfoil
This commit is contained in:
parent
b116558e78
commit
5c565be49c
1 changed files with 2 additions and 1 deletions
|
@ -99,7 +99,8 @@ fn strut(airfoil: &Airfoil, chord: f32, width: f32) -> ScadObject {
|
|||
let shape = scad!(Polygon(aerofoil));
|
||||
|
||||
let strut_hole = {
|
||||
let points = &airfoil.get_points()[0..80];
|
||||
let points = airfoil.get_points();
|
||||
let points = &points[0.. points.len() / 2];
|
||||
let perimeter = span_length(points);
|
||||
let span = points_in_range(&Vec::from(points), perimeter * 0.4.. perimeter);
|
||||
|
||||
|
|
Loading…
Reference in a new issue