LineEntity

class Selection.LineEntity()

Methods

Selection.LineEntity.getBestVertex()
getBestVertex(): (None | Point3)

Returns the vertex of the line that is closest to the selection point.

Clipped vertices are skipped. If the vertex is occluded, then null is returned.

Returns: (None | Point3)

Selection.LineEntity.getBounding()
getBounding(): Box

Gets the bounding box for the line entity

Returns: Box

Bounding box for the line entity
Selection.LineEntity.getLineBits()
getLineBits(): number

Gets the kine bits for the selection Point.

Returns: number

The bits set on the line/edge.
Selection.LineEntity.getLineId()
getLineId(): number

Gets the line identifier

Returns: number

the identifier of the line that was selected
Selection.LineEntity.getPoints()
getPoints(): Point3[]

Returns: Point3[]

Selection.LineEntity.getPosition()
getPosition(): Point3

Gets the closest point on the selected line

Returns: Point3

the closest point on the line
Selection.LineEntity.isCappingGeometry()
isCappingGeometry(): boolean

Returns: boolean

Selection.LineEntity.overlayIndex()
overlayIndex(): number

Returns: number

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

Creates an object ready for JSON serialization.

Returns: object

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

static

fromJson(objData: any): LineEntity

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

Parameters

objData: any

An object given by [[toJson]].

Returns: LineEntity

The prepared object.