Added new mesh smoothing algorithm.

This commit is contained in:
David Williams
2009-04-08 22:07:16 +00:00
parent 3c5e2e6202
commit 6d72169e11
5 changed files with 58 additions and 2 deletions

View File

@ -55,7 +55,7 @@ namespace PolyVox
int32_t m_iTimeStamp;
private:
public:
std::vector<uint32_t> m_vecTriangleIndices;
std::vector<SurfaceVertex> m_vecVertices;
};

View File

@ -33,6 +33,7 @@ namespace PolyVox
{
POLYVOXCORE_API void smoothRegionGeometry(Volume<uint8_t>* volumeData, IndexedSurfacePatch& isp);
POLYVOXCORE_API void adjustDecimatedGeometry(Volume<uint8_t>* volumeData, IndexedSurfacePatch& isp, uint8_t val);
POLYVOXCORE_API IndexedSurfacePatch getSmoothedSurface(IndexedSurfacePatch ispInput);
}
#endif

View File

@ -44,7 +44,7 @@ namespace PolyVox
std::string tostring(void) const;
private:
public:
Vector3DFloat position;
Vector3DFloat normal;
float material;