Introduction
vtkDiskSource creates a polygonal disk with a hole in the center. The disk
has zero height. The user can specify the inner and outer radius of the disk,
the radial and circumferential resolution of the polygonal representation,
and the center and plane normal of the disk (i.e., the center and disk normal
control the position and orientation of the disk).
Usage
import vtkDiskSource from '@kitware/vtk.js/Filters/Sources/DiskSource'; |
Methods
extend
Method used to decorate a given object (publicAPI+model) with vtkDiskSource 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 |
IDiskSourceInitialValues | No | (default: {}) |
getCenter
Get the center of the disk.
getCircumferentialResolution
Get the circumferential resolution of the disk.
getInnerRadius
Get the inner radius of the disk.
getNormal
Get the normal of the disk.
getOuterRadius
Get the outer radius of the disk.
getPointType
Get the point type used for the disk.
getRadialResolution
Get the radial resolution of the disk.
newInstance
Method used to create a new instance of vtkDiskSource.
Argument | Type | Required | Description |
---|---|---|---|
initialValues |
IDiskSourceInitialValues | No | for pre-setting some of its content |
requestData
Expose methods
Argument | Type | Required | Description |
---|---|---|---|
inData |
Yes | ||
outData |
Yes |
setCenter
Set the center of the disk.
Argument | Type | Required | Description |
---|---|---|---|
center |
Vector3 | Yes |
setCircumferentialResolution
Set the circumferential resolution of the disk.
Argument | Type | Required | Description |
---|---|---|---|
resolution |
number | Yes |
setInnerRadius
Set the inner radius of the disk.
Argument | Type | Required | Description |
---|---|---|---|
radius |
number | Yes |
setNormal
Set the normal of the disk.
Argument | Type | Required | Description |
---|---|---|---|
normal |
Vector3 | Yes |
setOuterRadius
Set the outer radius of the disk.
Argument | Type | Required | Description |
---|---|---|---|
radius |
number | Yes |
setPointType
Set the point type used for the disk.
Argument | Type | Required | Description |
---|---|---|---|
type |
string | Yes |
setRadialResolution
Set the radial resolution of the disk.
Argument | Type | Required | Description |
---|---|---|---|
resolution |
number | Yes |
Source
import { vtkAlgorithm, vtkObject } from '../../../interfaces'; |
import macro from 'vtk.js/Sources/macros'; |