> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ntop.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How to generate randomized lattice thickness

## Objective:

Learn how to create a variable lattice thickness driven by **3D** **Simplex Noise** in a [**Ramp**](/help-articles/knowledge-base/implicit-modeling/how-do-i-use-the-ramp-block). This technique is useful for creating Stochastic foam.

## Procedure:

1. Start with any Implicit Body.

2. Add a **Ramp**to use as a thickness modifier.

* In the Scalar Field of the Ramp, add **Simplex Noise 3D.**
  * Change the frequency to vary the thickness.
* Set the Ramp values:
  * In Min: -0.5, In Max: 0.75.
  * Out Min: 0.17 mm, Out Max: 0.8 mm (right-click on the Out Min and Out Max input names to turn them into variables, allowing you to easily change the beam thickness).

![A Simplex Noise 3D block in the Scalar Field input of a Ramp block. This modifies the Simplex Noise 3D field based on the input values.](https://files.learn.ntop.com/help-articles/lattices/6015388794387.png)

3. Add a **Voronoi Volume Lattice.**

* Seed points: **Random Points in a Body.**
* Thickness: Ramp created from the above step.

**![A Voronoi Volume Lattice block. This creates a voronoi lattice using points inside the body. The beam thickness is modified by the Ramp field created in step 2.](https://files.learn.ntop.com/help-articles/lattices/6015398636051.png)**

4. Add a **Trim Lattice.**

* Voronoi lattice: Voronoi Lattice.
* Volume: Implicit Body.
* Lattice to remain: Inside.
* Feature tolerance: 0.1mm.

![A Trim Lattice block. This block trims the voronoi lattice to remain only inside the defined body.](https://files.learn.ntop.com/help-articles/lattices/6015470914963.png)

![The trimmed voronoi lattice.](https://files.learn.ntop.com/help-articles/lattices/6015512963475.png)

And that's it! You've successfully created a lattice with a randomized beam thickness.

Are you still having issues? Contact the [support team](https://support.ntopology.com/hc/en-us/requests/new), and we'll be happy to help!

## Download the Example file:

* [Example File](https://files.learn.ntop.com/Support%20Article%20Example%20Files/Knowledge%20Base/Lattices/Variable_Voronoi_Lattice_Thicken_Simplex_Noise.ntop)

## Keywords:

*ramp Variable Lattice Thickness Simplex Noise texture offset lattices trim random stoichastic 3d*
