Share

smooth_strands

Smoothes the values of geo properties on a strands object by averaging each point's value with those of its neighbors along the same strand.

Inputs

strands

The strands object to smooth.

weights

Weights that control how much each point is smoothed. Use a single float value to apply the same weight to all points. Use an array of floats to specify per-point weights. Use a string to specify a geo property that contains per-point float values. Use an array of bools to specify per-point flags, true to smooth and false to leave unmodified.

iterations

The number of times to run the smoothing algorithm. Use a larger number of iterations to increase the smoothing effect.

smooth_end_points

Include the end points in the smoothing algorithm.

properties

The names of geo properties to smooth, such as point_position. Only geo properties that target the point_component are smoothed. Non-geo properties and geo properties targeting other components, like the strand_component are not modified. Make sure to include all geo properties that you want.

  • Separate multiple geo property names with spaces.
  • You can use the wildcard * in expressions, for example, point_user* to transfer all geo properties that begin with the string "point_user".
  • The default value * transfers all point geo properties.
  • Use an empty string to prevent any geo properties from being smoothed.
  • To include all properties except those specified, use * (to include all properties) and then prefix specific properties or patterns individually with ! to exclude them. For example * !point_foo !point_bar* includes all properties except "point_foo" and those that begin with the string "point_bar".

Outputs

out_strands

The strands with smoothing applied.

Was this information helpful?