# How do I build special lattice model with implicit modeling?

**URL:** https://discourse.vtk.org/t/how-do-i-build-special-lattice-model-with-implicit-modeling/2651
**Category:** Support
**Created:** [February 18, 2020, 3:15pm UTC](https://discourse.vtk.org/t/how-do-i-build-special-lattice-model-with-implicit-modeling/2651 "2020-02-18T15:15:24Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Puth\_Charlie](https://discourse.vtk.org/user_avatar/discourse.vtk.org/puth_charlie/32/1405_2.png) [@Puth\_Charlie](https://discourse.vtk.org/u/Puth_Charlie)
#### Post date: [February 18, 2020, 3:15pm UTC](https://discourse.vtk.org/t/how-do-i-build-special-lattice-model-with-implicit-modeling/2651/1 "2020-02-18T15:15:24Z")

</div>

In VTK, is there any way to generate a lattice model similar to the one shown below by either implicit modeling or Level-set? If I switch to a lattice model like the one below, how do I build with implicit modeling?  
[![image](https://discourse.vtk.org/uploads/default/original/2X/6/64f39f2e330177188709858081bbb0c3337636c0.png)](https://user-images.githubusercontent.com/51358474/74746379-50ad4880-52a0-11ea-8a2a-d8148e17f13a.png)

---

<div class="post-metadata">

### Author: ![kayarre](https://discourse.vtk.org/user_avatar/discourse.vtk.org/kayarre/32/808_2.png) [@kayarre](https://discourse.vtk.org/u/kayarre)
#### Post date: [February 26, 2020, 12:49am UTC](https://discourse.vtk.org/t/how-do-i-build-special-lattice-model-with-implicit-modeling/2651/2 "2020-02-26T00:49:10Z")

</div>

What’s the equation used for the object on the left?

---

<div class="post-metadata">

### Author: ![Puth\_Charlie](https://discourse.vtk.org/user_avatar/discourse.vtk.org/puth_charlie/32/1405_2.png) [@Puth\_Charlie](https://discourse.vtk.org/u/Puth_Charlie)
#### Post date: [February 26, 2020, 4:17am UTC](https://discourse.vtk.org/t/how-do-i-build-special-lattice-model-with-implicit-modeling/2651/3 "2020-02-26T04:17:47Z")

</div>

Thank you for your reply. For the left figure, I use the vtkImplicitModeller class, which automatically generates offset distance fields around points, lines, and polygons. I don’t know what the equation is or how it’s implemented, but it does implement equidistant offset. Do you have any solutions to this problem? Or do you know how to construct a distance field based on points, lines, and polygons?
