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

Qt form of meshkit::plan::ConstraintAuditOptions: pins, cancellation and resource limits for the constraint audits, copied field by field into the native options. More...

#include <mesh/constraintaudit.h>

Collaboration diagram for mesh::ConstraintAuditOptions:

Public Attributes

QVector< QPointF > protectedPoints
 XY pins that simplified shortcuts must not cross, sweep over or (with the feature's minimumClearance) approach; a non-finite pin is a violation.
 
std::function< bool()> cancelled
 Optional; polled before work starts and every 4096 work units.
 
quint64 workBudget = 0
 Work units allowed; 0 selects 256 per input item plus 100,000 (items: original and candidate vertices and pins, or constraint vertices, delivered edges and cells).
 
quint64 maximumWorkspaceBytes = quint64(1) << 30
 Estimated workspace limit in bytes (default 1 GiB); exceeding it sets resourceLimited.
 
int maximumExamples = 20
 Violations kept in ConstraintAuditReport::examples, clamped to [0, 1000]; all are still counted.
 

Detailed Description

Qt form of meshkit::plan::ConstraintAuditOptions: pins, cancellation and resource limits for the constraint audits, copied field by field into the native options.

Member Data Documentation

◆ cancelled

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

Optional; polled before work starts and every 4096 work units.

Returning true stops the audit with cancelled set; the report is then incomplete and never ok.

◆ maximumExamples

int mesh::ConstraintAuditOptions::maximumExamples = 20

Violations kept in ConstraintAuditReport::examples, clamped to [0, 1000]; all are still counted.

Default 20.

◆ maximumWorkspaceBytes

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

Estimated workspace limit in bytes (default 1 GiB); exceeding it sets resourceLimited.

Not a limit on total process memory.

◆ protectedPoints

QVector<QPointF> mesh::ConstraintAuditOptions::protectedPoints

XY pins that simplified shortcuts must not cross, sweep over or (with the feature's minimumClearance) approach; a non-finite pin is a violation.

Used only by auditConstraintSimplification().

◆ workBudget

quint64 mesh::ConstraintAuditOptions::workBudget = 0

Work units allowed; 0 selects 256 per input item plus 100,000 (items: original and candidate vertices and pins, or constraint vertices, delivered edges and cells).

Exhaustion sets resourceLimited.


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