Merge pull request #1247 from JoePfeiffer/fix-1243

Get correct fin span when last point in shape is lower than first point.
This commit is contained in:
Billy Olsen 2022-03-19 18:51:43 -07:00 committed by GitHub
commit 50af4f1f1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -296,7 +296,8 @@ public class FreeformFinSet extends FinSet {
if (c.y > max)
max = c.y;
}
return max;
return max - Math.min(points.get(points.size() - 1).y, 0);
}
@Override