Convenience constructor that calls set_snap_function().
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 true, then simplify the output geometry by replacing nearly straight chains of short edges with a single long edge.
Sets the desired snap function. The snap function is copied internally, so you can safely pass a temporary object.
If true, then detect all pairs of crossing edges and eliminate them by adding a new vertex at their intersection point.