| 
    MeVisLab Toolbox Reference
    
   | 
 
#include "MLWEMSystem.h"#include <algorithm>#include <vector>#include <string>#include <mlModuleIncludes.h>#include <mlModule.h>#include <fstream>#include <mlUnicode.h>Go to the source code of this file.
Classes | |
| struct | ml::WEMPersistenceParameters | 
| Structure to gather persistence parameters.  More... | |
| struct | ml::WEMProgressUpdater | 
| Helper struct for updating the progress bar while loading/saving.  More... | |
| struct | ml::WEMReadParameters | 
| Helper struct for bundling parameters to keep method interfaces small.  More... | |
Namespaces | |
| namespace | ml | 
| Main documentation file for ML users and developers.  | |
Macros | |
| #define | NULL_VEC Vector3(0,0,0) | 
| #define | UNIT_VEC Vector3(0,1,0) | 
| #define | WEM_PRINT(msg) { std::cout << msg << std::endl; }; | 
| Defines an output routine for debug output (short, without output of the file name and the line).   | |
| #define | WEM_ERROR(msg) { WEM_PRINT("WEM ERROR: " << msg << " in file " << __FILE__ << ", line: " << __LINE__); }; | 
| Defines an output routine for error messages.   | |
| #define | WEM_WARNING(msg) { WEM_PRINT("WEM WARNING: " << msg << " in file " << __FILE__ << ", line: " << __LINE__); }; | 
| Defines an output routine for warning messages.   | |
| #define | WEM_DEBUG(msg) { WEM_PRINT("WEM Debug: " << msg << " in file " << __FILE__ << ", line: " << __LINE__); }; | 
| Defines an output routine for debug messages.   | |
| #define | WEM_MODULE_ERROR(function, msg) { mlError(function) << whoAmI() << ": " << msg; }; | 
| Defines a macro to output module errors.   | |
| #define | WEM_MODULE_WARNING(function, msg) { mlWarning(function) << whoAmI() << ": " << msg; }; | 
| Defines a macro to output module warnings.   | |
| #define | WEM_MODULE_INFO(function, msg) { mlInfo(function) << whoAmI() << ": " << msg; }; | 
| Defines a macro to output module infos.   | |
| #define | NORMALIZE_VECTOR3(v) v.normalize() | 
| Defines a normalization method for SML (Vector3) vectors.   | |
Variables | |
| const double | WEM_EPSILON = 0.00001 | 
| Epsilon value used in Vector3 comparisons.   | |
| const double | WEM_LARGE_EPSILON = 0.0002 | 
| Epsilon value used in Vector3 comparisons when precision is an issue.   | |
| const int | WEM_VERSION = 7 | 
| Current version of WEM library.   | |
| const double | WEM_GOLDEN_PERIMETER = 4.5590141139 | 
| Golden perimeter.   | |
| const unsigned int | WEM_MAX_VALENCE = 30 | 
| Maximum edge and face valence for nodes.   | |
| const unsigned int | WEM_DEFAULT_VALENCE = 16 | 
| Default vector size of edge and face valence for nodes.   | |
| const unsigned int | WEM_MAX_NUM_NODES = 100 | 
| Maximum number of nodes for polygons.   | |
| const double | WEM_NODE_VALENCE3_THRESHOLD = 0.35 | 
| Angle threshold for nodes with valence 3 removal for default check (~70 degrees).   | |
| const double | WEM_NODE_VALENCE3_NEIGHBORHOOD_THRESHOLD = 0.6 | 
| Angle threshold for nodes with valence 3 removal for neighborhood check (~50 degrees).   | |
| const std::string | WEM_SINGLE_COLORED_FACES = "WEMSingleColoredFaces" | 
| Name of the PVL for faces where a value of -1 signals to use the nodes' PVL, all other values are to be used as a look-up into the LUT.   | |
| const int | ml::WEM_PATCH_ID_ALL = -1 | 
| Patch Id meaning: all patches.   | |
| #define NORMALIZE_VECTOR3 | ( | v | ) | v.normalize() | 
Defines a normalization method for SML (Vector3) vectors.
Definition at line 77 of file MLWEMIncludes.h.
| #define NULL_VEC Vector3(0,0,0) | 
Definition at line 57 of file MLWEMIncludes.h.
| #define UNIT_VEC Vector3(0,1,0) | 
Definition at line 58 of file MLWEMIncludes.h.
| #define WEM_DEBUG | ( | msg | ) | { WEM_PRINT("WEM Debug: " << msg << " in file " << __FILE__ << ", line: " << __LINE__); }; | 
Defines an output routine for debug messages.
Definition at line 67 of file MLWEMIncludes.h.
| #define WEM_ERROR | ( | msg | ) | { WEM_PRINT("WEM ERROR: " << msg << " in file " << __FILE__ << ", line: " << __LINE__); }; | 
Defines an output routine for error messages.
Definition at line 63 of file MLWEMIncludes.h.
| #define WEM_MODULE_ERROR | ( | function, | |
| msg | |||
| ) | { mlError(function) << whoAmI() << ": " << msg; }; | 
Defines a macro to output module errors.
Definition at line 70 of file MLWEMIncludes.h.
| #define WEM_MODULE_INFO | ( | function, | |
| msg | |||
| ) | { mlInfo(function) << whoAmI() << ": " << msg; }; | 
Defines a macro to output module infos.
Definition at line 74 of file MLWEMIncludes.h.
| #define WEM_MODULE_WARNING | ( | function, | |
| msg | |||
| ) | { mlWarning(function) << whoAmI() << ": " << msg; }; | 
Defines a macro to output module warnings.
Definition at line 72 of file MLWEMIncludes.h.
| #define WEM_PRINT | ( | msg | ) | { std::cout << msg << std::endl; }; | 
Defines an output routine for debug output (short, without output of the file name and the line).
Definition at line 61 of file MLWEMIncludes.h.
| #define WEM_WARNING | ( | msg | ) | { WEM_PRINT("WEM WARNING: " << msg << " in file " << __FILE__ << ", line: " << __LINE__); }; | 
Defines an output routine for warning messages.
Definition at line 65 of file MLWEMIncludes.h.
| const unsigned int WEM_DEFAULT_VALENCE = 16 | 
Default vector size of edge and face valence for nodes.
Definition at line 37 of file MLWEMIncludes.h.
| const double WEM_EPSILON = 0.00001 | 
Epsilon value used in Vector3 comparisons.
Definition at line 22 of file MLWEMIncludes.h.
Referenced by ml::WEMBoundingBox::isScalable().
| const double WEM_GOLDEN_PERIMETER = 4.5590141139 | 
Golden perimeter.
Definition at line 31 of file MLWEMIncludes.h.
| const double WEM_LARGE_EPSILON = 0.0002 | 
Epsilon value used in Vector3 comparisons when precision is an issue.
Definition at line 25 of file MLWEMIncludes.h.
| const unsigned int WEM_MAX_NUM_NODES = 100 | 
Maximum number of nodes for polygons.
Definition at line 40 of file MLWEMIncludes.h.
| const unsigned int WEM_MAX_VALENCE = 30 | 
Maximum edge and face valence for nodes.
Definition at line 34 of file MLWEMIncludes.h.
| const double WEM_NODE_VALENCE3_NEIGHBORHOOD_THRESHOLD = 0.6 | 
Angle threshold for nodes with valence 3 removal for neighborhood check (~50 degrees).
Definition at line 46 of file MLWEMIncludes.h.
| const double WEM_NODE_VALENCE3_THRESHOLD = 0.35 | 
Angle threshold for nodes with valence 3 removal for default check (~70 degrees).
Definition at line 43 of file MLWEMIncludes.h.
| const std::string WEM_SINGLE_COLORED_FACES = "WEMSingleColoredFaces" | 
Name of the PVL for faces where a value of -1 signals to use the nodes' PVL, all other values are to be used as a look-up into the LUT.
Also, nodes and edges adjacent to a face with a value != 1 should not be smoothed, collapsed, or otherwise modified.
Definition at line 52 of file MLWEMIncludes.h.
| const int WEM_VERSION = 7 | 
Current version of WEM library.
Definition at line 28 of file MLWEMIncludes.h.