previous index next
If these variations are important to the simulation, the user can specify how to divide each layer into distinct materials.

For example, here is the procedural definition used to specify the stripes of chocolate on the candy model. This definition is very similar in structure to a procedural solid texture. When queried with a point in space the function returns a material type.

Volumetric elements for each color of chocolate define the boundaries within the layer. If different material properties are assigned to the different types of chocolate (such as melting temperature) these spatially varying material properties can be taken into account during simulation.