| genre | WEMProcessing |
| status | stable |
| author | Bart De Dobbelaer |
| package | MeVisLab/Standard |
| dll | MLWEMModules |
| definition | MLWEMModules.def |
| see also | WEMSubdivide |
| keywords | WEM, collapse, reduce, reduction, simplification, quadric, error, metric |
The module WEMReducePolygons reduces the number of primitives of the input WEM by collapsing edges using a quadric error metric to decide which edges to collapse first.
The edge collapse method collapses an edge so that its former head and tail nodes fall together (and only one of them remains in the mesh). When collapsing an edge, its two adjacent faces are also removed from the mesh.
Each collapse operation introduces an error in the resulting mesh. It is feasible to first collapse those edges that introduce as little error as possible in the resulting mesh. To describe the error introduced, the Quadric Error Metric is used. More information on the topic can be found here.
For a WEMIsoSurface generated mesh, the reduction percentage can easily be set to 70% without losing geometrical information.
| Apply: Trigger | isProcessing: Bool | Smooth: Bool |
| Auto Apply: Bool | Label: String | triangulationMode: Enum |
| Auto Update: Bool | listenToFinishNotifications: Bool | Use edge length weights: Bool |
| autoClear: Bool | Modify Attributes: Bool | Use Expert Mode: Bool |
| Description: String | numEdgeCollapses: Integer | Use face area weights: Bool |
| editable: Bool | progress: Float | Use node valence weights: Bool |
| elapsedTime: Float | reduction: Integer | useFaceDiffuseColor: Bool |
| forwardRepaintNotifications: Bool | Reduction Percentage: Integer | useInputWEMToCreateOutputWEM: Bool |
| forwardSelectionNotifications: Bool | removePreviousWEMs: Bool | usePolygonOffset: Bool |
| id: Integer | show: Bool | Vertex Placement: Enum |
If checked, the module will reduce the polygons of the input WEM on any change of a parameter.
If checked, the module will reduce the polygons of the input WEM if it changes.
If pressed, the module reduces the number of polygons of the input WEM.
Sets a label string stored in the output WEM if Modify Attributes is checked.
Sets a description string stored in the output WEM if Modify Attributes is checked.
If checked, the content of the Description and the Label is stored in the output WEM.
Sets the amount of reduction that is required. The parameter ranges from 0 to 100 percent, although very small and very large reduction rates are not useful.
If checked, the generated mesh will be smoothed.
The resulting error will be a little larger - removing more features - but the quality of the mesh will improve.
If checked, advanced options are available.
The smooth option corresponds to a middle vertex placement while using the weight factors. Not smoothing corresponds to an optimal vertex placement while not using the weight factors. When the expert mode is used, options can be combined to get a better result.
Defines the vertex placement mode.
Although the resulting Quadric Error is clearly larger in the case of Middle placement, the resulting mesh tends to be smoother.
Values:
| Title | Name | Description |
|---|---|---|
| Optimal | Optimal | New node will be inserted in such a way that the resulting Quadric Error is as small as possible. |
| Middle | Middle | New nodes are just inserted in the middle between the former head and tail node. |
If checked, edges between triangles with a small area are collapsed first. Uniform face areas are encouraged this way.