[cleanup] cleans up extra debugging from RocketRenderer, also fixed whitespace
This commit is contained in:
parent
800101e6bb
commit
7046d02bae
@ -161,8 +161,6 @@ public abstract class RocketRenderer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private Collection<Geometry> getTreeGeometry( FlightConfiguration config){
|
private Collection<Geometry> getTreeGeometry( FlightConfiguration config){
|
||||||
System.err.println(String.format("==== Building tree geometry ===="));
|
|
||||||
|
|
||||||
// input
|
// input
|
||||||
final InstanceMap imap = config.getActiveInstances();
|
final InstanceMap imap = config.getActiveInstances();
|
||||||
|
|
||||||
@ -173,14 +171,8 @@ public abstract class RocketRenderer {
|
|||||||
final RocketComponent comp = entry.getKey();
|
final RocketComponent comp = entry.getKey();
|
||||||
|
|
||||||
final ArrayList<InstanceContext> contextList = entry.getValue();
|
final ArrayList<InstanceContext> contextList = entry.getValue();
|
||||||
System.err.println(String.format("....[%s]", comp.getName()));
|
|
||||||
|
|
||||||
for(InstanceContext context: contextList ) {
|
for(InstanceContext context: contextList ) {
|
||||||
System.err.println(String.format("........[% 2d] %s", context.instanceNumber, context.getLocation().toPreciseString()));
|
|
||||||
|
|
||||||
// System.err.println( String.format("%s[ %s ]", indent, comp.getName()));
|
|
||||||
// System.err.println( String.format("%s :: %12.8g / %12.8g / %12.8g (m) @ %8.4g (rads) ", indent, currentLocation.x, currentLocation.y, currentLocation.z, currentAngle ));
|
|
||||||
|
|
||||||
Geometry instanceGeometry = cr.getComponentGeometry( comp, context.transform );
|
Geometry instanceGeometry = cr.getComponentGeometry( comp, context.transform );
|
||||||
instanceGeometry.active = context.active;
|
instanceGeometry.active = context.active;
|
||||||
treeGeometry.add( instanceGeometry );
|
treeGeometry.add( instanceGeometry );
|
||||||
@ -210,28 +202,6 @@ public abstract class RocketRenderer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void renderMotors(GL2 gl, FlightConfiguration configuration) {
|
private void renderMotors(GL2 gl, FlightConfiguration configuration) {
|
||||||
// FlightConfigurationId motorID = configuration.getFlightConfigurationID();
|
|
||||||
//
|
|
||||||
// for( RocketComponent comp : configuration.getActiveComponents()){
|
|
||||||
// if( comp instanceof MotorMount){
|
|
||||||
//
|
|
||||||
// MotorMount mount = (MotorMount) comp;
|
|
||||||
// Motor motor = mount.getMotorInstance(motorID).getMotor();
|
|
||||||
// if( null == motor )???;
|
|
||||||
// double length = motor.getLength();
|
|
||||||
//
|
|
||||||
// Coordinate[] position = ((RocketComponent) mount).toAbsolute(new Coordinate(((RocketComponent) mount)
|
|
||||||
// .getLength() + mount.getMotorOverhang() - length));
|
|
||||||
//
|
|
||||||
// for (int i = 0; i < position.length; i++) {
|
|
||||||
// gl.glPushMatrix();
|
|
||||||
// gl.glTranslated(position[i].x, position[i].y, position[i].z);
|
|
||||||
// renderMotor(gl, motor);
|
|
||||||
// gl.glPopMatrix();
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
for( MotorConfiguration curMotor : configuration.getActiveMotors()){
|
for( MotorConfiguration curMotor : configuration.getActiveMotors()){
|
||||||
MotorMount mount = curMotor.getMount();
|
MotorMount mount = curMotor.getMount();
|
||||||
Motor motor = curMotor.getMotor();
|
Motor motor = curMotor.getMotor();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user