I am working on a simple script that reduces the number of curves generated by a flocking algorithm.
The idea is to create a grid, then target the curves that are contained within the same cell by setting the rule that if each curve’s start point belongs to the cell, then the curve is in.
Afterwhat, I make an average curve of the group of curves contained in the same cell by using the Pufferfish components created by @Michael_Pryor …
All my input polylines are made of the same number of segments (8) and the same number of Control points (9) and knots (9). You can see it in the following image :
However, the output from the pufferfish Average component generates polylines that have different number of segments (varying between 6 and 8) and different number of control points/knots (up to 33).
The following image shows in the right my original curve, and on the left the pufferfish curve.
I must have the hole output curves made with the same number of segments.
1)- Does anyone know how to parameter the curve Average Component for such an operation ?
I have checked the plugin’s example files, but I didn’t get the behavior of the component.
2)- Is the average component the right way to go for such operation ?
Thanks a lot !