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
SPSurrogategeneration
Functions§
- compute_
pole - Computes the pole - the largest circle which is both inside of
shapewhile being outside all otherpoles. Closely related to Pole of Inaccessibility (PoI), and inspired by Mapbox’spolylabelalgorithm. - generate_
piers - Generates a set of
npiers - line segments fully contained withinshape. This function generates them in such a way as to cover areas of theshapethat are poorly represented bypolesas well as possible. - generate_
surrogate_ poles - Generates a set of ‘poles’ for a shape according to specified coverage limits.
See
compute_polefor details on what a ‘pole’ is.