MapContour
Maps a contour according to a transform defined by the corrospondences of the faces of two homologous shapes.
Description
One approach to three dimensional surface warping first transforms the surface
into a two dimensional representation. The warp is then calculated and applied to
the two dimensional analogue of the original surface. For warping methods
that use pairs of contours to guide the warp, the contours must also be transformed
into the same two dimensional space as the surface.
MapContour carries out this transformation, for the specific warp methods defined by the
ShapeTools elastic warp protocol (2008). Given a surface, and a contour
whose vertices lay on, or near, the faces of that surface,
MapContour will map (flatten) the
contour onto the 2d plane containing the mapped (flattened) surface.
Method
Each vertex of a contour is treated as follows:
- The face of the 3D surface (presumed to contain the contour) that contains the vertex is located.
- For this face, find vertices of flatten face which is transformed from the original.
- Using vertices of the original face and vertices of flatten face, find transformation.
- Transform the point on the contour using this transformation.
Project Components
See Also