S2Builder.Options

Undocumented in source.

Constructors

this
this()
Undocumented in source.
this
this(SnapFunction snap_function)

Convenience constructor that calls set_snap_function().

this
this(Options options)
Undocumented in source.

Members

Functions

idempotent
bool 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.

setIdempotent
void setIdempotent(bool idempotent)
Undocumented in source. Be warned that the author may not have intended to support it.
setSimplifyEdgeChains
void setSimplifyEdgeChains(bool simplify_edge_chains)
Undocumented in source. Be warned that the author may not have intended to support it.
setSnapFunction
void setSnapFunction(SnapFunction snap_function)
Undocumented in source. Be warned that the author may not have intended to support it.
setSplitCrossingEdges
void setSplitCrossingEdges(bool split_crossing_edges)
Undocumented in source. Be warned that the author may not have intended to support it.
simplifyEdgeChains
bool simplifyEdgeChains()

If true, then simplify the output geometry by replacing nearly straight chains of short edges with a single long edge.

snapFunction
const(SnapFunction) snapFunction()

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

splitCrossingEdges
bool splitCrossingEdges()

If true, then detect all pairs of crossing edges and eliminate them by adding a new vertex at their intersection point.

Meta