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
nullis returned.Returns: (None |
Point3)
-
Selection.LineEntity.getBounding() - getBounding():
BoxGets the bounding box for the line entity
Returns:
BoxBounding 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.getPosition() - getPosition():
Point3Gets the closest point on the selected line
Returns:
Point3the 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):LineEntityCreates a new [[LineEntity]] from an object given by [[toJson]].
Parameters
objData: any
An object given by [[toJson]].Returns:
LineEntityThe prepared object.