{{description>Mesh deformation for Unity: Easily do mesh bending along splines with our Curvy Splines asset. Create dynamic scenes with advanced scaling options.}} ====== Deform Mesh ====== Deforms a mesh following a path. This module is to be used when you want to deform a random mesh to make it follow a path. This module is used in example scenes 29 and 29bis. Here is an example with a barbed wire mesh: {{ :documentation:generator:modules:deformmesh.png?direct | Mesh deformation in action}}

===== Slots ===== === Input === * V Mesh[] - one or multiple [[..:datatypes#Vmesh]]. These are the meshes to deform * Volume/Rasterized Path - a [[..:datatypes#Path]] or [[..:datatypes#Volume]] * Spots[] - one or multiple [[..:datatypes#Spots]]. The location of the meshes to deform === Output === * V Mesh[] - one or multiple [[..:datatypes#Vmesh]]. These are the deformed meshes * Spots[] - one or multiple [[..:datatypes#Spots]]. The location of the deformed meshes ===== Reference ===== ==== General ==== == Stretch To End == Set to true if you want to stretch the generated meshes to make them fit the end of the path. ==== Scale ==== Parameters from this section are used to scale the mesh ==Mode== **Simple** mode scales by an arbitrary value, while **Advanced** mode uses curves. ==Reference== Determines on what range the scale is applied: * **Self** - the scale is applied over the [[#Path]]'s active range * **Source** - the scale is applied over the [[#Path]]'s total length ==Offset== //Advanced scale mode only// Scale is applied starting at an offset ==Uniform Scaling== If enabled, the same scale is applied to both X and Y axis of the mesh's cross sections (local X and Y) ==Scale== The (base) value of the scale to apply ==Multiplier== //Advanced scale mode only// A scale multiplier. It is expressed as a curve, which X axis is the [[documentation:glossary#relative_distance|Relative Distance]] (between 0 and 1) of a point on the path, and its Y axis is the scale multiplier