Pins, cancellation and resource limits for simplifyConstraints(). More...
#include <meshkit/constraints.hpp>
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. | |
Pins, cancellation and resource limits for simplifyConstraints().
| 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.
| 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.
| 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.
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.
| 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.