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

Per-region record of what was decided about a mapped patch and why. More...

#include <meshkit/planning.hpp>

Collaboration diagram for meshkit::plan::PatchDecision:

Public Attributes

Text source
 Region label.
 
Text reason
 Explanation of the latest refusal, repair or acceptance; may be empty when planning stopped before the region was decided.
 
int region = -1
 0-based index of the source region; -1 when unassigned.
 
bool required = false
 True for a hard requirement (QuadRegion::requireMapped or directionalSpacing), whose failure refuses the whole plan.
 
PatchDisposition disposition = PatchDisposition::Triangles
 Outcome; Triangles by default.
 
std::uint64_t cells = 0
 Cells (n x m) in the region's patch.
 
int repairRounds = 0
 Repair rounds or retries recorded.
 

Detailed Description

Per-region record of what was decided about a mapped patch and why.

Member Data Documentation

◆ cells

std::uint64_t meshkit::plan::PatchDecision::cells = 0

Cells (n x m) in the region's patch.

Set when a planning round accepts the patch, so read it only for Accepted or Repaired outcomes.

◆ disposition

PatchDisposition meshkit::plan::PatchDecision::disposition = PatchDisposition::Triangles

Outcome; Triangles by default.

◆ reason

Text meshkit::plan::PatchDecision::reason

Explanation of the latest refusal, repair or acceptance; may be empty when planning stopped before the region was decided.

◆ region

int meshkit::plan::PatchDecision::region = -1

0-based index of the source region; -1 when unassigned.

◆ repairRounds

int meshkit::plan::PatchDecision::repairRounds = 0

Repair rounds or retries recorded.

planQuadRegions() sets it only for a delivered patch, where nonzero means Repaired.

◆ required

bool meshkit::plan::PatchDecision::required = false

True for a hard requirement (QuadRegion::requireMapped or directionalSpacing), whose failure refuses the whole plan.

◆ source

Text meshkit::plan::PatchDecision::source

Region label.

planQuadRegions() uses QuadRegion::tag, or "region:" followed by the 0-based region index when the tag is empty.


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