Hello :))
Time for me to seek some help…
I am trying to lower the resolution of a big number (about 5000 ) of polylines coming out of Processing… in order to compute other operations more easily and faster.
For this, I made a ONE big bounding box for all the curves, that I subdivided into a 3d voxel grid using Crystallon Plugin (I can control the size of those voxels to control the output resolution…).
My idea is to break the polylines into subsegments, evaluate the center points, and check if those segments are inside the voxels.
The aim, is to target each group of segments contained inside each voxel, and operate the Average Curve component from Pufferfish plugin… This way I move from a bunch of segments in each voxel to only one single line in each voxel…
I am stuck in organizing the data trees to make each voxel match only with the segments inside… Can anyone help with this ?
Please have a look on both the attached Rhino and Grasshopper files… In the GH file, I have deleted the part where I try to match the trees… make the script less polluted and easy to read.
2020_02_23_Help.3dm (3.6 MB) 2020_02_23_Help.gh (39.7 KB)
If I am not clear, kindly let me know I will rephrase…
If you have also a way smarter/faster idea, I would love to hear it…
Thanks in advance for your help.