Include root points in fin tabs
This commit is contained in:
parent
d2b14e2a5d
commit
5df7f4f10d
@ -964,7 +964,9 @@ public abstract class FinSet extends ExternalComponent implements AxialPositiona
|
|||||||
return new Coordinate[]{};
|
return new Coordinate[]{};
|
||||||
}
|
}
|
||||||
|
|
||||||
final int pointCount = 5;
|
Coordinate[] rootPoints = getRootPoints();
|
||||||
|
|
||||||
|
final int pointCount = 5 + rootPoints.length;
|
||||||
Coordinate[] points = new Coordinate[pointCount];
|
Coordinate[] points = new Coordinate[pointCount];
|
||||||
final Coordinate finFront = this.getFinFront();
|
final Coordinate finFront = this.getFinFront();
|
||||||
|
|
||||||
@ -987,7 +989,10 @@ public abstract class FinSet extends ExternalComponent implements AxialPositiona
|
|||||||
points[1] = new Coordinate(xTabFront, yTabBottom );
|
points[1] = new Coordinate(xTabFront, yTabBottom );
|
||||||
points[2] = new Coordinate(xTabTrail, yTabBottom );
|
points[2] = new Coordinate(xTabTrail, yTabBottom );
|
||||||
points[3] = new Coordinate(xTabTrail, yTabTrail);
|
points[3] = new Coordinate(xTabTrail, yTabTrail);
|
||||||
points[4] = new Coordinate(xTabFront, yTabFront);
|
for (int i = 0; i < rootPoints.length; i++) {
|
||||||
|
points[i + 4] = rootPoints[rootPoints.length - 1 -i];
|
||||||
|
}
|
||||||
|
points[pointCount - 1] = new Coordinate(xTabFront, yTabFront);
|
||||||
|
|
||||||
return points;
|
return points;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user