Function: packArcShapes()
ts
function packArcShapes(data, count, out?): object;Experimental
Resolve every wedge's shape (computeArcShape) and bounds (arcBounds) into the iShape / iCorner / iBounds layouts. Wedges with a non-finite center or an empty shape get zero bounds, which the vertex shader culls.
Parameters
| Parameter | Type |
|---|---|
data | Pick<ArcData, "x" | "y" | typeof SHAPE_KEYS[number]> |
count | number |
out? | { bounds: Float32Array; corner: Float32Array; shape: Float32Array; } |
out.bounds? | Float32Array |
out.corner? | Float32Array |
out.shape? | Float32Array |
Returns
object
| Name | Type |
|---|---|
bounds | Float32Array |
corner | Float32Array |
shape | Float32Array |