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

@ -37,7 +37,10 @@ namespace PolyVox
float getMaterial(void) const;
const Vector3DFloat& getNormal(void) const;
const Vector3DFloat& getPosition(void) const;
bool isEdgeVertex(void) const;
void setEdgeVertex(bool isEdgeVertex);
void setMaterial(float materialToSet);
void setNormal(const Vector3DFloat& normalToSet);
void setPosition(const Vector3DFloat& positionToSet);
@ -46,6 +49,7 @@ namespace PolyVox
Vector3DFloat position;
Vector3DFloat normal;
float material;
bool m_bIsEdgeVertex;
};