SWMMVis  6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
mesh::CleanupPolicy Struct Reference

#include <meshminsizecleanup.h>

Collaboration diagram for mesh::CleanupPolicy:

Public Attributes

double minCellSize = 0.0
 
double beta = 0.35
 
int maxPasses = 2
 
int maxUnfixable = 200
 cap on the reported list
 
bool allowIdentityCollapse = false
 Collapse slivers the default pass refuses to touch.
 
int minRingVertices = 3
 
int maxCandidatesPerPass = 2000000
 

Detailed Description

Member Data Documentation

◆ allowIdentityCollapse

bool mesh::CleanupPolicy::allowIdentityCollapse = false

Collapse slivers the default pass refuses to touch.

OFF by default. The default pass freezes the endpoints of EVERY constrained edge, which on a conduit-dense model is essentially every interior vertex of consequence — so it declines far more than it fixes. With this on, an interior constrained edge may collapse, and a sliver touching ONE identity vertex may be absorbed INTO that vertex.

Two rules are never relaxed: two distinct identities are never merged into each other, and a 1D-2D coupling is never lost (a dropped coupling is worse than a sliver, and still aborts the whole pass).

◆ beta

double mesh::CleanupPolicy::beta = 0.35

Collapse only edges shorter than beta * h. Deliberately well below 1: at beta = 1 every edge of every legitimately h-sized cell becomes a candidate and the pass starts dismantling good geometry.

◆ maxCandidatesPerPass

int mesh::CleanupPolicy::maxCandidatesPerPass = 2000000

Relaxing the default protections multiplies how many edges qualify on a large mesh. Only consulted in aggressive mode.

◆ maxPasses

int mesh::CleanupPolicy::maxPasses = 2

◆ maxUnfixable

int mesh::CleanupPolicy::maxUnfixable = 200

cap on the reported list

◆ minCellSize

double mesh::CleanupPolicy::minCellSize = 0.0

h — the minimum cell size in map units. 0 disables cleanup.

◆ minRingVertices

int mesh::CleanupPolicy::minRingVertices = 3

A ring may not be shortened below this many vertices. The mesh-output side of the same self-folding hazard pslgminsize guards on the input side: a ring collapsed to two vertices bounds no area.


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