Work on MeshDecimator.
This commit is contained in:
@ -28,6 +28,7 @@ freely, subject to the following restrictions:
|
||||
#include "GradientEstimators.h"
|
||||
#include "MaterialDensityPair.h"
|
||||
#include "SurfaceExtractor.h"
|
||||
#include "MeshDecimator.h"
|
||||
|
||||
#include "Mesh.h"
|
||||
|
||||
@ -125,6 +126,9 @@ void OpenGLWidget::setVolume(PolyVox::Volume<MaterialDensityPair44>* volData)
|
||||
|
||||
//mesh->decimate(0.999f);
|
||||
|
||||
MeshDecimator<PositionMaterialNormal> decimator(mesh.get());
|
||||
decimator.execute();
|
||||
|
||||
//mesh->generateAveragedFaceNormals(true);
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
Reference in New Issue
Block a user