Vertices now know whether they are on the edge of an indexed surface patch. This allows improved smoothing.

This commit is contained in:
David Williams
2009-07-23 16:54:46 +00:00
parent ab906a03f6
commit e5d38b597e
6 changed files with 36 additions and 20 deletions

View File

@ -53,7 +53,7 @@ namespace PolyVox
void clear(void);
const bool isEmpty(void) const;
void smoothPositions(float fAmount, uint8_t uNoRequiredUses = 0);
void smoothPositions(float fAmount, bool bIncludeEdgeVertices = false);
void sumNearbyNormals(bool bNormaliseResult = true);
POLYVOX_SHARED_PTR<IndexedSurfacePatch> extractSubset(std::set<uint8_t> setMaterials);