Skip to content

Cylinder

Introduction

vtkCylinder computes the implicit function and/or gradient for a cylinder. vtkCylinder is a concrete implementation of vtkImplicitFunction.

Methods

evaluate

Evaluate of the cylinder equation without setting the data members center and radius.

ArgumentTypeRequiredDescription
radiusNumberYes
centerNumberYes
axisArray[Number]Yes
xArray[Number]Yes

evaluateFunction

Given the point xyz (three floating value) evaluate the cylinder equation.

ArgumentTypeRequiredDescription
xyzVector3YesThe point coordinate.

evaluateGradient

Given the point xyz (three floating values) evaluate the equation for the cylinder gradient.

ArgumentTypeRequiredDescription
xyzVector3YesThe point coordinate.

extend

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

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

getAngle

Get the angle of the cone.

getAxis

Get the axis of the cylinder.

getAxisByReference

Get the axis of the cylinder.

getCenter

Get the center of the cylinder.

getCenterByReference

Get the center of the cylinder.

getRadius

Get the radius of the cylinder.

newInstance

Method used to create a new instance of vtkCylinder.

ArgumentTypeRequiredDescription
initialValuesICylinderInitialValuesNofor pre-setting some of its content

setAngle

Set the value representing the angle of the cone.

ArgumentTypeRequiredDescription
angleNumberYesThe angle of the cone.

setAxis

Set the axis of the cylinder.

ArgumentTypeRequiredDescription
xNumberYesThe x coordinate.
yNumberYesThe y coordinate.
zNumberYesThe z coordinate.

setAxis

Set the axis of the cylinder.

ArgumentTypeRequiredDescription
axisArray[Number]YesThe axis coordinate.

setAxisFrom

Set the axis of the cylinder.

ArgumentTypeRequiredDescription
axisArray[Number]YesThe axis coordinate.

setCenter

Set the center of the cylinder.

ArgumentTypeRequiredDescription
xNumberYesThe x coordinate.
yNumberYesThe y coordinate.
zNumberYesThe z coordinate.

setCenter

Set the center of the cylinder.

ArgumentTypeRequiredDescription
centerArray[Number]YesThe center coordinate.

setCenterFrom

Set the center of the cylinder.

ArgumentTypeRequiredDescription
centerArray[Number]YesThe center coordinate.

setRadius

Set the radius of the cylinder.

ArgumentTypeRequiredDescription
radiusNumberYesThe radius of the cylinder.