mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-18 02:24:38 +00:00
Updated to the last changes in the vcg smooth.h
This commit is contained in:
parent
7ef7041a8b
commit
aea2b72dcc
@ -483,24 +483,24 @@ bool FilterUnsharp::applyFilter(QAction *filter, MeshDocument &md, RichParameter
|
||||
break;
|
||||
case FP_TWO_STEP_SMOOTH:
|
||||
{
|
||||
tri::Clean<CMeshO>::RemoveUnreferencedVertex(m.cm);
|
||||
tri::UpdateSelection<CMeshO>::VertexFromFaceStrict(m.cm);
|
||||
int stepSmoothNum = par.getInt("stepSmoothNum");
|
||||
// sigma==0 all is smoothed
|
||||
// sigma==1 nothing is smoothed
|
||||
float sigma = cos(math::ToRad(par.getFloat("normalThr")));
|
||||
if(sigma<0) sigma=0;
|
||||
tri::Clean<CMeshO>::RemoveUnreferencedVertex(m.cm);
|
||||
tri::UpdateSelection<CMeshO>::VertexFromFaceStrict(m.cm);
|
||||
int stepSmoothNum = par.getInt("stepSmoothNum");
|
||||
// sigma==0 all is smoothed
|
||||
// sigma==1 nothing is smoothed
|
||||
float sigma = cos(math::ToRad(par.getFloat("normalThr")));
|
||||
if(sigma<0) sigma=0;
|
||||
|
||||
int stepNormalNum = par.getInt("stepNormalNum");
|
||||
int stepFitNum = par.getInt("stepFitNum");
|
||||
int stepFitNum = par.getInt("stepFitNum");
|
||||
bool selectedFlag = par.getBool("Selected");
|
||||
for(int i=0;i<stepSmoothNum;++i)
|
||||
{
|
||||
tri::UpdateNormal<CMeshO>::PerFaceNormalized(m.cm);
|
||||
tri::Smooth<CMeshO>::VertexCoordPasoDobleFast(m.cm, stepNormalNum, sigma, stepFitNum,selectedFlag);
|
||||
}
|
||||
m.UpdateBoxAndNormals();
|
||||
for(int i=0;i<stepSmoothNum;++i)
|
||||
{
|
||||
tri::UpdateNormal<CMeshO>::PerFaceNormalized(m.cm);
|
||||
tri::Smooth<CMeshO>::VertexCoordPasoDoble(m.cm, stepNormalNum, sigma, stepFitNum,selectedFlag);
|
||||
}
|
||||
m.UpdateBoxAndNormals();
|
||||
}
|
||||
break;
|
||||
case FP_TAUBIN_SMOOTH :
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user