User Documentation
Centre for Vision, Speech & Signal Processing
DEVELOP IN NAMESPACE AMMA TREE ROOT AMMA SEARCH AMMA HOME
 

  PUBLIC
PointMapperC::PointMapperC(TriSetC &)
PointMapperC::Rebuild3DPoint(const DetailPointC &)
PointMapperC::MapPointToTriangle(const Point3dC &,IntT,DetailPointC &,MapMode)
PointMapperC::MapPointToBase(const Point3dC &,MapMode)
PointMapperC::SetBaseMesh(TriSetC &)
PointMapperC
 
A class which maps points.
 
include "amma/PointMapper.hh"
User Level:Default
Library: DispMap
Example: gendispmap.cc genmtri.cc
Section: 3D Surface.Displacement Mapping
In Scope:std

Comments:
This class can map points in one mesh onto another mesh. It is used in conjunction with DetailLayerC. This is a small object.

Enumerated types:
enum MapMode { MAP_BASIC, MAP_COMPLEX } ;
Mapping Modes
Each of these represents a different point mapping mode, as used in MapPointToTriangle.
MAP_BASIC
Standard mapping mode.
MAP_COMPLEX
Standard mapping mode with complex number support.


Variables:
Methods:
PointMapperC(TriSetC & oBase)
Constructor
Creates a new point mapper which will map points to and from the passed TriSetC.

Point3dC Rebuild3DPoint(const DetailPointC & dpPoint)
Rebuild a 3D point.
This will rebuild a 3D point from the passed DetailPointC, using the stored TriSetC.

BooleanT MapPointToTriangle(const Point3dC & pPoint,IntT iTriangle,DetailPointC & dpPoint,MapMode eMode = MAP_BASIC)
Map a 3D point to a particular triangle.
The point is mapped to the specified triangle in the base mesh. This is a wrapper around a number of internal mapping functions, each of which implements a different mapping mode (See MapMode above). Depending on the reason for use, different mapping algorithms will be appropriate. Each should give the same results, however. Result is returned in the dpPoint parameter. Return value is TRUE is successful, FALSE if mapping failed.

DetailPointC MapPointToBase(const Point3dC & pPoint,MapMode eMode = MAP_BASIC)
Map a 3D point to the base mesh.
The point is mapped to it's appropriate triangle in the base mesh. This is a wrapper around a number of internal mapping functions, each of which implements a different mapping mode (See MapMode above). Depending on the reason for use, different mapping algorithms will be appropriate. Each should give the same results in simple cases, however.

void SetBaseMesh(TriSetC & oBase)
Changes or sets the base mesh used by the point mapper.


Programmer: James Smith, Documentation by CxxDoc: Tue Mar 20 10:48:08 2001