Introduction
vtkPolyLine is a cell which representant a poly line.
See Also
vtkCell
Methods
evaluateLocation
Determine global coordinate (x[3]) from subId and parametric coordinates.
Also returns interpolation weights. (The number of weights is equal to
the number of points in the cell.)
Argument | Type | Required | Description |
---|---|---|---|
subId |
number | Yes | |
pcoords |
Vector3 | Yes | The parametric coordinates |
x |
Vector3 | Yes | The global coordinate |
weights |
Vector2 | Yes | The interpolation weights |
extend
Method used to decorate a given object (publicAPI+model) with vtkPolyLine characteristics.
Argument | Type | Required | Description |
---|---|---|---|
publicAPI |
Yes | object on which methods will be bounds (public) | |
model |
Yes | object on which data structure will be bounds (protected) | |
initialValues |
IPolyLineInitialValues | No | (default: {}) |
getCellDimension
Get the topological dimensional of the cell (0, 1, 2 or 3).
intersectWithLine
Argument | Type | Required | Description |
---|---|---|---|
t1 |
number | Yes | |
t2 |
number | Yes | |
p1 |
Vector3 | Yes | The first point coordinate. |
p2 |
Vector3 | Yes | The second point coordinate. |
tol |
Number | Yes | The tolerance to use. |
x |
Vector3 | Yes | The point which intersect the line. |
pcoords |
Vector3 | Yes | The parametric coordinates. |
newInstance
Method used to create a new instance of vtkPolyLine.
Argument | Type | Required | Description |
---|---|---|---|
initialValues |
IPolyLineInitialValues | No | for pre-setting some of its content |
Source
import { Vector2, Vector3 } from '../../../types'; |
import macro from 'vtk.js/Sources/macros'; |