Layer

This class is not needed by ordinary S2Builder clients. It is only necessary if you wish to implement a new S2Builder::Layer subtype.

Members

Aliases

EdgeType
alias EdgeType = S2Builder.EdgeType
Undocumented in source.
Graph
alias Graph = .Graph
Undocumented in source.
GraphOptions
alias GraphOptions = .GraphOptions
Undocumented in source.
Label
alias Label = S2Builder.Label
Undocumented in source.
LabelSetId
alias LabelSetId = S2Builder.LabelSetId
Undocumented in source.

Functions

build
void build(Graph g, S2Error error)

Assembles a graph of snapped edges into the geometry type implemented by this layer. If an error is encountered, sets "error" appropriately.

graphOptions
GraphOptions graphOptions()

Defines options for building the edge graph that is passed to Build().

Meta