geometry_get_fibers
Retrieves vertex data from a Fibers element in the format used by the generate_fibers command or alternatively in an optimized binary representation.
References:
arguments
- "binary" : Boolean (default: false)
If true a binary representation of the Fibers object will be returned instead of the format used for the generate_fibers command. This is primarily intended for consumption within server-side V8 JavaScript commands and is much faster to generate. Here is an example of the binary format returned. Note that almost all elements will be ArrayBuffer types which you should use buffer views to access (Float32Array, Uint32Array or Uint8Array depending on the type).
{ control_points: ArrayBuffer (Float32), radii: ArrayBuffer (Float32), uvs: ArrayBuffer (Float32), uv_size: Uint32 (either 1, 2 or 3), fiber_sizes: ArrayBuffer (Uint32) }
Control point and radii information is mandatory but UVs are optional. The fiber_sizes property indicates the number of vertices per individual fiber. For instance, a fiber_sizes of [3,4,2] would indicate the first 3 control points, radii and uv coordinates are part of the first fiber, the next 4 points make up the the next fiber, and the last 2 points makes up the last fiber. - "fibers_name" : String
Name of the Fibers element to retrieve