Module s2.s2builder

S2Builder is a tool for assembling polygonal geometry from edges

This class is a replacement for S2PolygonBuilder. Once all clients have been updated to use this class, S2PolygonBuilder will be removed.

Classes

NameDescription
GraphOptions This class is only needed by S2Builder::Layer implementations. A layer is responsible for assembling an S2Builder::Graph of snapped edges into the desired output format (e.g., an S2Polygon). The GraphOptions class allows each Layer type to specify requirements on its input graph: for example, if
S2Builder S2Builder is a tool for assembling polygonal geometry from edges. Here are some of the things it is designed for:
VertexIdEdgeVectorShape An S2Shape used to represent the entire collection of S2Builder input edges. Vertices are specified as indices into a vertex vector to save space.

Global variables

NameTypeDescription
s2builderVerbose bool Internal flag intended to be set from within a debugger.