> ## 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 warp a cell map using fields

## Objective:

Learn how to warp a Cell Map using a field.

## Applies to:

* Lattices
* Warp Cell Map

## Procedure:

1. **Preparing the field to warp the cell map:**

Point Maps can be used as fields with the **Field from Point Map** block.

![A Field from Point Map block. The point map is created from a Topology Optimization Density Point Map block.](https://files.learn.ntop.com/help-articles/lattices/4410246118035.png)

* Point Map: **Topology Optimization Density Point Map**
  * Result: Topology Optimization
* Interpolation and Extrapolation ([Interpolation and Extrapolation options for creating a Field from a Point Map](/help-articles/knowledge-base/structures/what-are-interpolation-options-for-creating-a-field-from-a-point-map))

Another method is to obtain the field by dragging and dropping the chip from the properties menu.

![Another method for obtaining the density field is to extract it from the Topology Optimization properties panel.](https://files.learn.ntop.com/help-articles/lattices/4410238474899.png)

2. \*\*Set up the Ramp:\*\*Add a **Ramp** block ([How do I use the Ramp block?](/help-articles/knowledge-base/implicit-modeling/how-do-i-use-the-ramp-block))

* Scalar field: **Set Field Bounding Box**
  * Scalar field: Density Field
  * Bounding box: Bounding Box of the Body created from Topology Optimization Result
* In min: 0
* In max: 1
  * These values are set based on the field that is used as input and can be obtained on HUD.
* Out min: 0.5
* Out max: 2
  * The values here are the scaling factors for the cell size.
* Contunuity: Geometric (C0)

![A Ramp block being used to Ramp the density field values.](https://files.learn.ntop.com/help-articles/lattices/4410252157587.png)

3. **Create your base Cell Map:** This is the cell map that we are warping.

* Add a **Rectangular Cell Map** block (in this example, we use the **Rectangular Cell Map** block, but you can use whichever cell map you prefer)
  * Volume: In this example, we are trying to create a lattice structure using the topology optimized body. Add a **Smoothen Body** and **Implicit Body from Topology Optimization.**
  * Cell size: 5,5,5

<Tip>
  \*\*Tip:\*\*To learn more about converting the result into implicit body follow the instructions here ([How to run a topology optimization](/help-articles/knowledge-base/optimization/how-to-run-a-topology-optimization))
</Tip>

4. **Warp Cell Map:**

* Cell Map: Base Cell Map
* Discretization: 100,100,100
  * We choose a bigger number here for the grid size to increase the details that could be captured from sizing fields.
* U, V, W scale: Ramp

![Creating the periodic lattice using the warped cell map. The warped cell map is visualized to show the effects of the density modifier.](https://files.learn.ntop.com/help-articles/lattices/42787857282579.png)

![The final lattice design created using the warped cell map.](https://files.learn.ntop.com/help-articles/lattices/4410277722003.png)

## Download the Example file:

* [Example file](https://files.learn.ntop.com/Support%20Article%20Example%20Files/Knowledge%20Base/Lattices/Warp%20using%20Fields.ntop)

## Keywords:

*Top Opt density point map fields warp how-to cell map*
