Package toxi.geom.mesh
Class MeshIntersector
java.lang.Object
toxi.geom.mesh.MeshIntersector
- All Implemented Interfaces:
Intersector3D
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
intersectsRay
(Ray3D ray) Checks if entity intersects with the given ray.void
setMesh
(TriangleMesh mesh)
-
Constructor Details
-
MeshIntersector
-
-
Method Details
-
getIntersectionData
- Specified by:
getIntersectionData
in interfaceIntersector3D
- Returns:
- intersection data parcel
-
intersectsRay
Description copied from interface:Intersector3D
Checks if entity intersects with the given ray. Further intersection details can then be queried via theIsectData3D
instance returned byIntersector3D.getIntersectionData()
.- Specified by:
intersectsRay
in interfaceIntersector3D
- Parameters:
ray
- ray to check- Returns:
- true, if ray hits the entity
-
setMesh
-