ikarus Posted March 6, 2011 Share Posted March 6, 2011 I'm beginning to get into python with houdini and i was wondering if there was an easy way to: for each point, iterate over the rest of the points (like 'for point in geo.points()') for, lets say, a comparison. i dont think 2 nested 'for point in geo.points()' works as it froze houdini any advice? Quote Link to comment Share on other sites More sharing options...
graham Posted March 6, 2011 Share Posted March 6, 2011 Loops within loops of points are fine. Not sure why it would freeze Houdini unless you were say attempting to loop over an extremely large set of points and it just took forever. What exactly were you doing inside your loops? Quote Link to comment Share on other sites More sharing options...
ikarus Posted March 6, 2011 Author Share Posted March 6, 2011 well essentially i want to recreate something along the lines of a point cloud lookup to return the number of points within a radius of each point but i guess that wont be efficient unless i use inlinecpp like from your .py here? 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.