added "only to selection" for depth smoothing
This commit is contained in:
parent
0fb50ae0a7
commit
2d0e455712
|
@ -912,7 +912,7 @@ So if
|
|||
static void VertexCoordViewDepth(MeshType &m,
|
||||
const CoordType &viewpoint,
|
||||
const ScalarType alpha,
|
||||
int step, bool SmoothBorder = false)
|
||||
int step, bool SmoothSelected, bool SmoothBorder = false)
|
||||
{
|
||||
LaplacianInfo lpz;
|
||||
lpz.sum = CoordType(0, 0, 0);
|
||||
|
@ -961,6 +961,7 @@ So if
|
|||
|
||||
for (vi = m.vert.begin(); vi != m.vert.end(); ++vi)
|
||||
if (!(*vi).IsD() && TD[*vi].cnt > 0)
|
||||
if (!SmoothSelected || (*vi).IsS())
|
||||
{
|
||||
CoordType np = TD[*vi].sum / TD[*vi].cnt;
|
||||
CoordType d = (*vi).cP() - viewpoint;
|
||||
|
|
Loading…
Reference in New Issue