From 2c1238705b1402da4494d5a750e3b131d11e8ea3 Mon Sep 17 00:00:00 2001 From: Sibo Van Gool Date: Sun, 12 Sep 2021 15:48:19 +0200 Subject: [PATCH] [fixes #1003] Remove clipping of FinSet points beyond parent body --- core/src/net/sf/openrocket/rocketcomponent/FinSet.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/core/src/net/sf/openrocket/rocketcomponent/FinSet.java b/core/src/net/sf/openrocket/rocketcomponent/FinSet.java index b298608bc..f132bb28b 100644 --- a/core/src/net/sf/openrocket/rocketcomponent/FinSet.java +++ b/core/src/net/sf/openrocket/rocketcomponent/FinSet.java @@ -1161,12 +1161,6 @@ public abstract class FinSet extends ExternalComponent implements AxialPositiona xCur += increment; } - // correct last point, if beyond a rounding error from body's end. - final int lastIndex = points.length - 1; - if( body.getLength()-0.000001 < points[lastIndex].x) { - points[lastIndex] = points[lastIndex].setX(body.getLength()).setY(body.getAftRadius()); - } - if( 0.0000001 < (Math.abs(xOffset) + Math.abs(yOffset))){ points = translatePoints(points, xOffset, yOffset); }