|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.j3d.geom.IntersectionUtils org.j3d.renderer.aviatrix3d.util.AVIntersectionUtils
public class AVIntersectionUtils
An extension of the basic IntersectionUtils
class to
include Aviatrix3D-specific extensions for interacting directly with
VertexGeometry
instances.
IntersectionUtils
Field Summary |
---|
Fields inherited from class org.j3d.geom.IntersectionUtils |
---|
pickDir, pickStart, wkPolygon, working2dCoords, workingCoords, workingIndicies, workingStrips, X_AXIS, Y_AXIS, Z_AXIS |
Constructor Summary | |
---|---|
AVIntersectionUtils()
Create a default instance of this class with no internal data structures allocated. |
Method Summary | |
---|---|
boolean |
rayQuadArray(javax.vecmath.Point3d origin,
javax.vecmath.Vector3d direction,
float length,
QuadArray geom,
javax.vecmath.Matrix4f vworldTransform,
javax.vecmath.Point3d point,
boolean intersectOnly)
Test the intersection of a ray or segment against the given quad array.If there is an intersection, the point will contain the exact intersection point on the geometry. |
boolean |
rayTriangleArray(javax.vecmath.Point3d origin,
javax.vecmath.Vector3d direction,
float length,
TriangleArray geom,
javax.vecmath.Matrix4f vworldTransform,
javax.vecmath.Point3d point,
boolean intersectOnly)
Test the intersection of a ray or segment against the given triangle array.If there is an intersection, the point will contain the exact intersection point on the geometry. |
boolean |
rayTriangleFanArray(javax.vecmath.Point3d origin,
javax.vecmath.Vector3d direction,
float length,
TriangleFanArray geom,
javax.vecmath.Matrix4f vworldTransform,
javax.vecmath.Point3d point,
boolean intersectOnly)
Test the intersection of a ray or segment against the given triangle fan array.If there is an intersection, the point will contain the exact intersection point on the geometry. |
boolean |
rayTriangleStripArray(javax.vecmath.Point3d origin,
javax.vecmath.Vector3d direction,
float length,
TriangleStripArray geom,
javax.vecmath.Matrix4f vworldTransform,
javax.vecmath.Point3d point,
boolean intersectOnly)
Test the intersection of a ray or segment against the given triangle strip array.If there is an intersection, the point will contain the exact intersection point on the geometry. |
boolean |
rayUnknownGeometry(javax.vecmath.Point3d origin,
javax.vecmath.Vector3d direction,
float length,
org.j3d.geom.GeometryData data,
javax.vecmath.Matrix4f vworldTransform,
javax.vecmath.Point3d point,
boolean intersectOnly)
Convenience method to process a GeometryData and ask the
intersection code to find out what the real geometry type is and
process it appropriately. |
boolean |
rayUnknownGeometry(javax.vecmath.Point3d origin,
javax.vecmath.Vector3d direction,
float length,
VertexGeometry geom,
javax.vecmath.Matrix4f vworldTransform,
javax.vecmath.Point3d point,
boolean intersectOnly)
Convenience method to pass in an item of geometry and ask the intersection code to find out what the real geometry type is and process it appropriately. |
boolean |
rayUnknownGeometry(javax.vecmath.Point3f origin,
javax.vecmath.Vector3f direction,
float length,
org.j3d.geom.GeometryData data,
javax.vecmath.Matrix4f vworldTransform,
javax.vecmath.Point3f point,
boolean intersectOnly)
Convenience method to process a GeometryData and ask the
intersection code to find out what the real geometry type is and
process it appropriately. |
boolean |
rayUnknownGeometry(javax.vecmath.Point3f origin,
javax.vecmath.Vector3f direction,
float length,
VertexGeometry geom,
javax.vecmath.Matrix4f vworldTransform,
javax.vecmath.Point3f point,
boolean intersectOnly)
Convenience method to pass in an item of geometry and ask the intersection code to find out what the real geometry type is and process it appropriately. |
boolean |
rayUnknownGeometry(javax.vecmath.Point3f origin,
javax.vecmath.Vector3f direction,
float length,
VertexGeometry geom,
javax.vecmath.Point3f point,
boolean intersectOnly)
Convenience method to pass in an item of geometry and ask the intersection code to find out what the real geometry type is and process it appropriately. |
Methods inherited from class org.j3d.geom.IntersectionUtils |
---|
clear, rayCylinder, rayCylinder, rayIndexedQuadArray, rayIndexedTriangleArray, rayPlane, rayPlane, rayPolygon, rayQuadArray, raySphere, raySphere, rayTriangleArray, rayTriangleFanArray, rayTriangleStripArray, rayUnknownGeometry |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AVIntersectionUtils()
Method Detail |
---|
public boolean rayUnknownGeometry(javax.vecmath.Point3f origin, javax.vecmath.Vector3f direction, float length, VertexGeometry geom, javax.vecmath.Matrix4f vworldTransform, javax.vecmath.Point3f point, boolean intersectOnly)
If the userData object for this geometry is an instance of
GeometryData
we will use that in preferences to the actual
geometry.
origin
- The origin of the raydirection
- The direction of the raylength
- An optional length for to make the ray a segment. If
the value is zero, it is ignoredgeom
- The geometry to test againstpoint
- The intersection point for returningvworldTransform
- Transformation matrix to go from the root of the
world to this pointintersectOnly
- true if we only want to know if we have a
intersection and don't really care which it is
public boolean rayUnknownGeometry(javax.vecmath.Point3f origin, javax.vecmath.Vector3f direction, float length, VertexGeometry geom, javax.vecmath.Point3f point, boolean intersectOnly)
If the userData object for this geometry is an instance of
GeometryData
we will use that in preferences to the actual
geometry.
origin
- The origin of the raydirection
- The direction of the raylength
- An optional length for to make the ray a segment. If
the value is zero, it is ignoredgeom
- The geometry to test againstpoint
- The intersection point for returningintersectOnly
- true if we only want to know if we have a
intersection and don't really care which it is
public boolean rayUnknownGeometry(javax.vecmath.Point3f origin, javax.vecmath.Vector3f direction, float length, org.j3d.geom.GeometryData data, javax.vecmath.Matrix4f vworldTransform, javax.vecmath.Point3f point, boolean intersectOnly)
GeometryData
and ask the
intersection code to find out what the real geometry type is and
process it appropriately. If there is an intersection, the point will
contain the exact intersection point on the geometry.
This code will be much more efficient than the other version because we do not need to reallocate internal arrays all the time or have the need to set capability bits, hurting performance optimisations. If the geometry array does not understand the provided geometry type, it will silently ignore the request and always return false.
origin
- The origin of the raydirection
- The direction of the raylength
- An optional length for to make the ray a segment. If
the value is zero, it is ignoreddata
- The geometry to test againstpoint
- The intersection point for returningintersectOnly
- true if we only want to know if we have a
intersection and don't really care which it is
public boolean rayUnknownGeometry(javax.vecmath.Point3d origin, javax.vecmath.Vector3d direction, float length, org.j3d.geom.GeometryData data, javax.vecmath.Matrix4f vworldTransform, javax.vecmath.Point3d point, boolean intersectOnly)
GeometryData
and ask the
intersection code to find out what the real geometry type is and
process it appropriately. If there is an intersection, the point will
contain the exact intersection point on the geometry.
This code will be much more efficient than the other version because we do not need to reallocate internal arrays all the time or have the need to set capability bits, hurting performance optimisations. If the geometry array does not understand the provided geometry type, it will silently ignore the request and always return false.
origin
- The origin of the raydirection
- The direction of the raylength
- An optional length for to make the ray a segment. If
the value is zero, it is ignoreddata
- The geometry to test againstpoint
- The intersection point for returningvworldTransform
- Transformation matrix to go from the root of the
world to this pointintersectOnly
- true if we only want to know if we have a
intersection and don't really care which it is
public boolean rayUnknownGeometry(javax.vecmath.Point3d origin, javax.vecmath.Vector3d direction, float length, VertexGeometry geom, javax.vecmath.Matrix4f vworldTransform, javax.vecmath.Point3d point, boolean intersectOnly)
If the userData object for this geometry is an instance of
GeometryData
we will use that in preferences to the actual
geometry.
origin
- The origin of the raydirection
- The direction of the raylength
- An optional length for to make the ray a segment. If
the value is zero, it is ignoredgeom
- The geometry to test againstpoint
- The intersection point for returningvworldTransform
- Transformation matrix to go from the root of the
world to this pointintersectOnly
- true if we only want to know if we have a
intersection and don't really care which it is
public boolean rayTriangleArray(javax.vecmath.Point3d origin, javax.vecmath.Vector3d direction, float length, TriangleArray geom, javax.vecmath.Matrix4f vworldTransform, javax.vecmath.Point3d point, boolean intersectOnly)
origin
- The origin of the raydirection
- The direction of the raylength
- An optional length for to make the ray a segment. If
the value is zero, it is ignoredgeom
- The geometry to test againstpoint
- The intersection point for returningvworldTransform
- Transformation matrix to go from the root of the
world to this pointintersectOnly
- true if we only want to know if we have a
intersection and don't really care which it is
public boolean rayQuadArray(javax.vecmath.Point3d origin, javax.vecmath.Vector3d direction, float length, QuadArray geom, javax.vecmath.Matrix4f vworldTransform, javax.vecmath.Point3d point, boolean intersectOnly)
origin
- The origin of the raydirection
- The direction of the raylength
- An optional length for to make the ray a segment. If
the value is zero, it is ignoredgeom
- The geometry to test againstpoint
- The intersection point for returningvworldTransform
- Transformation matrix to go from the root of the
world to this pointintersectOnly
- true if we only want to know if we have a
intersection and don't really care which it is
public boolean rayTriangleStripArray(javax.vecmath.Point3d origin, javax.vecmath.Vector3d direction, float length, TriangleStripArray geom, javax.vecmath.Matrix4f vworldTransform, javax.vecmath.Point3d point, boolean intersectOnly)
origin
- The origin of the raydirection
- The direction of the raylength
- An optional length for to make the ray a segment. If
the value is zero, it is ignoredgeom
- The geometry to test againstpoint
- The intersection point for returningvworldTransform
- Transformation matrix to go from the root of the
world to this pointintersectOnly
- true if we only want to know if we have a
intersection and don't really care which it is
public boolean rayTriangleFanArray(javax.vecmath.Point3d origin, javax.vecmath.Vector3d direction, float length, TriangleFanArray geom, javax.vecmath.Matrix4f vworldTransform, javax.vecmath.Point3d point, boolean intersectOnly)
origin
- The origin of the raydirection
- The direction of the raylength
- An optional length for to make the ray a segment. If
the value is zero, it is ignoredgeom
- The geometry to test againstpoint
- The intersection point for returningvworldTransform
- Transformation matrix to go from the root of the
world to this pointintersectOnly
- true if we only want to know if we have a
intersection and don't really care which it is
|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |