double l = ((DCylinder) g).getLength();
dsDrawCylinder(pos, R, (float) l, (float) r);
} else if (g instanceof DSphere) {
dsDrawSphere(pos, R, (float) ((DSphere) g).getRadius());
} else if (g instanceof DCapsule) {
DCapsule cap = (DCapsule) g;
dsDrawCapsule(pos, R, (float) cap.getLength(),
(float) cap.getRadius());
} else {
System.err
.println("!!!!!!!!!!!!!!!!!!!!!!! GEOM NOT SUPPORTED. Add a method to public static void drawGeom !!!!!!!!!!!!!");
}
}