Jump to content

Delete point by distances from each other


BludArtworks

Recommended Posts

Hello !

I'm struggling to analyse points from a mesh and only keep x number (like 4?) of the farthest points from each others.

I tried to grab the distances in vex then using delete node but its not working properly, didnt find a way to parse every point and compare between them. Tried average but then again I dont know how to compare each points from each other.

Thanks :)

 

poly.PNG

Link to comment
Share on other sites

i struggled to understand this at first too...but now I remember doing ConnVerts (MCG in Max) which is like Plexus effect where each point connects to every other point.

So having that picture in my mind, I think effectively: make a line between all poss combos of 2 points, sort by line length, reverse, from then on it's just whatever flavour you prefer to make your group selection/deletion...

Link to comment
Share on other sites

yeah that could work.

My approach would be to use nearpoints() to find all points.

Because nearpoints write to an array with the closest point first you could just remove everything except the last 4 entries and then you would have the 4 points furthest away. do this for all points, and you would have an array attached to each point.

I guess from there you could just select which point(s) you wanted and the array would hold the ptnum of the points.

Sorry for the vex talk again. My brain just works easiest that way, especially because I really strive to get better at it.

 

btw I know you all hate me for not uploading hip files but I can't unfortunately upload anything while I am at work. (restrictions and stuff).

 

Edited by Jesper Rahlff
Link to comment
Share on other sites

whatever approach, i'm still not 100% on the qualifications tho...so for a point X, if it's too close to point Y...let's assume it qualifies for deletion...but if point X is sooooo far away from point Z...should it be deleted or kept...which one wins out ? ie. shortest/longest distance, which one has priority ?

OP ?

Link to comment
Share on other sites

I am now following you? what do you mean priority?

28 minutes ago, Noobini said:

whatever approach, i'm still not 100% on the qualifications tho...so for a point X, if it's too close to point Y...let's assume it qualifies for deletion...but if point X is sooooo far away from point Z...should it be deleted or kept...which one wins out ? ie. shortest/longest distance, which one has priority ?

OP ?

 

Link to comment
Share on other sites

coz the OP says he wants to keep those points furthest from each other...so that sorta tells me that's his primary criteria...so if point X qualifies for deletion with the shortest distance to some neighbour but also qualifies to be kept coz it's so far away from some other neighbour....someone has to make an executive decision...:)

Link to comment
Share on other sites

Hello there ! Its indeed a bit weird now I think about it, the idea is to distribute a precise number sphere on meshes point , picking the farthest point so the spheres dont overlap. then using theses to create selection groups ect ect..

Thanks for your replies and sorry for the confusion.

poly_01.PNG.9ad6339702890be6f5de7e5a4d5a3652.PNG

Edited by BludArtworks
image too big
Link to comment
Share on other sites

1 hour ago, BludArtworks said:

Hello there ! Its indeed a bit weird now I think about it, the idea is to distribute a precise number sphere on meshes point , picking the farthest point so the spheres dont overlap. then using theses to create selection groups ect ect..

Thanks for your replies and sorry for the confusion.

poly_01.PNG.9ad6339702890be6f5de7e5a4d5a3652.PNG

I am still confused where it all starts..

to find a distance you need a start and end points. end point in this case being the farthest point away from... ? each point on the mesh?

Link to comment
Share on other sites

15 hours ago, Jesper Rahlff said:

I am still confused where it all starts..

to find a distance you need a start and end points. end point in this case being the farthest point away from... ? each point on the mesh?

Precisely, but its just the way I found to distribute spheres on mesh based on points and making them not overlap. Using copy stamp.

 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...