m___clifford Posted September 17, 2020 Share Posted September 17, 2020 Hello everyone, I am new to Houdini and was wondering how to solve an issue regarding the overlapping or intersection of curves. As you can see in the supplied images the curves become messy and extremely close to one another. Is there a method in order to be able to either delete curves that are inside a certain proximity to one another? Or delete every second curve? Or identify where there is a cluster of lines or points and delete them? Im not sure of the best method to resolve this issue so any help would be appreciated. (Apologies for the terrible screenshot images, the first is of the entire line network, and the second is a close up on the knee which shows some of the overlapping / cluster of lines.) Thanks very much. Quote Link to comment Share on other sites More sharing options...
konstantin magnus Posted September 17, 2020 Share Posted September 17, 2020 Hi Max, you can measure the overall point density with pcfind() within a certain radius: int samples = chi('samples'); float radius = chf('radius'); int pts[] = pcfind(0, 'P', v@P, radius, samples); float dens = len(pts) / float(samples); f@dens = dens; 1 Quote Link to comment Share on other sites More sharing options...
m___clifford Posted September 17, 2020 Author Share Posted September 17, 2020 Amazing, thanks so much! I will let you know how i get on Quote Link to comment Share on other sites More sharing options...
m___clifford Posted September 18, 2020 Author Share Posted September 18, 2020 Hey konstantin magnus, which node should i be typing the vex code into? Im slightly confused how to implement your solution Quote Link to comment Share on other sites More sharing options...
konstantin magnus Posted September 18, 2020 Share Posted September 18, 2020 Hey @m___clifford, it's for the attribute wrangle running over points. 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.