MeasurementAPI#

Interface MeasurementAPI

These functions allow the creation of Measurements. A Measurement describes the distance between two points in the world.

Hierarchy

Methods

  • Parameters

    • measurementID: number
    • progress: MeasurementProgress
    • Optional visible: boolean
    • Optional name: string

    Returns void

  • Creates a new measurement and returns the ID. If no name is given, the measurement will be automatically named (e.g., “Measurement 23”).

    Parameters

    Returns number

  • Parameters

    • measurementID: number

      The ID of the Measurement.

    Returns MeasurementData

    The MeasurementData.

  • Returns number[]

    The IDs of all available Measurements.

  • Parameters

    • measurementDescriptor: MeasurementDescriptor
    • l3dToShapeInstanceIDMap: Map<number, number[]>

    Returns Promise<TangentMeasurementResult>

  • The measurement for the given measurementID is removed.

    Parameters

    • measurementID: number

    Returns void

  • Calculates the additional measurement information like thickness and displays it in the UI.

    Parameters

    • measurementID: number

      the ID of a Measurement

    Returns void

  • Parameters

    • data: MeasurementData

      The MeasurementData that should be restored.

    • Optional measurementID: number

      The ID of the restored Measurement.

    Returns number


Did you find this page useful? Please give it a rating:
Thank you for rating this page!
Any issues or feedback?
What kind of problem would you like to report?
Please tell us more about what's wrong: