> ## 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.

# Mix Block

The **Mix**block is a tool for blending two implicit geometries by mixing the values of their scalar fields based on a given factor.

<Frame>
  <img src="https://files.learn.ntop.com/lessons/intro-to-field-driven-design/220_10_1-MixBlockSimple.png" />
</Frame>

The Factor value can range between 0 and 1, with 0 being entirely Input A and 1 being entirely Input B. The image below shows the effect of mixing a Box (Scalar Field A) and a Cone (Scalar Field B) using varying mix factors.

<Frame>
  <img src="https://files.learn.ntop.com/lessons/intro-to-field-driven-design/220_10_2-mix.jpg" />
</Frame>

The Mix *Factor*can also be ramped using the previously introduced **Ramp**block. See the example below with the same Box and Cone geometries.

<Frame>
  <img src="https://files.learn.ntop.com/lessons/intro-to-field-driven-design/220_10_3-MixBlock.png" />
</Frame>

<Frame>
  <img src="https://files.learn.ntop.com/lessons/intro-to-field-driven-design/220_10_4-mixcropped.jpg" />
</Frame>

## Best Practice

Because the **Mix**block performs operations on two fields to represent a new geometry, it is always a good idea to perform a clean-up step afterward. This ensures that the resulting field does not have an infinite negative domain, which you cannot render into a geometry.

Using the **Set Field Bounding Box** block, either manually set a bounding box using the **Bounding Box**block or go into the properties of the initial design body and grab its Bounding Box chip. The resulting field is within the specified bounding box.

<Frame>
  <img src="https://files.learn.ntop.com/lessons/intro-to-field-driven-design/220_10_5-SetFBB.png" />
</Frame>

## Example Application

<Frame>
  <img src="https://files.learn.ntop.com/lessons/intro-to-field-driven-design/220_10_6-MixExample.png" />
</Frame>

Gradually blending two types of TPMS lattices

Starting with the Gyroid at the bottom, a Ramped Mix was applied to gradually blend the structure with the Neovius lattice.
