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::GenerationOptions Struct Reference

Quality knobs surfaced to the user dialog. More...

#include <meshgenerator.h>

Collaboration diagram for mesh::GenerationOptions:

Public Attributes

double maxArea = 0.0
 
double minAngle = 26.0
 
bool allowSteiner = true
 false = -YY (no Steiner points on boundary).
 
bool conformingDelaunay = false
 -D switch.
 
int maxSteinerPoints = -1
 -SN cap; -1 = unlimited.
 
bool quiet = true
 -Q (suppress Triangle's stderr).
 
QString customSwitchString
 If non-empty, overrides everything above. Advanced.
 
bool mergeTrianglePairs = false
 
QuadMergeOptions quadMerge
 
double patchSnapEps = 0.0
 
QuadQualityBounds quadRegionBounds
 
QuadCleanupOptions quadCleanup
 
double quadRegionDefaultSpacing = 0.0
 

Detailed Description

Quality knobs surfaced to the user dialog.

Member Data Documentation

◆ allowSteiner

bool mesh::GenerationOptions::allowSteiner = true

false = -YY (no Steiner points on boundary).

◆ conformingDelaunay

bool mesh::GenerationOptions::conformingDelaunay = false

-D switch.

◆ customSwitchString

QString mesh::GenerationOptions::customSwitchString

If non-empty, overrides everything above. Advanced.

◆ maxArea

double mesh::GenerationOptions::maxArea = 0.0

0 = no global cap; else upper bound on triangle area. Ignored when a refinement size function is installed (see MeshGenerator::setRefineHook).

◆ maxSteinerPoints

int mesh::GenerationOptions::maxSteinerPoints = -1

-SN cap; -1 = unlimited.

◆ mergeTrianglePairs

bool mesh::GenerationOptions::mergeTrianglePairs = false

G2: after Triangle (and after any patches are stitched in), greedily merge adjacent triangle pairs into convex quads (mesh/meshquadmerge.h). Locked edges = every constrained segment (domain boundary, holes, breaklines, patch boundaries). Off by default (plan decision D2).

◆ minAngle

double mesh::GenerationOptions::minAngle = 26.0

0..33 reliable; above that Triangle may not terminate. Cost rises steeply near the top of the range — 33° commonly yields 2-4x the vertices of 26° for no practical benefit.

◆ patchSnapEps

double mesh::GenerationOptions::patchSnapEps = 0.0

G3: snap radius (map units) used to match patch vertices against the Triangle output vertices. 0 = the generator's own 1e-7 quantisation (exact match of the coordinates the PSLG was built from).

◆ quadCleanup

QuadCleanupOptions mesh::GenerationOptions::quadCleanup

Cleanup / smoothing knobs applied to Free regions after pairing.

◆ quadMerge

QuadMergeOptions mesh::GenerationOptions::quadMerge

◆ quadRegionBounds

QuadQualityBounds mesh::GenerationOptions::quadRegionBounds

Acceptance bounds for quads produced inside quad regions (template and gap pairing, cleanup, smoothing). Independent of quadMerge.

◆ quadRegionDefaultSpacing

double mesh::GenerationOptions::quadRegionDefaultSpacing = 0.0

Free-region spacing when QuadRegion::spacing == 0 and no size function is installed: side of the equilateral triangle of maxArea (sqrt(4·maxArea/sqrt 3)); when that is 0 too the region is skipped with a report line. With a size function, h = sqrt(2·targetAreaAt(centroid)).

◆ quiet

bool mesh::GenerationOptions::quiet = true

-Q (suppress Triangle's stderr).


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