Merge pull request #1016 from SiboVG/issue-1003
[fixes #1003] Fix FinSet point clipping when further than parent body
This commit is contained in:
commit
e2035bc918
@ -1159,7 +1159,7 @@ public abstract class FinSet extends ExternalComponent implements AxialPositiona
|
|||||||
|
|
||||||
// correct last point, if beyond a rounding error from body's end.
|
// correct last point, if beyond a rounding error from body's end.
|
||||||
final int lastIndex = points.length - 1;
|
final int lastIndex = points.length - 1;
|
||||||
if( body.getLength()-0.000001 < points[lastIndex].x) {
|
if (Math.abs(points[lastIndex].x - body.getLength()) < 0.000001) {
|
||||||
points[lastIndex] = points[lastIndex].setX(body.getLength()).setY(body.getAftRadius());
|
points[lastIndex] = points[lastIndex].setX(body.getLength()).setY(body.getAftRadius());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -32,9 +32,9 @@ public class FinSetShapes extends RocketComponentShape {
|
|||||||
|
|
||||||
final Transformation compositeTransform = transformation.applyTransformation(cantRotation);
|
final Transformation compositeTransform = transformation.applyTransformation(cantRotation);
|
||||||
|
|
||||||
Coordinate finPoints[] = finset.getFinPoints();
|
Coordinate[] finPoints = finset.getFinPoints();
|
||||||
Coordinate tabPoints[] = finset.getTabPoints();
|
Coordinate[] tabPoints = finset.getTabPoints();
|
||||||
Coordinate rootPoints[] = finset.getRootPoints();
|
Coordinate[] rootPoints = finset.getRootPoints();
|
||||||
|
|
||||||
// Translate & rotate points into place
|
// Translate & rotate points into place
|
||||||
finPoints = compositeTransform.transform( finPoints );
|
finPoints = compositeTransform.transform( finPoints );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user