construct_strands
Constructs a strands
geometry - creating a strands
from raw data in the graph. This creates a minimal strands
object, it does not set point_size
, point_tangent
, or any other optional properties.
If one input is an empty array, the other will be automatically constructed. If both inputs are empty arrays, an empty strands
object is constructed.
point_position
The port type is: array<Math::float3>.
This will directly set the point_position
property - which are the vertex positions of the strands.
If an empty array is supplied, the positions will be filled with with zero vectors based on the contents of "strand_offset"
strand_offset
The port type is: array<UInt>.
These will directly set a property of the same name - and this is the offset array of the strands
structure. The offset array defines where each strand starts, and has one extra element at the end which is the count of the point_component.
An offset array as follows define two strands as follows:
strand_offset: [0, 3, 8]
Resulting strands: 0-2, 3-7.
If strand_offset is an empty array, one will be constructed which is a single strand tracing through all the point_positions
.