NL3D::CPatchUVLocator Class Reference

From a patch and UV coordinate in [0,OrderS], [0,OrderT], retrieve the appropriate coordinate in neighborhood. More...

#include <patchuv_locator.h>

List of all members.

Classes

struct  CUVBasis

Public Member Functions

void build (const CPatch *patchCenter, sint edgeCenter, CPatch::CBindInfo &bindInfo)
uint selectPatch (const NLMISC::CVector2f &uvIn)
void locateUV (const NLMISC::CVector2f &uvIn, uint patch, CPatch *&patchOut, NLMISC::CVector2f &uvOut)
bool sameEdgeOrder () const
 return true only if the 2 edges have same number of tiles.

Private Attributes

CPatch_CenterPatch
sint _CenterPatchEdge
sint _NPatchs
CPatch_NeighborPatch [4]
CUVBasis _NeighborBasis [4]
bool _SameEdgeOrder

Detailed Description

From a patch and UV coordinate in [0,OrderS], [0,OrderT], retrieve the appropriate coordinate in neighborhood.

Author:
Lionel Berenguier
Nevrax France
Date:
2001

Definition at line 43 of file patchuv_locator.h.


Member Function Documentation

void NL3D::CPatchUVLocator::build ( const CPatch patchCenter,
sint  edgeCenter,
CPatch::CBindInfo bindInfo 
)
void NL3D::CPatchUVLocator::locateUV ( const NLMISC::CVector2f uvIn,
uint  patch,
CPatch *&  patchOut,
NLMISC::CVector2f uvOut 
)
bool NL3D::CPatchUVLocator::sameEdgeOrder (  )  const [inline]

return true only if the 2 edges have same number of tiles.

bind 1/X case: return true only if ALL the adjacents patchs respect this rule. So you are sure that for all the src patch, one tile has exaclty one neighbor tile near him.

Definition at line 64 of file patchuv_locator.h.

References _SameEdgeOrder.

Referenced by NL3D::CZoneCornerSmoother::buildPatchBindInfo(), and NL3D::CPatch::computeNearBlockLightmap().

uint NL3D::CPatchUVLocator::selectPatch ( const NLMISC::CVector2f uvIn  ) 

Member Data Documentation

Definition at line 80 of file patchuv_locator.h.

Referenced by build(), and selectPatch().

Definition at line 81 of file patchuv_locator.h.

Referenced by build(), and selectPatch().

Definition at line 84 of file patchuv_locator.h.

Referenced by build(), and locateUV().

Definition at line 83 of file patchuv_locator.h.

Referenced by build(), and locateUV().

Definition at line 82 of file patchuv_locator.h.

Referenced by build(), locateUV(), and selectPatch().

Definition at line 85 of file patchuv_locator.h.

Referenced by build(), and sameEdgeOrder().


The documentation for this class was generated from the following files:

Generated on Thu Jan 7 08:30:07 2010 for NeL by  doxygen 1.6.1