Contents

replaceAdjacencyEndIndices(_:)

Fills the per-vertex adjacency end-indices buffer using the given closure.

Declaration

func replaceAdjacencyEndIndices<R>(_ body: @_lifetime(0: copy 0) (inout MutableRawSpan) -> R) throws(LowLevelDeformation.Error) -> R where R : ~Copyable

Parameters

  • body:

    A closure that receives a mutable span over the buffer.

Return Value

The value returned by body.

Discussion

After the closure returns, the framework validates every entry against the adjacency count. An out-of-range entry causes a throw.

See Also

Replacing geometry data