HitItem

class cee.vs.HitItem()

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

Returned by StreamModel.rayIntersect

Properties

cee.vs.HitItem.groupResourceKey
groupResourceKey: string

The resource key of the group that the hit’s instance belongs to.

cee.vs.HitItem.instanceIdx
instanceIdx: number

An index of the instance hit within the groupResourceKey.

cee.vs.HitItem.instanceUserRef
instanceUserRef: string

The user assigned userRef string for the mesh instance that was hit.

cee.vs.HitItem.intersectionPoint
intersectionPoint: Vec3

Intersection point of the hit in world coordinates.

cee.vs.HitItem.intersectionPointNormal
intersectionPointNormal: Vec3

The normal at the intersectionPoint.

cee.vs.HitItem.meshUserRef
meshUserRef: string

The user specified userRef string of the referenced polygon’s mesh.

cee.vs.HitItem.polygonCentroid
polygonCentroid: Vec3

Centroid of the polygon which was hit.

cee.vs.HitItem.srcPolyId
srcPolyId: number

The source id of the polygon that was hit, -1 if not specified

cee.vs.HitItem.srcVertexId
srcVertexId: number

The source id of the closest vertex, -1 if not specified