IntersectDetail Class



Name Description
constructor(from: SnapDetail, heat: SnapHeat = SnapHeat.None, snapPoint: XYZProps, otherPrimitive: CurvePrimitive, otherId: string): IntersectDetail    
draw(context: DecorateContext): void    

Inherited methods

Name Inherited from Description
clone(): SnapDetail SnapDetail Make a copy of this SnapDetail.
getCurvePrimitive(singleSegment: boolean = true): CurvePrimitive | undefined SnapDetail  
getHitType(): HitDetailType SnapDetail Returns HitDetailType.Snap
getPoint(): Point3d SnapDetail Get the snap point if this SnapDetail is hot, the pick point otherwise.
getToolTip(): Promise<HTMLElement | string> HitDetail Get the tooltip content for this HitDetail.
isSameHit(otherHit?: HitDetail): boolean HitDetail Determine if this HitPoint is from the same source as another HitDetail.
setCurvePrimitive(primitive?: CurvePrimitive, localToWorld?: Transform, geomType?: HitGeomType): void SnapDetail Set curve primitive and HitGeometryType for this SnapDetail.
setSnapPoint(point: Point3d, heat: SnapHeat): void SnapDetail Change the snap point.


Name Type Description
otherId ConstructorProperty string    
otherPrimitive ConstructorProperty CurvePrimitive    

Inherited properties

Name Type Inherited from Description
adjustedPoint Point3d SnapDetail AccuSnap/AccuDraw can adjust the point after the snap.
distFraction ConstructorProperty number HitDetail The near plane distance fraction to hit.
distXY ConstructorProperty number HitDetail The xy distance to hit in view coordinates.
geometryClass ConstructorProperty undefined | GeometryClass HitDetail The GeometryClass for a persistent element hit.
geomType undefined | HitGeomType SnapDetail The HitGeomType of this SnapDetail
heat ConstructorProperty SnapHeat SnapDetail The SnapHeat of this SnapDetail
hitPoint ConstructorProperty Point3d HitDetail The approximate world coordinate location on the geometry identified by this HitDetail.
hitSource ConstructorProperty HitSource HitDetail The procedure that requested the locate operation.
isElementHit Accessor ReadOnly boolean HitDetail Return whether sourceId is for a persistent element and not a pickable decoration.
isHot Accessor ReadOnly boolean SnapDetail Return true if the pick point was closer than SnapRequestProps.snapAperture from the generated snap point.
isModelHit Accessor ReadOnly boolean HitDetail  
isPointAdjusted Accessor ReadOnly boolean SnapDetail Determine whether the SnapDetail.adjustedPoint is different than the SnapDetail.snapPoint. This happens, for example, when points are adjusted for grids, acs plane snap, and AccuDraw.
modelId ConstructorProperty undefined | string HitDetail Optionally the Id of the ModelState from which the hit originated.
normal undefined | Vector3d SnapDetail Surface normal at snapPoint
parentGeomType undefined | HitParentGeomType SnapDetail The HitGeomType of this SnapDetail
primitive undefined | CurvePrimitive SnapDetail Curve primitive for snap.
priority ConstructorProperty HitPriority HitDetail The hit geometry priority/classification.
snapMode ConstructorProperty SnapMode SnapDetail The SnapMode used to create this SnapDetail
snapPoint Point3d SnapDetail HitPoint adjusted by snap
sourceId ConstructorProperty string HitDetail The source of the geometry, either a persistent element id or pickable decoration id.
sprite undefined | Sprite SnapDetail A sprite to show the user the type of snap performed
subCategoryId ConstructorProperty undefined | string HitDetail The SubCategory for a persistent element hit.
testPoint ConstructorProperty Point3d HitDetail The world coordinate space point that was used as the locate point.
viewport ConstructorProperty ScreenViewport HitDetail The view the locate operation was performed in.

Defined in

Last Updated: 20 September, 2019