AppendPolyData
Introduction
vtkAppendPolyData - append one or more polygonal datasets together
vtkAppendPolyData is a filter that appends one of more polygonal datasets into a single polygonal dataset. All geometry is extracted and appended, but point and cell attributes (i.e., scalars, vectors, normals) are extracted and appended only if all datasets have the point and/or cell attributes available. (For example, if one dataset has point scalars but another does not, point scalars will not be appended.)
Usage
Provide the first input to the filter via the standard setInput(Data/Connection) methods. Any additional inputs can be provided via the addInput(Data/Connection) methods. When only a single input is provided, it is passed through as is to the output.
const cone = vtkConeSource.newInstance();
const cylinder = vtkCylinderSource.newInstance();
const appendPolyData = vtkAppendPolyData.newInstance();
appendPolyData.setInputConnection(cone.getOutputPort());
appendPolyData.addInputConnection(cylinder.getOutputPort());
const appendedData = appendPolyData.getOutputData();Methods
extend
Method used to decorate a given object (publicAPI+model) with vtkAppendPolyData 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 | IAppendPolyDataInitialValues | No | (default: {}) |
getOutputPointsPrecision
Get the desired precision for the output types.
newInstance
Method used to create a new instance of vtkAppendPolyData
| Argument | Type | Required | Description |
|---|---|---|---|
initialValues | IAppendPolyDataInitialValues | No | for pre-setting some of its content |
requestData
| Argument | Type | Required | Description |
|---|---|---|---|
inData | Yes | ||
outData | Yes |
setOutputPointsPrecision
Set the desired precision for the output types.
| Argument | Type | Required | Description |
|---|---|---|---|
outputPointsPrecision | Yes |