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

Collection-wide inputs and resource limits for simplifyConstraints(). More...

#include <mesh/constraintsimplifier.h>

Collaboration diagram for mesh::ConstraintSimplificationOptions:

Public Attributes

QVector< QPointF > protectedPoints
 Finite points in the planar frame that no shortcut may pass through or enclose between itself and the original path, kept at the policy's minimumClearance.
 
std::function< bool()> cancelled
 Optional cancellation poll, called synchronously at the start and about every 4096 work units; returning true ends the pass with the original features.
 
quint64 workBudget = 0
 Work-unit limit for the pass; 0 selects 256 per input vertex plus 100,000.
 
bool canonicalizeSharedEdges = true
 Simplify segments shared exactly by several features once, as canonical chains under the strictest owner policies (needs more than one feature).
 
quint64 maximumWorkspaceBytes = quint64(1) << 30
 Estimated byte limit for the shared-edge canonicalization records (1 GiB by default).
 

Detailed Description

Collection-wide inputs and resource limits for simplifyConstraints().

Member Data Documentation

◆ cancelled

std::function<bool()> mesh::ConstraintSimplificationOptions::cancelled

Optional cancellation poll, called synchronously at the start and about every 4096 work units; returning true ends the pass with the original features.

◆ canonicalizeSharedEdges

bool mesh::ConstraintSimplificationOptions::canonicalizeSharedEdges = true

Simplify segments shared exactly by several features once, as canonical chains under the strictest owner policies (needs more than one feature).

False simplifies every feature on its own against the common index.

◆ maximumWorkspaceBytes

quint64 mesh::ConstraintSimplificationOptions::maximumWorkspaceBytes = quint64(1) << 30

Estimated byte limit for the shared-edge canonicalization records (1 GiB by default).

◆ protectedPoints

QVector<QPointF> mesh::ConstraintSimplificationOptions::protectedPoints

Finite points in the planar frame that no shortcut may pass through or enclose between itself and the original path, kept at the policy's minimumClearance.

◆ workBudget

quint64 mesh::ConstraintSimplificationOptions::workBudget = 0

Work-unit limit for the pass; 0 selects 256 per input vertex plus 100,000.


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