Loading...
Searching...
No Matches
mesh::SimplificationChange Struct Reference

Outcome for one input feature; ConstraintSimplificationResult::changes is parallel to the input. More...

#include <mesh/constraintsimplifier.h>

Collaboration diagram for mesh::SimplificationChange:

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.
 

Detailed Description

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.

Member Data Documentation

◆ areaChange

double mesh::SimplificationChange::areaChange = 0

Rings only: |output area - input area| in squared XY units.

◆ budgetRetained

bool mesh::SimplificationChange::budgetRetained = false

The work budget, the workspace limit or cancellation stopped the pass, so the original geometry was kept.

◆ id

QString mesh::SimplificationChange::id

◆ maxDeviation

double mesh::SimplificationChange::maxDeviation = 0

Largest XY distance of a removed vertex from its accepted shortcut.

◆ maxZDeviation

double mesh::SimplificationChange::maxZDeviation = 0

Largest elevation error of a removed vertex against its accepted shortcut.

◆ rejectedShortcuts

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.

◆ removed

qsizetype mesh::SimplificationChange::removed = 0

Vertices removed (input minus output xy count); 0 when the feature is unchanged.

◆ rolledBack

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.

◆ sourceVertices

QVector<int> mesh::SimplificationChange::sourceVertices

Output-to-input vertex indices, increasing; a repeated closing vertex maps to the last.


The documentation for this struct was generated from the following file: