[#1603] Fix tab height validation
This commit is contained in:
parent
1c38aa4dd4
commit
fad1390cc3
@ -428,12 +428,14 @@ public abstract class FinSet extends ExternalComponent implements AxialPositiona
|
|||||||
public void validateFinTabHeight(){
|
public void validateFinTabHeight(){
|
||||||
// check tab height
|
// check tab height
|
||||||
if( null != getParent() ){
|
if( null != getParent() ){
|
||||||
|
final Coordinate finFront = this.getFinFront();
|
||||||
|
|
||||||
// pulls the parent-body radius at the fin-tab reference point.
|
// pulls the parent-body radius at the fin-tab reference point.
|
||||||
final double xLead = this.getTabFrontEdge();
|
final double xLead = this.getTabFrontEdge();
|
||||||
final double xTrail = this.getTabTrailingEdge();
|
final double xTrail = this.getTabTrailingEdge();
|
||||||
|
|
||||||
final SymmetricComponent sym = (SymmetricComponent)this.parent;
|
final SymmetricComponent sym = (SymmetricComponent)this.parent;
|
||||||
final double bodyRadius = MathUtil.min(sym.getRadius( xLead), sym.getRadius( xTrail));
|
final double bodyRadius = MathUtil.min(sym.getRadius(finFront.x + xLead), sym.getRadius(finFront.x + xTrail));
|
||||||
|
|
||||||
// limit the new heights to be no greater than the current body radius.
|
// limit the new heights to be no greater than the current body radius.
|
||||||
this.tabHeight = Math.min( this.tabHeight, bodyRadius );
|
this.tabHeight = Math.min( this.tabHeight, bodyRadius );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user