PolyDataMapper
Introduction
The WebGPU view node of vtkMapper. It does not draw anything itself, it delegates each cell array of the polydata to a vtkWebGPUCellArrayMapper.
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 vtkWebGPUPolyDataMapper 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 | IWebGPUPolyDataMapperInitialValues | No | (default: {}) |
newInstance
Method used to create a new instance of vtkWebGPUPolyDataMapper.
| Argument | Type | Required | Description |
|---|---|---|---|
initialValues | IWebGPUPolyDataMapperInitialValues | 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, plus the edge mappers when the actor's property has edge visibility.
| Argument | Type | Required | Description |
|---|---|---|---|
poly | vtkPolyData | Yes |