Loading...
Searching...
No Matches
mesh::FacingPairOptions Struct Reference

Detection policy for findFacingPairs(). More...

#include <mesh/breaklinestrips.h>

Collaboration diagram for mesh::FacingPairOptions:

Public Attributes

double minWidth = 0.0
 Separation range, map units (maxWidth > minWidth > 0).
 
double maxWidth = 0.0
 Upper end of that range: how far each normal ray is cast.
 
double station = 0.0
 Sampling step along each line, map units (> 0).
 
double maxAngleDeg = 20.0
 Largest angle between the two lines at a station.
 
double widthChange
 Largest relative change of the separation from one station to the next.
 
int minStations = 4
 A pair also runs at least three separations along the line.
 
double endTrimFraction = 0.25
 Each run gives up this fraction of its separation at both ends, so the strips of two crossing streets keep apart at the intersection.
 
std::function< double(double, double)> elevationAt
 Ground elevation at a map coordinate (NaN = unknown).
 

Detailed Description

Detection policy for findFacingPairs().

Lengths are in map (XY) units. With the zero defaults the width/station check fails and no pairs are returned.

Member Data Documentation

◆ elevationAt

std::function<double(double, double)> mesh::FacingPairOptions::elevationAt

Ground elevation at a map coordinate (NaN = unknown).

Null = no trough test (every facing pair qualifies).

◆ endTrimFraction

double mesh::FacingPairOptions::endTrimFraction = 0.25

Each run gives up this fraction of its separation at both ends, so the strips of two crossing streets keep apart at the intersection.

◆ maxAngleDeg

double mesh::FacingPairOptions::maxAngleDeg = 20.0

Largest angle between the two lines at a station.

◆ maxWidth

double mesh::FacingPairOptions::maxWidth = 0.0

Upper end of that range: how far each normal ray is cast.

◆ minStations

int mesh::FacingPairOptions::minStations = 4

A pair also runs at least three separations along the line.

◆ minWidth

double mesh::FacingPairOptions::minWidth = 0.0

Separation range, map units (maxWidth > minWidth > 0).

◆ station

double mesh::FacingPairOptions::station = 0.0

Sampling step along each line, map units (> 0).

◆ widthChange

double mesh::FacingPairOptions::widthChange
Initial value:
=
0.25

Largest relative change of the separation from one station to the next.


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