[fixes #1003] Remove clipping of FinSet points beyond parent body
This commit is contained in:
parent
46b974cae7
commit
2c1238705b
@ -1161,12 +1161,6 @@ public abstract class FinSet extends ExternalComponent implements AxialPositiona
|
|||||||
xCur += increment;
|
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))){
|
if( 0.0000001 < (Math.abs(xOffset) + Math.abs(yOffset))){
|
||||||
points = translatePoints(points, xOffset, yOffset);
|
points = translatePoints(points, xOffset, yOffset);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user