Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HitItem

An object describing the result of a picking action on a ConstantRemoteModel.

Returned by ConstantRemoteModel.rayIntersect

Hierarchy

  • HitItem

Index

Properties

elementId

elementId: number

The id of the element in the data model on the server that was hit

elementIndex

elementIndex: number

The index of the element in the data model on the server that was hit

elementLocalSurface

elementLocalSurface: number

The type of the element in the data model on the server that was hit, for example 'Quad', 'Tetrahedron', 'Hexahedron'

elementScalarResult

elementScalarResult: number

The scalar result in the closest node as indicated by nodeId/nodeIndex.

elementTriangleVertices

elementTriangleVertices: number[]

A tessellation of triangles of the element that was hit.

This array contains x,y,z values for each triangle vertex. So there will be 9 values (3 vertices * (x,y,z)) per triangle. This can be used to highlight the selected element using the geometry or the markup model.

elementType

elementType: string

The type of the element in the data model on the server that was hit, for example 'Quad', 'Tetrahedron', 'Hexahedron'

frameIndex

frameIndex: number

The index of the frame in which the picking occurred

intersectionPoint

intersectionPoint: Vec3

The 3d point (in world coordinates) on the surface that was hit.

This is the actual point that was hit

intersectionPointNormal

intersectionPointNormal: Vec3

The normal of the surface at the point where the surface was hit.

nodeId

nodeId: number

The id of the node in the data model on the server that was hit

nodeIndex

nodeIndex: number

The index of the node in the data model on the server that was hit

nodeScalarResult

nodeScalarResult: number

The scalar result in the closest node as indicated by nodeId/nodeIndex.

objectIndex

objectIndex: number

The index of the object (part/iso/cut/isovol) that was hit

objectType

objectType: ObjectType

The type of object (part/iso/cut/isovol) that was hit

serverItemIdent

serverItemIdent: ServerItemIdent

Object identifying the hit item. Can be used for query

Generated using TypeDoc