Drughi Posted September 17, 2018 Share Posted September 17, 2018 Hi, how to split a curve in vex without convertline? Quote Link to comment Share on other sites More sharing options...
konstantin magnus Posted September 17, 2018 Share Posted September 17, 2018 (edited) Although convertline already is mainly done in VEX , you could iterate over all primitives, delete them and create a new prim for each of its points. int pr_pts[] = primpoints(0, @primnum); for(int i = 0; i < len(pr_pts) - 1; i++){ int prim = addprim(0, 'polyline', pr_pts[i], pr_pts[i + 1]); } removeprim(0, @primnum, 1); Make sure to set the attribute wrangle to run over primitives. Edited September 17, 2018 by konstantin magnus 1 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.