Class RegionBSPTree3D.LinecastVisitor

java.lang.Object
org.apache.commons.geometry.euclidean.threed.RegionBSPTree3D.LinecastVisitor
All Implemented Interfaces:
BSPTreeVisitor<Vector3D,RegionBSPTree3D.RegionNode3D>
Enclosing class:
RegionBSPTree3D

private static final class RegionBSPTree3D.LinecastVisitor extends Object implements BSPTreeVisitor<Vector3D,RegionBSPTree3D.RegionNode3D>
BSP tree visitor that performs a linecast operation against the boundaries of the visited tree.
  • Field Details

    • linecastSubset

      private final LineConvexSubset3D linecastSubset
      The line subset to intersect with the boundaries of the BSP tree.
    • firstOnly

      private final boolean firstOnly
      If true, the visitor will stop visiting the tree once the first linecast point is determined.
    • minAbscissa

      private double minAbscissa
      The minimum abscissa found during the search.
    • results

      private final List<LinecastPoint3D> results
      List of results from the linecast operation.
  • Constructor Details

    • LinecastVisitor

      LinecastVisitor(LineConvexSubset3D linecastSubset, boolean firstOnly)
      Create a new instance with the given intersecting line convex subset.
      Parameters:
      linecastSubset - line subset to intersect with the BSP tree region boundary
      firstOnly - if true, the visitor will stop visiting the tree once the first linecast point is determined
  • Method Details