PointEntity

class Selection.PointEntity()

Methods

getPointBits

PointEntity.getPointBits()

Gets the cad bits for the selection Point.

Returns

The bits set on the point.

Return type

number

getPointId

PointEntity.getPointId()

Gets the point identifier

Returns

the identifier of the point that was selected

Return type

number

getPosition

PointEntity.getPosition()

Gets the world space position of the selection point.

Returns

World space position of the selection point if it can be determined.

Return type

Point3

overlayIndex

PointEntity.overlayIndex()
Returns

The index of the overlay the entity belongs to.

Return type

number

toJson

PointEntity.toJson()

Creates an object ready for JSON serialization.

Returns

The prepared object.

Return type

object

static fromJson

PointEntity.fromJson(objData)
Arguments
  • objData (any()) – An object given by [[toJson]].

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

Returns

The prepared object.

Return type

PointEntity