Jump to content

Add prims VEX


Recommended Posts

Hi philpappas. In your vex, you use i to iterate over the points. At the same time, you use i as an prim_num argument in addvertex here.

int  addvertex(int geohandle, int prim_num, int point_num)

So this might be a problem. Also it seems, that you may want the polyline, instead of the poly? I am not exactly sure, how the result should look like, but I attach a node solution for inspiration. I might help you with the vex too, but please clarify your intention. 

 

connect_to_center - v1.hiplc

connect_to_center - v1.PNG

  • Like 1
Link to comment
Share on other sites

23 minutes ago, ikoon said:

"node" method

great, now i'm not so sure this was the right method all along because i wanted to enumerate the prims as you see in the attached image. kind of a reversed matrix (thats how i'd do it in grasshopper)

i should probably construct the prims using the radial lines one by one and attach an attribute for each layer(?) ...i can think of ways but maybe i am over complicating it

current.JPG

wish.JPG

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...