Outcome for one input feature; ConstraintSimplificationResult::changes is parallel to the input. More...
#include <mesh/constraintsimplifier.h>
Public Attributes | |
| QString | id |
| Copy of SimplificationFeature::id. | |
| qsizetype | removed = 0 |
| Vertices removed (input minus output xy count); 0 when the feature is unchanged. | |
| qsizetype | rejectedShortcuts = 0 |
| Candidate shortcuts refused by a deviation or topology check; each refusal keeps one more vertex and retries both halves. | |
| double | maxDeviation = 0 |
| Largest XY distance of a removed vertex from its accepted shortcut. | |
| double | maxZDeviation = 0 |
| Largest elevation error of a removed vertex against its accepted shortcut. | |
| double | areaChange = 0 |
| Rings only: |output area - input area| in squared XY units. | |
| bool | budgetRetained = false |
| The work budget, the workspace limit or cancellation stopped the pass, so the original geometry was kept. | |
| bool | rolledBack = false |
| A simplification was reverted: the ring area limits failed or the ring area changed sign or vanished, or a new shortcut intersects another output segment (both owners revert). | |
| QVector< int > | sourceVertices |
| Output-to-input vertex indices, increasing; a repeated closing vertex maps to the last. | |
Outcome for one input feature; ConstraintSimplificationResult::changes is parallel to the input.
The deviation and area statistics describe accepted removals and are zero when the feature is unchanged, rolled back or retained.
| double mesh::SimplificationChange::areaChange = 0 |
Rings only: |output area - input area| in squared XY units.
| bool mesh::SimplificationChange::budgetRetained = false |
The work budget, the workspace limit or cancellation stopped the pass, so the original geometry was kept.
| QString mesh::SimplificationChange::id |
Copy of SimplificationFeature::id.
| double mesh::SimplificationChange::maxDeviation = 0 |
Largest XY distance of a removed vertex from its accepted shortcut.
| double mesh::SimplificationChange::maxZDeviation = 0 |
Largest elevation error of a removed vertex against its accepted shortcut.
| qsizetype mesh::SimplificationChange::rejectedShortcuts = 0 |
Candidate shortcuts refused by a deviation or topology check; each refusal keeps one more vertex and retries both halves.
A shared chain's count is added to every owner.
| qsizetype mesh::SimplificationChange::removed = 0 |
Vertices removed (input minus output xy count); 0 when the feature is unchanged.
| bool mesh::SimplificationChange::rolledBack = false |
A simplification was reverted: the ring area limits failed or the ring area changed sign or vanished, or a new shortcut intersects another output segment (both owners revert).
A failed ring reverts every simplified owner in its shared component.
| QVector<int> mesh::SimplificationChange::sourceVertices |
Output-to-input vertex indices, increasing; a repeated closing vertex maps to the last.