HitItem
- class cee.ug.HitItem()
Interface for an object describing the result of a picking action on a
RemoteModel
This object is provided to the
RayIntersectCallback
Properties
Properties
- cee.ug.HitItem.anythingHit
Whether anything was hit during the action. If false, the other properties in this object will be undefined.
- cee.ug.HitItem.elementArea
The area of the element (if applicable)
- cee.ug.HitItem.elementEdgeIndex
The local index (zero based) of the closest element edge to the actual intersection point in the data model on the server that was hit
- cee.ug.HitItem.elementFaceIndex
The local index (zero based) of the element face that was hit
- cee.ug.HitItem.elementId
The id of the element in the data model on the server that was hit
- cee.ug.HitItem.elementIndex
The index (zero based) of the element in the data model on the server that was hit
- cee.ug.HitItem.elementNodeIndex
The local index (zero based) of the closest element node to the actual intersection point in the data model on the server that was hit
- cee.ug.HitItem.elementNodeResult
The scalar result in the closest element node. Only defined if the current result is per element node
- cee.ug.HitItem.elementResult
The scalar result in the element that was hit.
- cee.ug.HitItem.elementResultIsInterpolated
Whether the element result is interpolated (e.g. from a nodal result). False if the result is an actual per element result.
- cee.ug.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.ug.HitItem.elementType
The type of the element in the data model on the server that was hit, for example ‘Quad’, ‘Tetrahedron’, ‘Hexahedron’
- cee.ug.HitItem.elementVolume
The volume of the element (if applicable)
- cee.ug.HitItem.frameIndex
The index of the frame in which the picking occurred. This is 0 unless there is an animation.
- cee.ug.HitItem.geometryIndex
The index of the CAE geometry.
In almost all cases this will be 0. If using a partially adaptive model with remeshing only on parts of the model (e.g. in a Forging process) the concept of multiple geometries might be relevant.
- cee.ug.HitItem.intersectionPoint
The 3d point (in world coordinates) on the surface that was hit.
This is the actual point that was hit
- cee.ug.HitItem.intersectionPointNormal
The normal of the surface at the point where the surface was hit.
- cee.ug.HitItem.intersectionPointResult
The interpolated scalar result in the
intersectionPoint
- cee.ug.HitItem.nodeId
The id of the closest node to the actual intersection point in the data model on the server that was hit
- cee.ug.HitItem.nodeIndex
The index (zero based) of the closest node to the actual intersection point in the data model on the server that was hit
- cee.ug.HitItem.nodePosition
The 3d point (in world coordinates) of the closest node as identified by nodeId/nodeIndex
Use intersectionPoint for the actual point on the model that was hit
- cee.ug.HitItem.nodeResult
The scalar result in the closest node as indicated by
nodeId
- cee.ug.HitItem.nodeResultIsInterpolated
Whether the node result is interpolated (e.g. from a per element result). False if the result is an actual per node result.
- cee.ug.HitItem.objectId
The id of the object (part/iso/cut/isovol) that was hit
- cee.ug.HitItem.objectIndex
The index of the object (part/iso/cut/isovol) that was hit
- cee.ug.HitItem.objectName
The name of the object (part/iso/cut/isovol) that was hit
- cee.ug.HitItem.objectType
The type of object (part/iso/cut/isovol) that was hit
- cee.ug.HitItem.scalarResultName
The name of the scalar that the results
elementResult
andnodeResult
apply to.