S2BooleanOperation.Options

Undocumented in source.

Constructors

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

Convenience constructor that calls set_snap_function().

this
this(Options options)
Undocumented in source.

Members

Functions

conservativeOutput
bool conservativeOutput()

If true, the input geometry is interpreted as representing nearby geometry that has been snapped or simplified. It then outputs a conservative result based on the value of polygon_model() and polyline_model(). For the most part, this only affects the handling of degeneracies.

polygonModel
PolygonModel polygonModel()

Defines whether polygons are considered to contain their vertices and/or edges.

polylineModel
PolylineModel polylineModel()

Defines whether polylines are considered to contain their vertices.

precision
Precision precision()

Specifies whether the operation should use the exact input geometry (Precision::EXACT), or whether the two input regions should be snapped together first (Precision::SNAPPED).

setConservativeOutput
void setConservativeOutput(bool conservative)
Undocumented in source. Be warned that the author may not have intended to support it.
setPolygonModel
void setPolygonModel(PolygonModel model)
Undocumented in source. Be warned that the author may not have intended to support it.
setPolylineModel
void setPolylineModel(PolylineModel model)
Undocumented in source. Be warned that the author may not have intended to support it.
setPrecision
void setPrecision(Precision precision)
Undocumented in source. Be warned that the author may not have intended to support it.
setSnapFunction
void setSnapFunction(S2Builder.SnapFunction snap_function)
Undocumented in source. Be warned that the author may not have intended to support it.
setSourceIdLexicon
void setSourceIdLexicon(ValueLexicon!SourceId source_id_lexicon)
Undocumented in source. Be warned that the author may not have intended to support it.
snapFunction
const(S2Builder.SnapFunction) snapFunction()

Specifies the function to be used for snap rounding.

sourceIdLexicon
const(ValueLexicon!SourceId) sourceIdLexicon()

If specified, then each output edge will be labelled with one or more SourceIds indicating which input edge(s) it corresponds to. This can be useful if your input geometry has additional data that needs to be propagated from the input to the output (e.g., elevations).

Meta