Examples of testGeometry()


Examples of nu3a.scene.N3VisualObject.testGeometry()

    N3Ray ray = scene.getActiveCamera().getRay(new N3Point2D((float) e.getX(), (float) e.getY()), 1000.0f);
    Vector objects = scene.getHierarchyRoot().testRec(ray);
        if (objects.size() > 0) {
          scene.Zorder(objects, scene.getActiveCamera().getPosition());
            N3VisualObject o = (N3VisualObject) objects.elementAt(0);
            if (o.testGeometry(ray, true))
            o.setBoundingVolumeVisible(!o.isBoundingVolumeVisible());
        }
  }

  public void mouseEntered(MouseEvent e) {
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.