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 
20 ML_START_NAMESPACE
21 
23 
25 namespace 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 
44  MLWEM_EXPORT void smoothNodes(WEMPatch* wemPatch, const WEMSmoothingParameters& parameters, ProgressField* progressFld=nullptr);
46  MLWEM_EXPORT void smoothNodeNormals(WEMPatch* wemPatch, unsigned int numSmoothingPasses, bool useBorderPreservation, ProgressField* progressFld=nullptr);
47 };
48 
50 
51 ML_END_NAMESPACE
#define MLWEM_EXPORT
Definition: MLWEMSystem.h:18
Field to encapsulate an increasing float value from range [0,1].
Definition: mlFields.h:744
Base class for triangle and quad patches.
Definition: WEMPatch.h:48
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.