3D-City Model
    Preparing search index...

    PointSet3D – Manages a mutable, interactive set of 3D points (Cartesian3) with live Cesium scene entities.

    Automatically creates and destroys PointEntity primitives in Cesium for each position in the set. Supports iteration, forEach/map APIs, maximum point constraints, push/pop/remove, and batch property changes (color, show, deletable, selectable, reactive). Coordinates (cartesians) and PointEntity objects are automatically synchronized for editing by user/UI.

    The Cesium app/viewer.

    Unique set ID.

    Initial array of Cartesian3 points.

    Maximum number of points allowed.

    Color applied to all points.

    If true, points can be interacted with by user.

    If true, points update/react adaptively.

    If true, points can be deleted.

    If true, points hide when being moved.

    forEach(callback) - Calls callback for every PointEntity in the set.

    map(callback) - Maps every PointEntity to a new value.

    onMove(callback) - Register callback for move events on any point.

    push(PointEntity) - Adds a point if maxPoints constraint allows.

    pop() - Removes the last point.

    remove(PointEntity) - Removes a specific point.

    destroy() - Removes and destroys all PointEntity objects and clears this set.

    const points = new PointSet3D(app, {cartesians: [c1, c2]});
    points.push(new PointEntity(app, {position: c3}));
    points.forEach(pt => pt.color = Color.RED);
    points.show = false;
    Index

    Constructors

    Properties

    _cartesians: undefined | null | Cartesian3[]
    _color: any
    _deletable: undefined | boolean
    _hideWhileHolding: undefined | boolean
    _points: undefined | null | PointEntity[]
    _reactive: undefined | boolean
    _selectable: undefined | boolean
    _show: undefined | boolean
    app: any
    id: any

    Set ID.

    maxPoints: any

    Limit for push/length.

    Accessors

    • get cartesians(): Cartesian3[]

      Array of underlying cartersian positions. When set, replaces all managed points as well.

      Returns Cartesian3[]

    • set cartesians(cartesians: Cartesian3[]): void

      Parameters

      • cartesians: Cartesian3[]

      Returns void

    Methods

    • Destroy all managed PointEntities and clear internal lists. Use to remove from scene and clean up memory.

      Returns null