bonassus Posted March 1, 2020 Share Posted March 1, 2020 If i have 5 points all at the origin each with i different pscale, how can i move them apart along the x axis so that when I copy spheres to them the spheres will touch but not intersect? thanks in advance. Quote Link to comment Share on other sites More sharing options...
DonRomano Posted March 1, 2020 Share Posted March 1, 2020 Use the point relax sop Quote Link to comment Share on other sites More sharing options...
bonassus Posted March 1, 2020 Author Share Posted March 1, 2020 45 minutes ago, DonRomano said: Use the point relax sop I tried that but I need the points to all in a line. The point relax pushes them into a circle. Quote Link to comment Share on other sites More sharing options...
Noobini Posted March 1, 2020 Share Posted March 1, 2020 (edited) using a line would be far simpler...but yes I can see your points coming from some particle emitter all from origin....but can be done. the 0.1 should really be checked against the smallest pscale possible...or just be lazy...make the 0.1 be 0.0001 vu_lineupSpheres.hiplc Edited March 1, 2020 by Noobini 1 Quote Link to comment Share on other sites More sharing options...
bonassus Posted March 1, 2020 Author Share Posted March 1, 2020 8 minutes ago, Noobini said: using a line would be far simpler...but yes I can see your points coming from some particle emitter all from origin....but can be done. vu_lineupSpheres.hiplc Amazing, thank you! I'm working with points created with the Table Import sop. The points are created at the origin. I'm not exactly sure why your solution works. I guess @P.x = 0.1*@ptnum; starts them off in a line and the relax sop works like a solver to continue pushing them apart in that direction. this was helpful for me. thank you. Quote Link to comment Share on other sites More sharing options...
Noobini Posted March 2, 2020 Share Posted March 2, 2020 and now...for 'nearly' in any direction you want... - So if you want to line them up in an ortho axis X/Y/Z, just nudge the slider in that axis abit and leave the other 2 at 0. - if you leave one axis at 0 and nudge the other 2, then you get some angle...(this is still planar...hence I said 'nearly' any direction you want, there's probably a way so you can align the line in ANY direction then apply the relax...job for the VEX gurus...not me ) vu_lineupSpheres2.hiplc 1 Quote Link to comment Share on other sites More sharing options...
bonassus Posted March 2, 2020 Author Share Posted March 2, 2020 Oh good idea! Super cool. Thanks again! Quote Link to comment Share on other sites More sharing options...
Noobini Posted March 2, 2020 Share Posted March 2, 2020 (edited) YES !!! Now works in any direction vu_lineupSpheres3.hiplc Edited March 2, 2020 by Noobini 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.