/** * The method updates the geometry according to the positions of the bones. */ public void updateGeometry() { armature.update(); for (Joint joint : armature.getRoots()) { updateSkeletonGeoms(joint); } } }
/** * Creates a wire with bone lengths data. If the data is supplied then the * wires will show each full bone (from head to tail). * * @param armature the armature that will be shown */ public ArmatureNode(Armature armature, Node joints, Node wires, Node outlines, List<Joint> deformingJoints) { this.armature = armature; Geometry origin = new Geometry("Armature Origin", new JointShape()); setColor(origin, ColorRGBA.Green); attach(joints, true, origin); for (Joint joint : armature.getRoots()) { createSkeletonGeoms(joint, joints, wires, outlines, deformingJoints); } this.updateModelBound(); }