Skip to content

CircleSource

Introduction

vtkCircleSource creates a circle.

Usage

js
import vtkCircleSource from '@kitware/vtk.js/Filters/Sources/CircleSource';

const circle = vtkCircleSource.newInstance({ radius: 1, resolution: 80 });
const polydata = circle.getOutputData();

Methods

extend

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

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

getCenter

Get the center of the cone.

getCenterByReference

Get the center of the cone.

getDirection

Get the orientation vector of the cone.

getDirectionByReference

Get the orientation vector of the cone.

getFace

getLines

getRadius

Get the radius of the cylinder base.

getResolution

Get the number of facets used to define cylinder.

newInstance

Method used to create a new instance of vtkCircleSource.

ArgumentTypeRequiredDescription
initialValuesICircleSourceInitialValuesNofor pre-setting some of its content

requestData

Expose methods

ArgumentTypeRequiredDescription
inDataYes
outDataYes

setCenter

Set the center of the circle.

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

setCenterFrom

Set the center of the circle.

ArgumentTypeRequiredDescription
centerVector3Yes

setDirection

Set the direction for the circle.

ArgumentTypeRequiredDescription
directionVector3YesThe direction coordinates.

setDirection

Set the direction for the circle.

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

setDirectionFrom

Set the direction for the circle.

ArgumentTypeRequiredDescription
directionVector3YesThe direction coordinates.

setFace

ArgumentTypeRequiredDescription
faceBooleanYes

setLines

ArgumentTypeRequiredDescription
linesBooleanYes

setRadius

Set the radius of the circle.

ArgumentTypeRequiredDescription
radiusNumberYesThe radius of the circle.

setResolution

Set the resolution of the circle.

ArgumentTypeRequiredDescription
resolutionNumberYesThe resolution of the circle.