Jump to content

Attribcreate avoid same value neighbours


otto

Recommended Posts

Just another question, @Aizatulin. Is it possible to make this setup work on points that are not on a grid, but for instance a set of points that are created from a singe point copied 10x horizontally and 10x vertically (see example file)? I tried using nearpoints instead of neighbours, but I am not sure how to get the point position in this code. Sorry, I am an absolute beginner when it comes to VEX :blush:.

loopZ.hipnc

Link to comment
Share on other sites

  • 1 year later...

Hi,

damn I missed this answer completely (sorry)

If still interested, here is a modified version working of loopZ.

The neighbour() function can be replaced by the pcfind() function, which is searching all neighbours, which are in a specific radius but not necessarily connected. It can be an idea to use a limit for the maximal neighbour count, which can be 8 for example.

 

loopZ.hipnc

Edited by Aizatulin
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...