Assembles a graph of snapped edges into the geometry type implemented by
this layer. If an error is encountered, sets "error" appropriately.
Note that when there are multiple layers, the Graph objects passed to all
layers are guaranteed to be valid until the last Build() method returns.
This makes it easier to write algorithms that gather the output graphs
from several layers and process them all at once (such as
s2builderutil::ClosedSetNormalizer).
Assembles a graph of snapped edges into the geometry type implemented by this layer. If an error is encountered, sets "error" appropriately.
Note that when there are multiple layers, the Graph objects passed to all layers are guaranteed to be valid until the last Build() method returns. This makes it easier to write algorithms that gather the output graphs from several layers and process them all at once (such as s2builderutil::ClosedSetNormalizer).