Skip to main content
Version: 4.x

Class: ThickLine

@cognite/reveal.ThickLine

Constructors

constructor

new ThickLine(lineWidth, lineColor, startPoint, endPoint)

Parameters

NameType
lineWidthnumber
lineColorColor
startPointVector3
endPointVector3

Defined in

packages/utilities/src/three/ThickLine.ts:16

Accessors

meshes

get meshes(): Group

Returns

Group

Defined in

packages/utilities/src/three/ThickLine.ts:67


visibility

set visibility(visible): void

Set visibility

Parameters

NameType
visibleboolean

Returns

void

Defined in

packages/utilities/src/three/ThickLine.ts:128

Methods

dispose

dispose(): void

Returns

void

Defined in

packages/utilities/src/three/ThickLine.ts:57


getLineLength

getLineLength(): number

Get the distance between the line start point & end point.

Returns

number

Return distance between start & end point of the line.

Defined in

packages/utilities/src/three/ThickLine.ts:97


getMidPointOnLine

getMidPointOnLine(): Vector3

Calculate mid point on the Line.

Returns

Vector3

Returns mid point between start and end points.

Defined in

packages/utilities/src/three/ThickLine.ts:105


updateLineClippingPlanes

updateLineClippingPlanes(clippingPlanes): void

Updates the line clipping planes

Parameters

NameTypeDescription
clippingPlanesPlane[]current active global clipping planes.

Returns

void

Defined in

packages/utilities/src/three/ThickLine.ts:86


updateLineColor

updateLineColor(color): void

Update current line color.

Parameters

NameTypeDescription
colorColorColor of the line mesh.

Returns

void

Defined in

packages/utilities/src/three/ThickLine.ts:121


updateLineEndPoint

updateLineEndPoint(endPoint): void

Update the line end point.

Parameters

NameTypeDescription
endPointVector3Second point of the line

Returns

void

Defined in

packages/utilities/src/three/ThickLine.ts:75


updateLineWidth

updateLineWidth(lineWidth): void

Update current line width.

Parameters

NameTypeDescription
lineWidthnumberWidth of the line mesh.

Returns

void

Defined in

packages/utilities/src/three/ThickLine.ts:113