Loading...
Searching...
No Matches
meshkit::plan::SimplificationChange Struct Reference

Per-feature outcome of simplifyConstraints(); changes are in input order. More...

#include <meshkit/constraints.hpp>

Collaboration diagram for meshkit::plan::SimplificationChange:

Public Attributes

Text id
 Copy of the feature's id.
 
std::ptrdiff_t removed = 0
 Vertices removed (input XY count minus output XY count); 0 when unchanged.
 
std::ptrdiff_t rejectedShortcuts = 0
 Candidate shortcuts rejected; each is split at its worst (or middle) vertex and both halves are retried.
 
double maxDeviation = 0
 Largest XY distance of a removed vertex from its accepted shortcut; 0 when nothing was removed or the edit was reverted.
 
double maxZDeviation = 0
 Largest Z deviation of a removed vertex from linear interpolation along its shortcut, in Z units; 0 when nothing was removed or the edit was reverted.
 
double areaChange = 0
 Rings: absolute area change in squared XY units; 0 for open lines and reverted edits.
 
bool budgetRetained = false
 The original geometry was kept because the work budget or workspace limit ran out, or the run was cancelled.
 
bool rolledBack = false
 An accepted edit was reverted: ring area/orientation limit failed, output shortcuts of different features intersected, or a feature in the same shared-segment component was reverted.
 
Vector< int > sourceVertices
 Input index of each output vertex; empty means identity.
 

Detailed Description

Per-feature outcome of simplifyConstraints(); changes are in input order.

Member Data Documentation

◆ areaChange

double meshkit::plan::SimplificationChange::areaChange = 0

Rings: absolute area change in squared XY units; 0 for open lines and reverted edits.

◆ budgetRetained

bool meshkit::plan::SimplificationChange::budgetRetained = false

The original geometry was kept because the work budget or workspace limit ran out, or the run was cancelled.

◆ id

Text meshkit::plan::SimplificationChange::id

Copy of the feature's id.

◆ maxDeviation

double meshkit::plan::SimplificationChange::maxDeviation = 0

Largest XY distance of a removed vertex from its accepted shortcut; 0 when nothing was removed or the edit was reverted.

◆ maxZDeviation

double meshkit::plan::SimplificationChange::maxZDeviation = 0

Largest Z deviation of a removed vertex from linear interpolation along its shortcut, in Z units; 0 when nothing was removed or the edit was reverted.

◆ rejectedShortcuts

std::ptrdiff_t meshkit::plan::SimplificationChange::rejectedShortcuts = 0

Candidate shortcuts rejected; each is split at its worst (or middle) vertex and both halves are retried.

◆ removed

std::ptrdiff_t meshkit::plan::SimplificationChange::removed = 0

Vertices removed (input XY count minus output XY count); 0 when unchanged.

◆ rolledBack

bool meshkit::plan::SimplificationChange::rolledBack = false

An accepted edit was reverted: ring area/orientation limit failed, output shortcuts of different features intersected, or a feature in the same shared-segment component was reverted.

◆ sourceVertices

Vector<int> meshkit::plan::SimplificationChange::sourceVertices

Input index of each output vertex; empty means identity.


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