Appearance
Source files: 5 | Classes: 27 | Methods: 5 | Enums: 0
GTOS.Geography
BarycentricCoordinate
struct
Barycentric coordinate within triangular tile
Natural for Dymaxion triangular tessellation, GPU-friendly
MIL-SPEC: Struct, 8 bytes (W is implicit: W = 1 - U - V)
Source: GeographyCoreAtomics.cs
Constants and Fields
U
float
DymaxionIcosahedron
static class
Dymaxion icosahedron geometry data (20 faces, 12 vertices)
Pre-computed based on Buckminster Fuller's exact projection
MIL-SPEC: Static readonly data, zero runtime allocation
Source: GeographyCoreAtomics.cs
Constants and Fields
EarthRadiusMeters
const double
Earth radius in meters (WGS84 equatorial radius)
Vertices
readonly TriangleVertex[]
Icosahedron vertices (12 vertices on unit sphere)
Normalized to unit sphere, multiply by EarthRadiusMeters for actual positions
DymaxionSDFTile
struct
Dymaxion SDF tile (triangular geographic tile with distance field)
MIL-SPEC: Struct-based, variable size based on resolution
Foundation for all geographic SDF operations
Source: GeographyCoreAtomics.cs
Constants and Fields
Address
GeodesicAddress
ResolutionU
ushort
SDFData
float[]
SDFDataCount
int
VertexA
TriangleVertex
VoxelSize
float
EarthCartesian
struct
3D Cartesian coordinate on Earth sphere (ECEF - Earth-Centered Earth-Fixed)
MIL-SPEC: Struct, 24 bytes
Source: GeographyCoreAtomics.cs
Constants and Fields
X
double
ElevationGrid
struct
Elevation data grid (DEM)
Ready for terrain SDF generation
Source: GeographyDataImport.cs
Constants and Fields
SouthWestCorner
GeoCoordinate
GeoCoordinate
struct
Geographic coordinate (WGS84 standard)
MIL-SPEC: Struct, 20 bytes, cache-friendly single-line layout
Source: GeographyCoreAtomics.cs
Constants and Fields
Latitude
double
GeodesicAddress
struct
Geodesic tile address (hierarchical triangular tessellation)
MIL-SPEC: Struct, 8 bytes total, uniquely identifies any triangle on Earth
Source: GeographyCoreAtomics.cs
Constants and Fields
Face
DymaxionFace
GeographicDataset
struct
Complete geographic dataset ready for SDF generation
This is the output of the Data Import Layer
Source: GeographyDataImport.cs
Constants and Fields
BoundingBoxMin
GeoCoordinate
GeographicPolygon
struct
Geographic feature polygon (buildings, parks, water bodies)
Ready for SDF generation
Source: GeographyDataImport.cs
Constants and Fields
FeatureType
GeographicFeatureType
GeographicPolyline
struct
Geographic feature polyline (roads, boundaries, rivers)
Ready for SDF generation
Source: GeographyDataImport.cs
Constants and Fields
FeatureType
GeographicFeatureType
GeographyCoreAtomics
static class
Source: GeographyCoreAtomics.cs
Methods
GeoToCartesian
EarthCartesian GeoToCartesian ( GeoCoordinate geo )
Convert geographic coordinate (lat/lon) to 3D Cartesian (ECEF)
WGS84 ellipsoid model with elevation support
MIL-SPEC: Pure function, zero allocation, deterministic
Geographic coordinate (latitude, longitude, elevation)
3D Cartesian coordinate in Earth-Centered Earth-Fixed frame
GeographyDataImport
static class
Data Import Layer: I/O operations for geographic data
MIL-SPEC compliant, zero Unity dependencies, pure C# I/O
Source: GeographyDataImport.cs
Methods
ImportOSMXML
int ImportOSMXML ( string filePath, GeoCoordinate[] boundingBox, out GeographicDataset dataset, out OSMImportStats stats )
Import OSM data from XML file (legacy .osm format)
Path to .osm XML file
Optional bounding box to filter data (use null for entire file)
Output geographic dataset ready for SDF generation
Output import statistics for reporting
1 if successful, 0 if failed
OSM XML format: http://wiki.openstreetmap.org/wiki/OSM_XML
This is a simple XML parser - for large datasets use ImportOSMPBF instead (10-20× faster)
GeographyNetworks
static class
SDF Generation Networks - Layer 2: GPU-Accelerated Tile Generation
All methods are static, deterministic, and GPU-routable via CoreExecutionEngine
MIL-SPEC: Zero allocation, cache-friendly, thread-safe
Source: GeographyNetworks.cs
Methods
GenerateSDFFromPolylines
DymaxionSDFTile GenerateSDFFromPolylines ( DymaxionSDFTile tile, GeographicPolyline[] polylines, int polylineCount, int resolution, SDFGenerationMethod method )
Generate SDF tile from OSM polylines (roads, boundaries, rivers)
GPU-accelerated: Each voxel independently calculates distance to nearest feature
MIL-SPEC: Pure function, returns SDF tile ready for rendering/navigation
Dymaxion tile to populate with SDF data
OSM polylines (roads, boundaries, rivers)
Number of polylines to process
Voxel resolution (width × height × depth)
SDF generation method (BruteForce, BVH, JumpFlooding)
SDF tile with distance field populated
GPU Acceleration: 10-100× faster than CPU
Each voxel independently calculates distance to nearest polyline segment
Distance is signed: negative=inside feature, positive=outside
BruteForce: O(n×m) - simple, best for small datasets
BVH: O(n×log(m)) - faster for large datasets (10,000+ features)
JumpFlooding: O(n×log(resolution)) - fastest for high-resolution tiles
GeographyUsageExamples
static class
Usage examples for GTOS Geography Domain (3-layer architecture)
All examples return human-readable strings for HMI Desktop display
No Console.WriteLine - returns strings for SILVIA routing
Source: GeographyUsageExamples.cs
Methods
Example1_CompleteWorkflow_SanFrancisco
string Example1_CompleteWorkflow_SanFrancisco ( )
Example 1: Complete workflow - Import OSM data, generate SDF, query for navigation
Demonstrates all three layers working together
GeologicLayer
struct
Geologic layer data (subsurface composition)
Ready for multi-layer SDF generation
Source: GeographyDataImport.cs
Constants and Fields
SouthWestCorner
GeoCoordinate
OSMImportStats
struct
OSM data import statistics for reporting
Source: GeographyDataImport.cs
Constants and Fields
TotalNodes
int
OSMNode
struct
Imported OSM node (lat/lon point)
Single-line field layout for cache coherence
Source: GeographyDataImport.cs
Constants and Fields
NodeID
long
OSMWay
struct
Imported OSM way (polyline or polygon)
Single-line field layout for cache coherence
Source: GeographyDataImport.cs
Constants and Fields
WayID
long
PathFindingResult
struct
Path finding result
MIL-SPEC: Struct with arrays
Source: GeographyNetworks.cs
Constants and Fields
WaypointCount
int
PathWaypoint
struct
Path waypoint for navigation
MIL-SPEC: Struct, 24 bytes, cache-friendly single-line layout
Source: GeographyNetworks.cs
Constants and Fields
Location
GeoCoordinate
SDFQueryResult
struct
SDF query result for ray marching
MIL-SPEC: Struct, 16 bytes, cache-friendly single-line layout
Source: GeographyNetworks.cs
Constants and Fields
Distance
float
SpectroscopyDataPoint
struct
Spectroscopy data point (mineral identification)
Ready for geologic layer SDF generation
Source: GeographyDataImport.cs
Constants and Fields
Location
GeoCoordinate
TriangleVertex
struct
Triangular SDF tile vertex (corner of Dymaxion triangle)
MIL-SPEC: Struct, 12 bytes
Source: GeographyCoreAtomics.cs
Constants and Fields
X
float
GTOS.Geography.Execution
GeographyExecutionEngine
static class
Geography execution engine for geodetic calculations.
All methods are static, deterministic, and zero-allocation.
Source: GeographyExecutionEngine.cs
Methods
CalculateDistance
NetworkResult CalculateDistance ( NavigationInputs inputs )
Calculate distance between two points using specified method.
NavigationInputs
struct
Navigation calculation inputs
Source: GeographyExecutionEngine.cs
Constants and Fields
Altitude
float
Distance
float
DistanceMethod
int
Heading
float
Latitude1
double
Latitude2
double
Longitude1
double
Longitude2
double
Year
int
NetworkResult
struct
Network result container for geography calculations
Source: GeographyExecutionEngine.cs
Constants and Fields
Count
int
ParameterIds
int[]
ParameterValues
object[]
ParameterSet
struct
Parameter set for geography calculations - MIL SPEC compliant with parallel arrays
Source: GeographyExecutionEngine.cs
Constants and Fields
Count
int
DomainId
int
ParameterIds
int[]
Values
object[]
Generated from GTOS Savants source -- 2026-03-22

