3D-City Model
    Preparing search index...

    AddExcavationPit – Command to create and register a new excavation pit, including UI integration in a list component and bi-directional data binding.

    Extends the Command interface.

    Registers both the underlying 3D pit (ExcavationPit) and a UI control item (GeListItem) with full callback support for interactive show/hide, depth editing, and removal.

    execute(app, cartesians, name, depth)

    The application instance.

    Array of surface positions for the new pit.

    Display name for the pit (auto-generated if not given).

    Initial excavation depth (optional; uses min/max Z if not provided).

    const cmd = new AddExcavationPit();
    cmd.execute(app, coords, "Pit #1", 15);

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Create a new pit, setup UI/GeListItem, and register event handlers for changes.

      Parameters

      • app: any
      • cartesians: Cartesian3[]
      • Optionalname: string
      • Optionaldepth: number

      Returns void