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.

Members

Classes

EdgeChainSimplifier
class EdgeChainSimplifier
Undocumented in source.
GraphOptions
class 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 DegenerateEdges::DISCARD is specified, then S2Builder will ensure that all degenerate edges are removed before passing the graph to the S2Layer::Build method.

S2Builder
class S2Builder

S2Builder is a tool for assembling polygonal geometry from edges. Here are some of the things it is designed for:

VertexIdEdgeVectorShape
class 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.

Variables

s2builderVerbose
bool s2builderVerbose;

Internal flag intended to be set from within a debugger.

Meta

License

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS-IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Authors

ericv@google.com (Eric Veach), madric@gmail.com (Vijay Nayar)