@twinfinity/core
    Preparing search index...

    Class PickResultMesh

    Represents a pick operation where a BabylonJS mesh was picked. Used when a picking operation hit a BabylonJS mesh that does not represent a Twinfinity object such as a Icon or BimIfcObject.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    • Constructor

      Parameters

      • o: { gpuPickMesh: Mesh; id: number; mesh: Mesh; pickOptions: PickOptionRay }

        Options

        • gpuPickMesh: Mesh

          The internal mesh (clone of o.mesh) that was used for the GPU pick operation

        • id: number

          Unique GPU picking id for the hit mesh.

        • mesh: Mesh

          BabylonJS Mesh that was hit by a pick operation

        • pickOptions: PickOptionRay

          The picking ray and related options.

      Returns PickResultMesh

    Properties

    hitInfo: Intersection[] = []

    Exact intersections of mesh that the pick operation gave.

    id: number

    Unique GPU picking id for the hit object

    mesh: Mesh

    BabylonJS Mesh pick operation yielded.

    type: Mesh = PickResultType.Mesh

    Discriminant union selector

    Methods