Functions
contrib/mul/msm/msm_reflect_shape.cxx File Reference

Functions to reflect shapes in various ways. More...

#include "msm_reflect_shape.h"
#include <vcl_cassert.h>

Go to the source code of this file.

Functions

void msm_reflect_shape_along_x (const msm_points &points, const vcl_vector< unsigned > &sym_pts, msm_points &new_points, double ax)
 Reflect points in the line x=ax, then re-number.

Detailed Description

Functions to reflect shapes in various ways.

Renumbering necessary for symmetric shapes. For instance, if reflecting a face, the left eye becomes the right eye. This would mangle a model, so we renumber.

Author:
Tim Cootes

Definition in file msm_reflect_shape.cxx.


Function Documentation

void msm_reflect_shape_along_x ( const msm_points points,
const vcl_vector< unsigned > &  sym_pts,
msm_points new_points,
double  ax 
)

Reflect points in the line x=ax, then re-number.

On exit, new_points[i] = points[relabel[i]] reflected in x=ax

Definition at line 14 of file msm_reflect_shape.cxx.