Quad
Introduction
vtkQuad is a cell which represents a quadrilateral. It may contain static methods to make some computations directly link to quads.
See Also
vtkCell
Methods
evaluateLocation
Determine global coordinate (x]) from subId and parametric coordinates.
| Argument | Type | Required | Description |
|---|---|---|---|
pcoords | Vector3 | Yes | The parametric coordinates. |
x | Vector3 | Yes | The x point coordinate. |
weights | Array[Number] | Yes | The number of weights. |
extend
Method used to decorate a given object (publicAPI+model) with vtkQuad 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 | IQuadInitialValues | No | (default: {}) |
getCellDimension
Get the topological dimensional of the cell (0, 1, 2 or 3).
intersectWithLine
Compute the intersection point of the intersection between quad and line defined by p1 and p2. tol Tolerance use for the position evaluation x is the point which intersect triangle (computed in function) pcoords parametric coordinates (computed in function) A javascript object is returned :
js
{
evaluation: define if the triangle has been intersected or not
subId: always set to 0
t: parametric coordinate along the line.
betweenPoints: Define if the intersection is between input points
}| Argument | Type | Required | Description |
|---|---|---|---|
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 triangle. |
pcoords | Vector3 | Yes | The parametric coordinates. |
newInstance
Method used to create a new instance of vtkQuad.
| Argument | Type | Required | Description |
|---|---|---|---|
initialValues | IQuadInitialValues | No | for pre-setting some of its content |