pshipkov
Thanks for sharing.
Reply 0 0
David l
And thank you for these amazing tools Peter :)

I use pfx intersections in my rig to define the regions that needs dispclacement along the normal vector.

Right now I have 6 segments (around) in the generated mesh from the stroke and would like to decrease it to a single point for performance/control purposes.

So is it possible to either:

A:
Merge a pointcloud from a mesh within a max distance.

B:
Somehow dynamically use the pfx.outMainCurves[*] to generate a pointcloud (with support for changes in output curve count), soup have the pointcloudtomulticurve node, i guess what's needed is something like a multicurvetopointcloud node :)

C:
Add support for toon strokes in the pfxToArrays node, I'm not sure if this already works but I cant figure it out :)
Reply 0 0
pshipkov
There is no easy way to merge procedurally nurbsCurves from a pfx stroke node, because they appear as multi-attribute with different number of children (their number will vary based on how many and how different objects intersect).
Well, i can work around that by connecting only the top compound attribute to a new node written for the purpose. Then that node will access from within itself a data located on another node (the pfx stroke/toon one) and combine the nurbsCurves into one point cloud.
This coincides with request i got recently that basically requires node like this.
Will do.

I simplified and optimized a bit your setup.
Check the attached file.
Reply 0 0
pshipkov
Btw, i added the file to the example scenes archive.
Reply 0 0
David l
Thank you Peter
Got the feeling that the request wasn't as straight forward as one would think, thanks for taking the time too look at it, i'm sure it will be a really usefull feature in soup :)
I am away on vacation so i cannot check the scenefile. I look forward to see what kind of wizardry you have come up with for optimization :)
Reply 0 0
pshipkov
I checked yesterday and the pfxToon node does not output multiple intersection curves.
So there is no way to do that really.

For a hairSystem node the outputHairCurves are actually vector arrays. There one can use the combineArrays SOuP node - just connect the top compound attribute of the hair system to the top compound attribute (inArrays - without index) of the combineArrays node. From that point you will get the "point cloud" for all "curves" on its output.

I just coded a quick curvesToPointCloud node. There will be another node related to the subject, but for that later.
All they will be in the next version of SOuP.
Reply 0 0
David l
Thanks Peter, you are the champ! :)
Reply 0 0
Reply