58 7. CONTINUUM APPROACH TO CLOTH
Just like springs have a rest length to represent the rest configuration, triangles will need
something similar. Since it is a 2D representation we will need two numbers for every particle
which are typically named .u; v/ that map a vertex into a 2D undeformed rest configuration.
is is essentially the shape that the cloth would want to attain if it wasn’t subjected to any
forces. If you’re familiar with computer graphics, this is exactly the same idea as .u; v/ mapping
for textures. e 3D geometry is unfolded onto a 2D surface on which textures can be painted.
Every vertex of the mesh relates to a corresponding point on the .u; v/ map.
A very simple example is shown in Figure 7.1. Here, a T-shirt is cut in a front and a back
part so it can be unfolded onto the 2D .u; v/ space. e blue dotted lines show some of the
vertex correspondences and the red lines show where the shirt is sown together.
Figure 7.1: Example of a .u; v/ map for a simple low resolution T-shirt. e 3D mesh is cut
into front and back sections, so it can be unfolded onto the 2D .u; v/ space. A few particle
correspondences are shown with blue dotted lines and the red lines indicate the edges of triangles
that are sewed together in the 3D mesh.
Having .u; v/ maps naturally leads to a technique called flat panelling. Flat panelling refers
to the tailoring process where flat pieces of cloth are sewn together to create garments. ey will
always have the tendency to unfold back into this flat panel, but of course they can’t …, because
they’re stitched. Now, we do have the option to have a rest configuration that doesn’t want to
be flat by imposing rest-bend angles. is will be clear when discussing bend forces. e .u; v/
map for the dress example of Figure 2.1 is shown in Figure 7.2.
7.3 COMPUTING FORCES AND THEIR DERIVATIVES
Just like in Section 4.3, we’ll compute forces as the negative gradients of energy functions. For
the continuum approach, these energies are based on the triangle as a whole and not just the
edges as was the case in the mass-spring network. e energy functions E
c
.x/ are defined based