Introduction
vtkCone computes the implicit function and/or gradient for a cone. vtkCone is
a concrete implementation of vtkImplicitFunction. TODO: Currently the cone’s
axis of rotation is along the x-axis with the apex at the origin. To
transform this to a different location requires the application of a
transformation matrix. This can be performed by supporting transforms at the
implicit function level, and should be added.
Methods
evaluateFunction
Given the point x evaluate the cone equation.
Argument | Type | Required | Description |
---|---|---|---|
x |
Vector3 | Yes | The point coordinate. |
evaluateGradient
Given the point x evaluate the equation for the cone gradient.
Argument | Type | Required | Description |
---|---|---|---|
x |
Vector3 | Yes | The point coordinate. |
extend
Method used to decorate a given object (publicAPI+model) with vtkCone 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 |
IConeInitialValues | No | (default: {}) |
getAngle
Get the angle of the cone.
newInstance
Method used to create a new instance of vtkCone.
Argument | Type | Required | Description |
---|---|---|---|
initialValues |
IConeInitialValues | No | for pre-setting some of its content |
setAngle
Set the value representing the angle of the cone.
Argument | Type | Required | Description |
---|---|---|---|
angle |
Number | Yes | The angle of the cone. |
Source
import { vtkObject } from "../../../interfaces" ; |
import macro from 'vtk.js/Sources/macros'; |