# Redefine Cells of simplex mesh

**URL:** https://discourse.vtk.org/t/redefine-cells-of-simplex-mesh/1514
**Category:** Development
**Created:** [August 7, 2019, 11:09pm UTC](https://discourse.vtk.org/t/redefine-cells-of-simplex-mesh/1514 "2019-08-07T23:09:12Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![srbn.ghosh99](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/s/cdc98d/32.png) [@srbn.ghosh99](https://discourse.vtk.org/u/srbn.ghosh99)
#### Post date: [August 7, 2019, 11:09pm UTC](https://discourse.vtk.org/t/redefine-cells-of-simplex-mesh/1514/1 "2019-08-07T23:09:12Z")

</div>

Hi,

In my simplex mesh, I want to Redefine some cells with different points and save them. Lets say , one cell has 6 points,(1,2,3,4,5,6). I want to eliminate one point from the cell and redefine with (1,2,3,4,5).  
I am using VTKSmartPointerPolyData. I tried  
void vtkPolyData::ReplaceLinkedCell(VTKIDtype cellid, int npts, CTKIdType \*pnts).  
But it does not work.

---

<div class="post-metadata">

### Author: ![Ron84](https://discourse.vtk.org/user_avatar/discourse.vtk.org/ron84/32/630_2.png) [@Ron84](https://discourse.vtk.org/u/Ron84)
#### Post date: [August 9, 2019, 11:28am UTC](https://discourse.vtk.org/t/redefine-cells-of-simplex-mesh/1514/2 "2019-08-09T11:28:22Z")

</div>

Is there a minimal example?
