Jump to content

Deleting Points from a Primitive Wrangle


Mdonovan

Recommended Posts

 

Hi Guys,

I am trying to learn more VEX and I am definitely in need of some assistance here. This is very basic. 

I have stacked rows of curves that have 3 points each. 

I want to delete from 0 to 2 pts per curve randomly. 

Curently I am assigning an @del_qty to each primitive that will tell me how many point on that primitive I am to delete. 

I dont know how to delete the points using a wrangle since my @del_qty lives on the primitive. 

Below is an imag that show what I am attempting to do (the red x's are deleted points). .

 

image.png

image.png

Edited by Mdonovan
bottom image does not represent data in spreadsheet.
Link to comment
Share on other sites

Here is another image kind of showing my progress ....

What I want to do based on this data is randomly delete:

1 point on prim1

2 points on prim2

1 point on prim5

1 point on prim6

1 point on prim9

I underlined some points in the return value from primpoints just to illlustrate possible points to delete.

 

image.thumb.png.04bfcf19c494b3988e237d9e40b24550.png

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