Options.idempotent

If true, then snapping occurs only when the input geometry does not already meet the S2Builder output guarantees (see the SnapFunction class description for details). This means that if all input vertices are at snapped locations, all vertex pairs are separated by at least min_vertex_separation(), and all edge-vertex pairs are separated by at least min_edge_vertex_separation(), then no snapping is done.

If false, then all vertex pairs and edge-vertex pairs closer than "snap_radius" will be considered for snapping. This can be useful, for example, if you know that your geometry contains errors and you want to make sure that features closer together than "snap_radius" are merged.

This option is automatically turned off by simplify_edge_chains(), since simplifying edge chains is never guaranteed to be idempotent.

DEFAULT: true

class Options
const
bool
idempotent
()

Meta