MeVisLab Toolbox Reference
WEMNodeOp.h
Go to the documentation of this file.
1/*************************************************************************************
2**
3** Copyright 2007, MeVis Medical Solutions AG
4**
5** The user may use this file in accordance with the license agreement provided with
6** the Software or, alternatively, in accordance with the terms contained in a
7** written agreement between the user and MeVis Medical Solutions AG.
8**
9** For further information use the contact form at https://www.mevislab.de/contact
10**
11**************************************************************************************/
12
13#pragma once
14
15#include "WEMBase/WEM.h"
16
19
21
23
25namespace WEMNodeOp
26{
28 {
30 {
31 numSmoothingPasses = 10;
32 smoothingFactor = 0.2f;
33 useVolumePreservation = true;
34 useBorderPreservation = true;
35 }
36
37 unsigned int numSmoothingPasses;
41 };
42
46 MLWEM_EXPORT void smoothNodeNormals(WEMPatch* wemPatch, unsigned int numSmoothingPasses, bool useBorderPreservation, ProgressField* progressFld=nullptr);
47};
48
50
#define MLWEM_EXPORT
Definition MLWEMSystem.h:18
Field to encapsulate an increasing float value from range [0,1].
Definition mlFields.h:491
Base class for triangle and quad patches.
Definition WEMPatch.h:48
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
MLWEM_EXPORT void smoothNodes(WEMPatch *wemPatch, const WEMSmoothingParameters &parameters, ProgressField *progressFld=nullptr)
Smooths the nodes by a Laplacian scheme.
MLWEM_EXPORT void smoothNodeNormals(WEMPatch *wemPatch, unsigned int numSmoothingPasses, bool useBorderPreservation, ProgressField *progressFld=nullptr)
Smooths the nodes' normals.