sparkChan Posted June 7, 2012 Share Posted June 7, 2012 hi, I have bunch of spheres, and then scatter points on them. next I want to do is to connect those points to lines, I mean getting each point from two sphere. like this picture shows: this is the file pointsTolines.hip thanks Quote Link to comment Share on other sites More sharing options...
sadhu Posted June 7, 2012 Share Posted June 7, 2012 (edited) One solution could be 1)Use foreach operator to work on every sphere 2)Scatter points (You can randomize this if you want) on every sphere inside foreach. 3)Add attrb, say sortno with value == $PT inside foreach 4)After foreach, connect add sop > By Group > Add - By Attribute - sortno it will connect all the points with similar sortno value. 5)If you dont want all the points to be connected, create different groups of points on the any two (or any number of spheres you want) spheres , process these groups using foreach operator and use the add sop inside foreach to connect points with similar sortno value. I hope this helps. Edited June 7, 2012 by sadhu Quote Link to comment Share on other sites More sharing options...
kare Posted June 7, 2012 Share Posted June 7, 2012 (edited) One solution could be 1)Use foreach operator to work on every sphere 2)Scatter points (You can randomize this if you want) on every sphere inside foreach. 3)Add attrb, say sortno with value == $PT inside foreach 4)After foreach, connect add sop > By Group > Add - By Attribute - sortno it will connect all the points with similar sortno value. 5)If you dont want all the points to be connected, create different groups of points on the any two (or any number of spheres you want) spheres , process these groups using foreach operator and use the add sop inside foreach to connect points with similar sortno value. I hope this helps. another solution add add SOP->polygons tab->polygon0 0-50(maximum number of points) another way add add SOP-> polygons tab -> By Group tab -> All Points(in add parameter) Edited June 7, 2012 by kare Quote Link to comment Share on other sites More sharing options...
sadhu Posted June 7, 2012 Share Posted June 7, 2012 (edited) One solution could be 1)Use foreach operator to work on every sphere 2)Scatter points (You can randomize this if you want) on every sphere inside foreach. 3)Add attrb, say sortno with value == $PT inside foreach 4)After foreach, connect add sop > By Group > Add - By Attribute - sortno it will connect all the points with similar sortno value. 5)If you dont want all the points to be connected, create different groups of points on the any two (or any number of spheres you want) spheres , process these groups using foreach operator and use the add sop inside foreach to connect points with similar sortno value. something like this with randomization in connection control and just to avoid connection between two points on the same sphere (If you have large no of points scattered) And as Kare has pointed out , If you sort you points by z and then just use add sop > polygon > Add - Group of N points say 2 you can get similar output. Edited June 7, 2012 by sadhu 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.