[fixes #1003] Remove clipping of FinSet points beyond parent body

This commit is contained in:
Sibo Van Gool 2021-09-12 15:48:19 +02:00
parent 46b974cae7
commit 2c1238705b

View File

@ -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);
}