We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afdf1cd commit 75fe99aCopy full SHA for 75fe99a
Sources/Rendering/WebGPU/PolyDataMapper/index.js
@@ -5,6 +5,8 @@ import vtkViewNode from 'vtk.js/Sources/Rendering/SceneGraph/ViewNode';
5
6
import { registerOverride } from 'vtk.js/Sources/Rendering/WebGPU/ViewNodeFactory';
7
8
+import { vtkErrorMacro } from 'vtk.js/Sources/macros';
9
+
10
const { PrimitiveTypes } = vtkWebGPUBufferManager;
11
12
// ----------------------------------------------------------------------------
@@ -34,6 +36,11 @@ function vtkWebGPUPolyDataMapper(publicAPI, model) {
34
36
};
35
37
38
publicAPI.updateCellArrayMappers = (poly) => {
39
+ if (!poly) {
40
+ vtkErrorMacro('No input!');
41
+ return;
42
+ }
43
44
const prims = [
45
poly.getVerts(),
46
poly.getLines(),
0 commit comments