Function: addLine3DBetweenPoints()
addLine3DBetweenPoints(
viewport,point1,point2,color,uid,showHandles):object
Add a 3D line between two points in the viewport
Parameters
• viewport: VolumeViewport
The viewport to add the line to
• point1: Point3
First point [x, y, z]
• point2: Point3
Second point [x, y, z]
• color: [number, number, number] = ...
RGB color array [r, g, b] (default: [0.7, 0.7, 0.7])
• uid: string = ''
Unique identifier for the line
• showHandles: boolean = true
Whether handles are visible (affects line visibility)
Returns
object
Object with actor and source
actor
actor:
vtkActor|null
source
source:
vtkPolyData|null