StretchVertexMask
This node produces a VertexMask showing local stretching and compression of the mesh between a neutral and deformed geometries.
How it works
StretchVertexMask divided an input mesh into triangles. Then evaluates the deformation of each triangle by comparing its deformed and neutral metrics. This deformation is expressed through two scalar principal components, describing how the surface expands or compresses along its main directions. Both components may represent either stretching or scrunching, and together they define all output modes. The computed values are then aggregated at the vertices, taking the triangle areas into account, to produce a mask depicting the local deformation across the mesh.
See Modes for details and examples.
Inputs
- Neutral Geometry
GeometryNeutral-pose version of the mesh.- Deformed Geometry
GeometryMesh with the same topology representing a deformed state. Vertex order and triangle indices must match the neutral geometry.
Output
- Resulted Vertex Mask
VertexMaskVertex mask normalized between 0 and 1, representing local deformation intensity.
Parameters
- Mode:
- Anisotropy
This mode measures the difference between the two principal components.
- Dominant Stretch
This mode captures only the largest stretching component.
- Dominant Compression
This mode captures only the largest compression component.