Skip to content

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.

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 vtkWebGPUPolyDataMapper2D characteristics.

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

newInstance ​

Method used to create a new instance of vtkWebGPUPolyDataMapper2D.

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

ArgumentTypeRequiredDescription
polyvtkPolyDataYes