EdgeClippingLayer

Given a set of clipping instructions encoded as a set of intersections between input edges, EdgeClippingLayer determines which graph edges correspond to clipped portions of input edges and removes them. It assembles the remaining edges into a new S2Builder::Graph and passes the result to the given output layer for assembly.

Constructors

this
this(Layer[] layers, byte[]* input_dimensions, InputEdgeCrossings* input_crossings)
Undocumented in source.

Members

Functions

build
void build(Graph g, S2Error error)
Undocumented in source. Be warned that the author may not have intended to support it.
graphOptions
GraphOptions graphOptions()

Layer interface:

toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From Layer

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

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

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.

Meta