HitItem

class cee.cug.HitItem()

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

Returned by ConstantRemoteModel.rayIntersect


Properties

cee.cug.HitItem.elementId

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

cee.cug.HitItem.elementIndex

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

cee.cug.HitItem.elementLocalSurface

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

cee.cug.HitItem.elementScalarResult

The scalar result in the closest node as indicated by nodeId

cee.cug.HitItem.elementTriangleVertices

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.

cee.cug.HitItem.elementType

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

cee.cug.HitItem.frameIndex

The index of the frame in which the picking occurred

cee.cug.HitItem.intersectionPoint

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

This is the actual point that was hit

cee.cug.HitItem.intersectionPointNormal

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

cee.cug.HitItem.nodeId

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

cee.cug.HitItem.nodeIndex

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

cee.cug.HitItem.nodeScalarResult

The scalar result in the closest node as indicated by nodeId

cee.cug.HitItem.objectIndex

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

cee.cug.HitItem.objectType

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

cee.cug.HitItem.serverItemIdent

Object identifying the hit item. Can be used for query