Skip to main content

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

  • PickResultBase
    • PickResultMesh

Index

Constructors

Properties

Methods

Constructors

constructor

  • Constructor


    Parameters

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

      Options

    Returns PickResultMesh

Properties

publicreadonlyhitInfo

hitInfo: Intersection[] = []

Exact intersections of mesh that the pick operation gave.

publicreadonlyid

id: number

Unique GPU picking id for the hit object

publicreadonlymesh

mesh: Mesh

BabylonJS Mesh pick operation yielded.

publictype

type: Mesh = PickResultType.Mesh

Discriminant union selector

Methods

equals

  • Compare two PickResult instances.


    Parameters

    Returns boolean