Package us.ihmc.graphics3DAdapter.graphics

Examples of us.ihmc.graphics3DAdapter.graphics.Graphics3DObject.identity()


      xPendulumArmGimbalLinkGraphics.addSphere(0.04, YoAppearance.Red());
      xPendulumArmGimbalLinkGraphics.rotate(-Math.PI/2.0, Axis.Y);
      xPendulumArmGimbalLinkGraphics.addCylinder(ARM_LENGTH, ARM_RADIUS, YoAppearance.Pink());
     
      // Pen:
      xPendulumArmGimbalLinkGraphics.identity();
      xPendulumArmGimbalLinkGraphics.translate(-ARM_LENGTH, 0.0, -PEN_HEIGHT);
      xPendulumArmGimbalLinkGraphics.addCylinder(PEN_HEIGHT, PEN_RADIUS);

     
      xPendulumArmGimbalLink.setLinkGraphics(xPendulumArmGimbalLinkGraphics);
View Full Code Here


      Graphics3DObject deskPendulumLinkGraphics = new Graphics3DObject();
      deskPendulumLinkGraphics.translate(new Vector3d(0.0, 0.0, DESK_PENDULUM_OFFSET_Z));
      deskPendulumLinkGraphics.addCylinder(DESK_PENDULUM_LENGTH, DESK_PENDULUM_RADIUS);
      deskPendulumLinkGraphics.translate(0.0, 0.0, DESK_WEIGHTS_DISTANCE_FROM_BOTTOM);
      deskPendulumLinkGraphics.addCylinder(DESK_WEIGHTS_HEIGHT, DESK_WEIGHTS_RADIUS);
      deskPendulumLinkGraphics.identity();
      deskPendulumLinkGraphics.translate(0.0, 0.0, DESK_HEIGHT);
      deskPendulumLinkGraphics.addCube(DESK_WIDTH, DESK_LENGTH, DESK_THICKNESS);
     
      deskPendulumLink.setLinkGraphics(deskPendulumLinkGraphics);
      return deskPendulumLink;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.