Skip to content.

InflateContour

Maps a contour according to a transform defined by the corrospondences of the faces of two homologous shapes.

Description

The InflateContour prgram is inverse of the application MapContour. Given a contour, presumed to be flattened by MapContour , and the original 3d surface and mapping file used by MapContour, the vertex coordinates of the contour are "inflated" from a 2d space into the original 3D space.

The program requires these inputs:

  1. A original shape input file.
  2. A file contains contour.
  3. Output file name.

Method

Each vertex of a contour is treated as follows:

  • The face of the 2D flatten surface (presumed to contain the contour) that contains the vertex is located.
  • For this face, find vertices of 3D 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