Interface RayIntersectionVisitor

All Superinterfaces:
OctreeVisitor
All Known Implementing Classes:
RayIntersectionVisitorImpl

public interface RayIntersectionVisitor extends OctreeVisitor
Stateful ray casting. First, the visitor is created. Then, it is applied to mesh facets. Finally, the samples are returned.
  • Method Details

    • getUnsortedIntersections

      List<RayIntersection> getUnsortedIntersections(boolean filter)
      Returns ray intersections in random order and without distances.
      Parameters:
      filter - If true, then only triangles with the same orientation are taken into account
      Returns:
      ray intersections without distances.
    • getSortedIntersections

      SortedSet<RayIntersection> getSortedIntersections(boolean filter)
      Returns found ray intersections sorted by distances.
      Parameters:
      filter - If true, then only triangles with the same orientation are taken into account
      Returns:
      found ray intersections ordered by distances.
    • getClosestIntersection

      RayIntersection getClosestIntersection(boolean filter)
      Returns a closets intersection point, either positive or negative, or null.
      Parameters:
      filter - If true, then only triangles with the same orientation are taken into account
      Returns:
      a closets intersection point, either positive or negative, or null.