Skip to main content

flywave-terrain-datasource.groundmodification

Home > @flywave/flywave-terrain-datasource > GroundModification

GroundModification class

Represents a ground modification with spatial properties and terrain data

This class encapsulates a ground modification polygon along with its associated properties and methods for interacting with the terrain system. It provides a high-level interface for managing ground modifications.

Signature:

export declare class GroundModification 

Constructors

Constructor

Modifiers

Description

(constructor)(groundModificationPolygon, terrainSource)

Creates a new ground modification

Properties

Property

Modifiers

Type

Description

boundingBox

readonly

GeoBox

Gets the bounding box of this modification

depthOrHeight

number | undefined

Gets the depth or height of this modification in meters

geoArea

GeoBox | GeoPolygon | GeoLineString

Gets the geographic area of this modification

groundModificationPolygon

GroundModificationPolygon

id

string

Unique identifier for this ground modification

Generated using Three.js MathUtils to ensure uniqueness across the application. This ID is used for lookups and event tracking.

slopeWidth

number | undefined

Gets the width of the slope for this modification

type

GroundModificationType

Gets the type of this modification (excavation or elevation)