Options.snapFunction

Sets the desired snap function. The snap function is copied internally, so you can safely pass a temporary object.

Note that if your input data includes vertices that were created using S2::GetIntersection(), then you should use a "snap_radius" of at least S2::kIntersectionSnapRadius, e.g. by calling

options.set_snap_function(s2builderutil::IdentitySnapFunction( S2::kIntersectionSnapRadius));

DEFAULT: s2builderutil::IdentitySnapFunction(S1Angle::Zero()) [This does no snapping and preserves all input vertices exactly.]

class Options
const
snapFunction
()

Meta