org.vrforcad
Class CollisionUsingPick

java.lang.Object
  extended by org.vrforcad.CollisionUsingPick

public class CollisionUsingPick
extends java.lang.Object

This class detect the collision between sphere tool and model.

Version:
1.1
Author:
Daniel Cioi

Constructor Summary
CollisionUsingPick(javax.media.j3d.BranchGroup objroot)
           
 
Method Summary
 double collisionDetect(javax.vecmath.Point3d sphereCenter, javax.vecmath.Point3d sphereCenterF)
           
 javax.vecmath.Point3d getClosestVertex()
           
 javax.vecmath.Point3d getClosestVertexVW()
           
 int[] getCoordsIndex()
           
 int getIndiceTriangle()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollisionUsingPick

public CollisionUsingPick(javax.media.j3d.BranchGroup objroot)
Method Detail

collisionDetect

public double collisionDetect(javax.vecmath.Point3d sphereCenter,
                              javax.vecmath.Point3d sphereCenterF)

getCoordsIndex

public int[] getCoordsIndex()

getIndiceTriangle

public int getIndiceTriangle()

getClosestVertex

public javax.vecmath.Point3d getClosestVertex()

getClosestVertexVW

public javax.vecmath.Point3d getClosestVertexVW()