Expand description
The fail-fast surrogate and all logic pertaining to its generation
Structs§
- SPSurrogate
- Surrogate representation of a
SPolygon
- a ‘light-weight’ representation that is fully contained in the originalSPolygon
. Used for fail-fast collision detection. - SPSurrogate
Config - Configuration of the
SPSurrogate
generation
Functions§
- compute_
pole - Computes the pole - the largest circle which is both inside of
shape
while being outside all otherpoles
. Closely related to Pole of Inaccessibility (PoI), and inspired by Mapbox’spolylabel
algorithm. - generate_
piers - Generates a set of
n
piers - line segments fully contained withinshape
. This function generates them in such a way as to cover areas of theshape
that are poorly represented bypoles
as well as possible. - generate_
surrogate_ poles - Generates a set of ‘poles’ for a shape according to specified coverage limits.
See
compute_pole
for details on what a ‘pole’ is.