# HitItem

class `cee.cug.``HitItem`()

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

  Returned by `ConstantRemoteModel.rayIntersect`

Properties

- `elementId`
- `elementIndex`
- `elementLocalSurface`
- `elementScalarResult`
- `elementTriangleVertices`
- `elementType`
- `frameIndex`
- `intersectionPoint`
- `intersectionPointNormal`
- `nodeId`
- `nodeIndex`
- `nodePosition`
- `nodeScalarResult`
- `objectIndex`
- `objectType`
- `serverItemIdent`

## Properties

`HitItem.``elementId`

  Type: | number

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

`HitItem.``elementIndex`

  Type: | number

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

`HitItem.``elementLocalSurface`

  Type: | number

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

`HitItem.``elementScalarResult`

  Type: | number

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

`HitItem.``elementTriangleVertices`

  Type: | [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.

`HitItem.``elementType`

  Type: | string

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

`HitItem.``frameIndex`

  Type: | number

  The index of the frame in which the picking occurred

`HitItem.``intersectionPoint`

  Type: | Vec3

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

  This is the actual point that was hit

`HitItem.``intersectionPointNormal`

  Type: | Vec3

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

`HitItem.``nodeId`

  Type: | number

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

`HitItem.``nodeIndex`

  Type: | number

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

`HitItem.``nodePosition`

  Type: | Vec3

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

`HitItem.``nodeScalarResult`

  Type: | number

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

`HitItem.``objectIndex`

  Type: | number

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

`HitItem.``objectType`

  Type: | ObjectType

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

`HitItem.``serverItemIdent`

  Type: | ServerItemIdent

  Object identifying the hit item. Can be used for query

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your multilingual generative AI assistant for documentation. Ask me anything about HOOPS Envision for Web in your own language, or choose a sample question below to start a conversation:

What is HOOPS Envision for Web?
What are the latest release notes for HOOPS Envision for Web?
How do I start evaluating HOOPS Envision for Web?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...