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

Pins, cancellation and resource limits for simplifyConstraints(). More...

#include <meshkit/constraints.hpp>

Collaboration diagram for meshkit::plan::ConstraintSimplificationOptions:

Public Attributes

Vector< Point2 > protectedPoints
 Finite XY points a shortcut must not pass through (except at an endpoint), sweep over or (with minimumClearance) approach.
 
std::function< bool()> cancelled
 Optional; polled before work starts and every 4096 work units.
 
std::uint64_t workBudget = 0
 Work units allowed; 0 selects 256 per input vertex plus 100,000.
 
bool canonicalizeSharedEdges = true
 True (default): with several features, exact shared segments are simplified once as chains (detail::simplifySharedConstraints()).
 
std::uint64_t maximumWorkspaceBytes = std::uint64_t(1) << 30
 Estimated shared-edge workspace limit in bytes (default 1 GiB); exceeding it keeps every original feature.
 

Detailed Description

Pins, cancellation and resource limits for simplifyConstraints().

Member Data Documentation

◆ cancelled

std::function<bool()> meshkit::plan::ConstraintSimplificationOptions::cancelled

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

Returning true ends the call with cancelled set, ok false and the original features.

◆ canonicalizeSharedEdges

bool meshkit::plan::ConstraintSimplificationOptions::canonicalizeSharedEdges = true

True (default): with several features, exact shared segments are simplified once as chains (detail::simplifySharedConstraints()).

False: each feature is simplified separately, still checked against all original geometry.

◆ maximumWorkspaceBytes

std::uint64_t meshkit::plan::ConstraintSimplificationOptions::maximumWorkspaceBytes = std::uint64_t(1) << 30

Estimated shared-edge workspace limit in bytes (default 1 GiB); exceeding it keeps every original feature.

Not a limit on total process memory.

◆ protectedPoints

Vector<Point2> meshkit::plan::ConstraintSimplificationOptions::protectedPoints

Finite XY points a shortcut must not pass through (except at an endpoint), sweep over or (with minimumClearance) approach.

A non-finite point fails the call.

◆ workBudget

std::uint64_t meshkit::plan::ConstraintSimplificationOptions::workBudget = 0

Work units allowed; 0 selects 256 per input vertex plus 100,000.

Exhaustion keeps every original feature.


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