Class RegionBSPTree

java.lang.Object
org.episteme.core.mathematics.geometry.RegionBSPTree

public class RegionBSPTree extends Object
Represents a region in 3D space using a Binary Space Partitioning (BSP) tree.

This is the core data structure for Constructive Solid Geometry (CSG). Each node represents a partitioning plane.

Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Constructor Details

    • RegionBSPTree

      public RegionBSPTree()
      Creates an empty region (void).
    • RegionBSPTree

      public RegionBSPTree(boolean full)
      Creates a region representing the whole space.
      Parameters:
      full - if true, represents the whole space; if false, represents empty space
  • Method Details

    • contains

      public boolean contains(Vector3D point)
      Checks if a point is inside the region.
      Parameters:
      point - the point to check
      Returns:
      true if inside