DGP - Fix for bug#3032813
This commit is contained in:
parent
e80b64b53c
commit
7a01b87cf6
@ -277,7 +277,7 @@ class FinSetHandler extends ElementHandler {
|
||||
if (shapeCode == 0) {
|
||||
//Trapezoidal
|
||||
result = new TrapezoidFinSet();
|
||||
((TrapezoidFinSet) result).setFinShape(rootChord, tipChord, sweepDistance, midChordLen, thickness);
|
||||
((TrapezoidFinSet) result).setFinShape(rootChord, tipChord, sweepDistance, semiSpan, thickness);
|
||||
}
|
||||
else if (shapeCode == 1) {
|
||||
//Elliptical
|
||||
|
@ -104,6 +104,9 @@ public class FinSetHandlerTest extends TestCase {
|
||||
assertTrue(fins instanceof TrapezoidFinSet);
|
||||
assertEquals(4, fins.getFinCount());
|
||||
|
||||
assertEquals(0.012d, ((TrapezoidFinSet) fins).getHeight());
|
||||
assertEquals(0.012d, fins.getSpan());
|
||||
|
||||
assertEquals(0.2d, fins.getThickness());
|
||||
assertEquals(0.4d, fins.getTabLength());
|
||||
assertEquals(0.5d, fins.getTabHeight());
|
||||
|
Loading…
x
Reference in New Issue
Block a user