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 - elementId: number
The id of the element in the data model on the server that was hit
-
cee.cug.HitItem.elementIndex - elementIndex: number
The index of the element in the data model on the server that was hit
-
cee.cug.HitItem.elementLocalSurface - elementLocalSurface: number
The type of the element in the data model on the server that was hit, for example ‘Quad’, ‘Tetrahedron’, ‘Hexahedron’
-
cee.cug.HitItem.elementScalarResult - elementScalarResult: number
The scalar result in the closest node as indicated by
nodeId/nodeIndex.
-
cee.cug.HitItem.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.
-
cee.cug.HitItem.elementType - elementType: string
The type of the element in the data model on the server that was hit, for example ‘Quad’, ‘Tetrahedron’, ‘Hexahedron’
-
cee.cug.HitItem.frameIndex - frameIndex: number
The index of the frame in which the picking occurred
-
cee.cug.HitItem.intersectionPoint - intersectionPoint:
Vec3The 3d point (in world coordinates) on the surface that was hit.
This is the actual point that was hit
-
cee.cug.HitItem.intersectionPointNormal - intersectionPointNormal:
Vec3The normal of the surface at the point where the surface was hit.
-
cee.cug.HitItem.nodeId - nodeId: number
The id of the node in the data model on the server that was hit
-
cee.cug.HitItem.nodeIndex - nodeIndex: number
The index of the node in the data model on the server that was hit
-
cee.cug.HitItem.nodePosition - nodePosition:
Vec3The position of the node in the data model on the server that was hit
-
cee.cug.HitItem.nodeScalarResult - nodeScalarResult: number
The scalar result in the closest node as indicated by
nodeId/nodeIndex.
-
cee.cug.HitItem.objectIndex - objectIndex: number
The index of the object (part/iso/cut/isovol) that was hit
-
cee.cug.HitItem.objectType - objectType:
ObjectTypeThe type of object (part/iso/cut/isovol) that was hit
-
cee.cug.HitItem.serverItemIdent - serverItemIdent:
ServerItemIdentObject identifying the hit item. Can be used for query