PointEntity

class Selection.PointEntity()

Methods

Selection.PointEntity.getPointBits()
getPointBits(): number

Gets the cad bits for the selection Point.

Returns: number

The bits set on the point.
Selection.PointEntity.getPointId()
getPointId(): number

Gets the point identifier

Returns: number

the identifier of the point that was selected
Selection.PointEntity.getPosition()
getPosition(): Point3

Gets the world space position of the selection point.

Returns: Point3

World space position of the selection point if it can be determined.
Selection.PointEntity.overlayIndex()
overlayIndex(): number

Returns: number

The index of the overlay the entity belongs to.
Selection.PointEntity.toJson()
toJson(): object

Creates an object ready for JSON serialization.

Returns: object

The prepared object.
static Selection.PointEntity.fromJson()

static

fromJson(objData: any): PointEntity

Creates a new [[PointEntity]] from an object given by [[toJson]].

Parameters

objData: any

An object given by [[toJson]].

Returns: PointEntity

The prepared object.