|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NL3D::CZoneCornerSmoother Class ReferenceA class used to setup CornerSmoothFlag in CPatch.
More...
#include <zone_corner_smoother.h>
List of all members.
Detailed Description
A class used to setup CornerSmoothFlag in CPatch.
NB: it works with a compiled CZone (ie added in a landscape, and got with landscape->getZone()). NB: it changes values directly in CPatch (which it should not be permitted...), but don't except see the changes in realtime. -
Author:
-
Lionel Berenguier , Nevrax France
-
Date:
-
2001
Definition at line 51 of file zone_corner_smoother.h.
Member Typedef Documentation
typedef TIdVertexMap::iterator NL3D::CZoneCornerSmoother::ItIdVertexMap [private]
|
|
typedef TVertexMap::iterator NL3D::CZoneCornerSmoother::ItVertexMap [private]
|
|
typedef std::map<const CTessVertex *, sint> NL3D::CZoneCornerSmoother::TIdVertexMap [private]
|
|
Constructor & Destructor Documentation
NL3D::CZoneCornerSmoother::CZoneCornerSmoother |
( |
|
) |
|
|
Member Function Documentation
void NL3D::CZoneCornerSmoother::buildPatchBindInfo |
( |
CPatch & |
pa, |
|
|
const CZone::CPatchConnect & |
pc, |
|
|
bool |
smoothEdge[4], |
|
|
bool |
cornerOnBind[4] |
|
) |
[private] |
|
void NL3D::CZoneCornerSmoother::computeAllCornerSmoothFlags |
( |
CZone * |
zone, |
|
|
std::vector< CZone * > |
neighborZones |
|
) |
|
|
|
the doit method.
this Zone and his 8 neighbors should be added into a landscape. this method call setCornerSmoothFlag() on all CPatch of the zone. All corner smooth are set to false but if:
- the corner is a vertex on a bind 1/X OR the vertex has exaclty 4 patch around him. AND
- All edges sharing this corner must be smoothed getSmoothFlag()==true. AND
- All edges sharing this corner must be "SameEdgeOrder", ie the patchs sharing this edge must have same number of tiles along this edge.
This is important for noise computing, and lighting.
Definition at line 134 of file zone_corner_smoother.cpp.
References buildPatchBindInfo, IdVertexMap, ItIdVertexMap, nlassert, updateVertex, and VertexMap. |
void NL3D::CZoneCornerSmoother::updateVertex |
( |
uint |
idVert, |
|
|
uint |
corner, |
|
|
bool |
smoothEdge[4], |
|
|
bool |
cornerOnBind[4] |
|
) |
[private] |
|
Member Data Documentation
TIdVertexMap NL3D::CZoneCornerSmoother::IdVertexMap [private]
|
|
TVertexMap NL3D::CZoneCornerSmoother::VertexMap [private]
|
|
The documentation for this class was generated from the following files:
|
|