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

Output of simplifyConstraints(); features and changes are parallel to the input. More...

#include <mesh/constraintsimplifier.h>

Collaboration diagram for mesh::ConstraintSimplificationResult:

Public Attributes

bool ok = false
 True when the pass finished, also when exhausted limits kept the originals (see SimplificationChange::budgetRetained).
 
bool cancelled = false
 Cancellation was observed; ok is false and the features are the originals.
 
QString error
 English reason when ok is false without cancellation; otherwise empty.
 
QVector< SimplificationFeature > features
 Output features; the originals on failure.
 
QVector< SimplificationChange > changes
 One outcome per input feature.
 
quint64 sharedSegments = 0
 Distinct segments owned by more than one feature; counted only by the shared-edge path, 0 otherwise.
 
quint64 sharedChains = 0
 Canonical chains built from shared segments; counted only by the shared-edge path, 0 otherwise.
 
quint64 workUsed = 0
 Work units consumed, including shared-edge indexing.
 

Detailed Description

Output of simplifyConstraints(); features and changes are parallel to the input.

Member Data Documentation

◆ cancelled

bool mesh::ConstraintSimplificationResult::cancelled = false

Cancellation was observed; ok is false and the features are the originals.

◆ changes

QVector<SimplificationChange> mesh::ConstraintSimplificationResult::changes

One outcome per input feature.

◆ error

QString mesh::ConstraintSimplificationResult::error

English reason when ok is false without cancellation; otherwise empty.

◆ features

QVector<SimplificationFeature> mesh::ConstraintSimplificationResult::features

Output features; the originals on failure.

◆ ok

bool mesh::ConstraintSimplificationResult::ok = false

True when the pass finished, also when exhausted limits kept the originals (see SimplificationChange::budgetRetained).

False on invalid input or cancellation.

◆ sharedChains

quint64 mesh::ConstraintSimplificationResult::sharedChains = 0

Canonical chains built from shared segments; counted only by the shared-edge path, 0 otherwise.

◆ sharedSegments

quint64 mesh::ConstraintSimplificationResult::sharedSegments = 0

Distinct segments owned by more than one feature; counted only by the shared-edge path, 0 otherwise.

◆ workUsed

quint64 mesh::ConstraintSimplificationResult::workUsed = 0

Work units consumed, including shared-edge indexing.


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