// __autor__ = Juan Carlos De Abreu R.
// __date__ = 03/13/2008
// __version__ = 1.0
//
// This file provide some utilities functions.
//

// Function to disable a geometry render.
def hide(geometryNode) {
  geometryNode.draw(false);
}

// Function to enable a geometry render.
def show(geometryNode) {
  geometryNode.draw(true);
}

// Function to set the 3 components of transformationNode.
def setXYZ(node, value) {
  node.setX(value.get(0));
  node.setY(value.get(1));
  node.setZ(value.get(2));
}

// Function to copy the values from one transFomrationNode to other.
def copy(nodeDst, nodeSrc) {
  nodeDst.setX(nodeSrc.getX());
  nodeDst.setY(nodeSrc.getY());
  nodeDst.setZ(nodeSrc.getZ());
}
