restored vertex perturbation in the voronoi remesher
This commit is contained in:
parent
abd332b6dc
commit
bb87d68927
|
@ -114,13 +114,13 @@ class VoronoiProcessing
|
|||
typedef typename MeshType::FaceContainer FaceContainer;
|
||||
typedef typename tri::Geodesic<MeshType>::VertDist VertDist;
|
||||
|
||||
static math::MarsenneTwisterRNG &RandomGenerator()
|
||||
{
|
||||
static math::MarsenneTwisterRNG rnd;
|
||||
return rnd;
|
||||
}
|
||||
|
||||
public:
|
||||
static math::MarsenneTwisterRNG &RandomGenerator()
|
||||
{
|
||||
static math::MarsenneTwisterRNG rnd;
|
||||
return rnd;
|
||||
}
|
||||
|
||||
typedef typename MeshType::template PerVertexAttributeHandle<VertexPointer> PerVertexPointerHandle;
|
||||
typedef typename MeshType::template PerVertexAttributeHandle<bool> PerVertexBoolHandle;
|
||||
|
|
|
@ -430,12 +430,13 @@ protected:
|
|||
|
||||
// TODO: rimettere a posto
|
||||
// restricted relaxation with fixed points
|
||||
// vpp.seedPerturbationProbability = 0.2f; // old values
|
||||
// vpp.seedPerturbationAmount = 0.005f;
|
||||
// Voronoi::RestrictedVoronoiRelaxing(baseMesh, seedPointVec, seedFixedVec, VoroRelaxationStep, vpp);
|
||||
// vpp.seedPerturbationProbability = 0.0f;
|
||||
// Voronoi::RestrictedVoronoiRelaxing(baseMesh, seedPointVec, seedFixedVec, VoroRelaxationStep/2, vpp);
|
||||
Voronoi::RandomGenerator().initialize(5489u);
|
||||
vpp.seedPerturbationProbability = 0.2f;
|
||||
vpp.seedPerturbationAmount = 0.005f;
|
||||
Voronoi::RestrictedVoronoiRelaxing(baseMesh, seedPointVec, seedFixedVec, VoroRelaxationStep, vpp);
|
||||
vpp.seedPerturbationProbability = 0.0f;
|
||||
Voronoi::RestrictedVoronoiRelaxing(baseMesh, seedPointVec, seedFixedVec, VoroRelaxationStep/2, vpp);
|
||||
// Voronoi::RestrictedVoronoiRelaxing(baseMesh, seedPointVec, seedFixedVec, VoroRelaxationStep, vpp);
|
||||
|
||||
|
||||
#ifdef DEBUG_VORO
|
||||
|
|
Loading…
Reference in New Issue