Click or drag to resize

SurfaceRegionsCoverageGrid Constructor (Double, TerrainProvider, CentralBody,EllipsoidSurfaceRegion[])

Create a new instance based on a given TerrainProvider, resolution and a set of polygonal regions. Both SaveGridCell and UseCellSurfaceAreaForWeight are set to true.

Namespace:  AGI.Foundation.Geometry.Discrete
Assembly:  AGI.Foundation.Spatial (in AGI.Foundation.Spatial.dll) Version: 24.3.420.0 (24.3.420.0)
Syntax
public SurfaceRegionsCoverageGrid(
	double resolution,
	TerrainProvider terrainProvider,
	CentralBody centralBody,
	params EllipsoidSurfaceRegion[] regions
)

Parameters

resolution
Type: System.Double
The resolution, in radians, representing the requested spacing between grid points.
terrainProvider
Type: AGI.Foundation.Terrain.TerrainProvider
The TerrainProvider used to generate the height of the grid points.
centralBody
Type: AGI.Foundation.Celestial.CentralBody
The central body for this grid.
regions
Type:AGI.Foundation.Geometry.Shapes.EllipsoidSurfaceRegion[]
The set of polygonal regions which define the grid.
Exceptions
ExceptionCondition
InvalidOperationExceptionThrown if the ReferenceSurfaces of the TerrainProvider conflict with the EllipsoidSurfaceRegions conflict.
ArgumentOutOfRangeExceptionThrown if the resolution is set to less than or equal to 0.
ArgumentNullExceptionThrown if terrainProvider, centralBody, or regions is null.
See Also