finished first draft of fixing lengths

This commit is contained in:
JoePfeiffer 2019-06-10 17:03:58 -06:00
parent 719576cc62
commit 1b188e20be
2 changed files with 3 additions and 3 deletions

View File

@ -723,7 +723,7 @@ public abstract class FinSet extends ExternalComponent implements RingInstanceab
* *
* Currently the points are simply a rectangular box around the body tube. * Currently the points are simply a rectangular box around the body tube.
*/ */
@Override /*@Override
public Collection<Coordinate> getComponentBounds() { public Collection<Coordinate> getComponentBounds() {
Collection<Coordinate> bounds = new ArrayList<Coordinate>(8); Collection<Coordinate> bounds = new ArrayList<Coordinate>(8);
@ -756,7 +756,7 @@ public abstract class FinSet extends ExternalComponent implements RingInstanceab
addBoundingBox(bounds, x_min, x_max, r_max); addBoundingBox(bounds, x_min, x_max, r_max);
return bounds; return bounds;
} }*/
@Override @Override
public void componentChanged(ComponentChangeEvent e) { public void componentChanged(ComponentChangeEvent e) {

View File

@ -529,7 +529,7 @@ public class FlightConfiguration implements FlightConfigurableParameter<FlightCo
BoundingBox bounds = new BoundingBox(); BoundingBox bounds = new BoundingBox();
for (RocketComponent component : this.getActiveComponents()) { for (RocketComponent component : this.getActiveComponents()) {
BoundingBox componentBounds = new BoundingBox().update(component.getComponentBounds()); BoundingBox componentBounds = new BoundingBox().update(component.getBoundingBox());
bounds.update( componentBounds ); bounds.update( componentBounds );
} }