Functions to reflect shapes in various ways. More...
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. | |
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.
Definition in file msm_reflect_shape.cxx.
| 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.
1.7.5.1