Interface RayIntersectionVisitor
- All Superinterfaces:
OctreeVisitor
- All Known Implementing Classes:
RayIntersectionVisitorImpl
Stateful ray casting.
First, the visitor is created. Then, it is applied to mesh facets. Finally, the samples are returned.
-
Method Summary
Modifier and TypeMethodDescriptiongetClosestIntersection
(boolean filter) Returns a closets intersection point, either positive or negative, ornull
.getSortedIntersections
(boolean filter) Returns found ray intersections sorted by distances.getUnsortedIntersections
(boolean filter) Returns ray intersections in random order and without distances.Methods inherited from interface cz.fidentis.analyst.data.octree.OctreeVisitor
isThreadSafe, visitOctree
-
Method Details
-
getUnsortedIntersections
Returns ray intersections in random order and without distances.- Parameters:
filter
- Iftrue
, then only triangles with the same orientation are taken into account- Returns:
- ray intersections without distances.
-
getSortedIntersections
Returns found ray intersections sorted by distances.- Parameters:
filter
- Iftrue
, then only triangles with the same orientation are taken into account- Returns:
- found ray intersections ordered by distances.
-
getClosestIntersection
Returns a closets intersection point, either positive or negative, ornull
.- Parameters:
filter
- Iftrue
, then only triangles with the same orientation are taken into account- Returns:
- a closets intersection point, either positive or negative, or
null
.
-