Package org.episteme.core.mathematics.geometry.boundaries


package org.episteme.core.mathematics.geometry.boundaries
Comprehensive boundary and region support for geometric modeling.

This package provides a complete framework for representing spatial boundaries in 2D and 3D, including support for complex territorial shapes with enclaves and exclaves.

Core Interfaces

2D Boundaries

3D Boundaries

Special Boundaries

Utilities

Enclave/Exclave Support

The composite boundary classes support complex territorial configurations:

  • Exclaves - Multiple disjoint regions belonging to the same entity
  • Enclaves - Holes/exclusions within a region
  • Third-degree cases - Enclaves within enclaves (counter-enclaves)

Example: Modeling Baarle-Hertog/Baarle-Nassau (Belgium/Netherlands border):

CompositeBoundary2D belgium = new CompositeBoundary2D();
belgium.addInclusion(mainBelgiumTerritory);
belgium.addInclusion(baarleHertogExclave1);

// Dutch enclave within Belgian exclave
CompositeBoundary2D baarleWithEnclave = new CompositeBoundary2D(baarleHertogExclave2);
baarleWithEnclave.addExclusion(dutchCounterEnclave);
belgium.addInclusion(baarleWithEnclave);
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)