JFWfilms Posted December 8, 2019 Share Posted December 8, 2019 What would be the best way to rather than meshing all of the particles, only have the particles that are closest together meshed and render the rest as Spray particles? Like in this test by Igor Zanic Quote Link to comment Share on other sites More sharing options...
TheDude Posted December 9, 2019 Share Posted December 9, 2019 Average proximity would be one way, check how far away your nearby particles are. If the 10 nearest particles to your current point are greater than 1cm away, then split this into a seperate group. mesh only those that were not in this group, and leave the rest as points. 1 Quote Link to comment Share on other sites More sharing options...
JFWfilms Posted December 9, 2019 Author Share Posted December 9, 2019 52 minutes ago, TheDude said: Average proximity would be one way, check how far away your nearby particles are. If the 10 nearest particles to your current point are greater than 1cm away, then split this into a seperate group. mesh only those that were not in this group, and leave the rest as points. Hi thanks for the reply! Sorry but how would I go about checking the proximity of each point? Quote Link to comment Share on other sites More sharing options...
DonRomano Posted December 9, 2019 Share Posted December 9, 2019 Hey, in the flip solver you have a droplet attribute. Igor mentions it in the notes at the bottom right, you can use it to detect droplets, and just before your mesh you cleanup all those droplets particles and mesh only the ones that are not particles ! Cheers, 1 Quote Link to comment Share on other sites More sharing options...
jimeng20 Posted December 9, 2019 Share Posted December 9, 2019 Hi there, I'm sure there are a lot of different ways to do that, I will probably use point cloud to found out the how many points in the searching area. For example int pts[] = pcfind(0, "P", @P, 0.1, 10); if(len(pts) < 10){ removepoint(0,@ptnum); } So if there are less 10 points find in 0.1 meter area, blast the particles. Then you can mesh the remaining. Hope this would help. 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.