Skip to content

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.

ArgumentTypeRequiredDescription
prepassYes

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.

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

newInstance ​

Method used to create a new instance of vtkWebGPUPolyDataMapper.

ArgumentTypeRequiredDescription
initialValuesIWebGPUPolyDataMapperInitialValuesNofor 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.

ArgumentTypeRequiredDescription
polyvtkPolyDataYes