1 package net.sf.openrocket.file;
3 import net.sf.openrocket.rocketcomponent.FinSet;
7 public final class TipShapeCode {
10 * Convert a Rocksim tip shape to an OpenRocket CrossSection.
12 * @param tipShape the tip shape code from Rocksim
14 * @return a CrossSection instance
16 public static FinSet.CrossSection convertTipShapeCode (int tipShape) {
19 return FinSet.CrossSection.SQUARE;
21 return FinSet.CrossSection.ROUNDED;
23 return FinSet.CrossSection.AIRFOIL;
25 return FinSet.CrossSection.SQUARE;
29 public static int convertTipShapeCode (FinSet.CrossSection cs) {
30 if (FinSet.CrossSection.ROUNDED.equals(cs)) {
33 if (FinSet.CrossSection.AIRFOIL.equals(cs)) {