Skip to content

Planes

Introduction

vtkPlanes computes the implicit function and function gradient for a set of planes. The planes must define a convex space.

Methods

evaluateFunction

Evaluate the function at a point x

ArgumentTypeRequiredDescription
xYesThe point at which to evaluate the function

Returns

TypeDescription
The function value at the point x

evaluateGradient

Evaluate the gradient at a point x

ArgumentTypeRequiredDescription
xYesThe point at which to evaluate the gradient

Returns

TypeDescription
The gradient at the point x

extend

Method used to decorate a given object (publicAPI+model) with vtkPlane characteristics.

ArgumentTypeRequiredDescription
publicAPIYesobject on which methods will be bounds (public)
modelYesobject on which data structure will be bounds (protected)
initialValuesIPlanesInitialValuesNo(default: {})

getBounds

Get the bounds of the planes.

Returns

TypeDescription
BoundsThe bounds of the planes.

getNormals

Get the normals of the plane.

Returns

TypeDescription
vtkDataArrayThe normals of the plane.

getNumberOfPlanes

Get the number of planes in the set of planes.

getPlane

Get the i-th plane

ArgumentTypeRequiredDescription
iNumberYesThe index of the plane to get.
planevtkPlaneNoThe vtkPlane instance to fill (optional).

Returns

TypeDescription
vtkPlaneThe plane instance at the specified index. If no plane is provided, a new vtkPlane instance will be created.

getPoints

Get the points of the plane.

Returns

TypeDescription
vtkPointsThe points of the plane.

newInstance

Method used to create a new instance of vtkPlane.

ArgumentTypeRequiredDescription
initialValuesIPlanesInitialValuesNofor pre-setting some of its content

setBounds

Set the bounds of the planes.

ArgumentTypeRequiredDescription
boundsBoundsYesThe bounds to set.

Returns

TypeDescription
Booleantrue if bounds were set, false if they were already set

setFrustumPlanes

Set the Frustum planes.

ArgumentTypeRequiredDescription
planesArray[Vector3]YesThe coordinates of the frustum planes.

setNormals

Set the normals of the plane.

ArgumentTypeRequiredDescription
normalsvtkDataArrayYesThe normals to set.

setPoints

Set the points of the plane.

ArgumentTypeRequiredDescription
pointsYesThe points to set.