Skip to content

ArcSource ​

Introduction ​

vtkArcSource is a source object that creates an arc defined by two endpoints and a center. The number of segments composing the polyline is controlled by setting the object resolution.

Usage ​

js
import vtkArcSource from '@kitware/vtk.js/Filters/Sources/ArcSource';

const arc = vtkArcSource.newInstance();
const polydata = arc.getOutputData();

Methods ​

extend ​

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

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

getAngle ​

Get the angle of the arc.

getCenter ​

Get the center of the arc.

getCenterByReference ​

Get the center of the arc by reference.

getNegative ​

Get the negative flag of the arc.

getNormal ​

Get the normal vector of the arc.

getNormalByReference ​

Get the normal vector of the arc by reference.

getOutputPointsPrecision ​

Get the output points precision.

getPoint1 ​

Get the first point of the arc.

getPoint1ByReference ​

Get the first point of the arc by reference.

getPoint2 ​

Get the second point of the arc.

getPoint2ByReference ​

Get the second point of the arc by reference.

getPolarVector ​

Get the polar vector of the arc.

getPolarVectorByReference ​

Get the polar vector of the arc by reference.

getResolution ​

Get the resolution of the arc.

getUseNormalAndAngle ​

Get the use normal and angle flag.

newInstance ​

Method used to create a new instance of vtkArcSource.

ArgumentTypeRequiredDescription
initialValuesIArcSourceInitialValuesNofor pre-setting some of its content

requestData ​

ArgumentTypeRequiredDescription
inDataYes
outDataYes

setAngle ​

Set the angle of the arc.

ArgumentTypeRequiredDescription
angleNumberYesThe angle in radians.

setCenter ​

Set the center of the arc.

ArgumentTypeRequiredDescription
centerVector3YesThe center point's coordinates.

setCenterFrom ​

Set the center of the arc by reference.

ArgumentTypeRequiredDescription
centerVector3YesThe center point's coordinates.

setNegative ​

Set the negative flag of the arc.

ArgumentTypeRequiredDescription
negativeBooleanYesIf true, the arc will be drawn in the negative direction.

setNormal ​

Set the normal vector of the arc.

ArgumentTypeRequiredDescription
normalVector3YesThe normal vector's coordinates.

setNormalFrom ​

Set the normal vector of the arc by reference.

ArgumentTypeRequiredDescription
normalVector3YesThe normal vector's coordinates.

setOutputPointsPrecision ​

Set the output points precision.

ArgumentTypeRequiredDescription
precisionDesiredOutputPrecisionYesThe desired output precision.

setPoint1 ​

Set the first point of the arc.

ArgumentTypeRequiredDescription
point1Vector3YesThe first point's coordinates.

setPoint1From ​

Set the first point of the arc by reference.

ArgumentTypeRequiredDescription
point1Vector3YesThe first point's coordinates.

setPoint2 ​

Set the second point of the arc.

ArgumentTypeRequiredDescription
point2Vector3YesThe second point's coordinates.

setPoint2From ​

Set the second point of the arc by reference.

ArgumentTypeRequiredDescription
point2Vector3YesThe second point's coordinates.

setPolarVector ​

Set the polar vector of the arc.

ArgumentTypeRequiredDescription
polarVectorVector3YesThe polar vector's coordinates.

setPolarVectorFrom ​

Set the polar vector of the arc by reference.

ArgumentTypeRequiredDescription
polarVectorVector3YesThe polar vector's coordinates.

setResolution ​

Set the resolution of the arc.

ArgumentTypeRequiredDescription
resolutionNumberYesThe number of points in the arc.

setUseNormalAndAngle ​

Set the use normal and angle flag.

ArgumentTypeRequiredDescription
useNormalAndAngleBooleanYesIf true, the normal and angle will be used to define the arc.