- Double fl = nozzle.getFlowLength();
- if (fl == null)
- fl = 0.1;
- if (index == 0) {
- nozzle.setPosition(new Vector3d(-length*0.5- fl,width*0.6,0.0));
- nozzle.setOrientation(MathTools.getQuat(new AxisAngle4d(0,1,0,Math.PI)));
- } else if (index == 1) {
- nozzle.setPosition(new Vector3d(-length*0.4,width*1.1+ fl,0.0));
- nozzle.setOrientation(MathTools.getQuat(new AxisAngle4d(0,0,1,Math.PI*0.5)));
- }
-
+ Double fl = (Double)nozzle.getParameterMap().get("length");
+ if (fl == null)
+ fl = 0.0;
+ if (index == 0) {
+ nozzle.setPosition(new Vector3d(-length*0.5- fl,width*0.6,0.0));
+ nozzle.setOrientation(MathTools.getQuat(new AxisAngle4d(0,1,0,Math.PI)));
+ } else if (index == 1) {
+ nozzle.setPosition(new Vector3d(-length*0.4,width*1.1+ fl,0.0));
+ nozzle.setOrientation(MathTools.getQuat(new AxisAngle4d(0,0,1,Math.PI*0.5)));
+ }
+