PolyDataMapper2D
Introduction
The WebGPU view node of vtkMapper2D. It delegates each cell array of the polydata to a vtkWebGPUCellArrayMapper drawing in 2D.
Methods
buildPass
Update the renderable and rebuild the cell array mappers of its polydata.
| Argument | Type | Required | Description |
|---|---|---|---|
prepass | Yes |
createCellArrayMapper
Create the cell array mapper drawing one primitive of the polydata.
extend
Method used to decorate a given object (publicAPI+model) with vtkWebGPUPolyDataMapper2D 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 | IWebGPUPolyDataMapper2DInitialValues | No | (default: {}) |
newInstance
Method used to create a new instance of vtkWebGPUPolyDataMapper2D.
| Argument | Type | Required | Description |
|---|---|---|---|
initialValues | IWebGPUPolyDataMapper2DInitialValues | No | for pre-setting some of its content |
updateCellArrayMappers
Create, configure and adopt one cell array mapper per non empty cell array of the polydata, up to the triangles, each drawing in 2D.
| Argument | Type | Required | Description |
|---|---|---|---|
poly | vtkPolyData | Yes |