# Error during the cell blanking of explicit structured grid

**URL:** https://discourse.vtk.org/t/error-during-the-cell-blanking-of-explicit-structured-grid/4863
**Category:** Development
**Created:** [December 20, 2020, 2:39am UTC](https://discourse.vtk.org/t/error-during-the-cell-blanking-of-explicit-structured-grid/4863 "2020-12-20T02:39:42Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![rodrigomologni](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/r/54ee81/32.png) [@rodrigomologni](https://discourse.vtk.org/u/rodrigomologni)
#### Post date: [December 20, 2020, 2:39am UTC](https://discourse.vtk.org/t/error-during-the-cell-blanking-of-explicit-structured-grid/4863/1 "2020-12-20T02:39:42Z")

</div>

Cell blanking (`vtkDataSetAttributes.HIDDENCELL`) of explicit structured grids produces the following error:

```
ERROR:root:Invalid cell type: 0
2020-12-19 23:24:55.908 ( 11.046s) [] vtkPolyData.cxx:1068 ERR| vtkPolyData (0000026DE794FD30): Invalid cell type: 0
```

---

<div class="post-metadata">

### Author: ![Joachim\_P](https://discourse.vtk.org/user_avatar/discourse.vtk.org/joachim_p/32/3272_2.png) [@Joachim\_P](https://discourse.vtk.org/u/Joachim_P)
#### Post date: [December 20, 2020, 11:15am UTC](https://discourse.vtk.org/t/error-during-the-cell-blanking-of-explicit-structured-grid/4863/2 "2020-12-20T11:15:04Z")

</div>

Could you give us more details on what sources & filters are in your pipeline here? At which step do you get this error?

---

<div class="post-metadata">

### Author: ![rodrigomologni](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/r/54ee81/32.png) [@rodrigomologni](https://discourse.vtk.org/u/rodrigomologni)
#### Post date: [December 20, 2020, 3:28pm UTC](https://discourse.vtk.org/t/error-during-the-cell-blanking-of-explicit-structured-grid/4863/3 "2020-12-20T15:28:19Z")

</div>

Hi @Joachim_P! See the attached code. Comment `grid.GlobalWarningDisplayOff()` to show the errors, please. I hope I didn’t do something wrong. Waiting for an answer. Best regards.

[esgrid.zip](https://discourse.vtk.org/uploads/short-url/oxUTMDKL7ZlX0J1wEPT6Amr4o6x.zip) (2.7 MB)

---

<div class="post-metadata">

### Author: ![rodrigomologni](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/r/54ee81/32.png) [@rodrigomologni](https://discourse.vtk.org/u/rodrigomologni)
#### Post date: [December 20, 2020, 9:00pm UTC](https://discourse.vtk.org/t/error-during-the-cell-blanking-of-explicit-structured-grid/4863/4 "2020-12-20T21:00:45Z")

</div>

Another problem:

```
surface = vtk.vtkExplicitStructuredGridSurfaceFilter()
surface.SetInputData(grid)
surface.Update()

```

is producing:

`Windows fatal exception: access violation`
