Sunsheku Posted May 19, 2019 Share Posted May 19, 2019 (edited) Hello. I'm trying to delete first point and last point of geometry made with line node. Somebody have a solution for this? Edited May 19, 2019 by Sunsheku Quote Link to comment Share on other sites More sharing options...
6ril Posted May 19, 2019 Share Posted May 19, 2019 (edited) Hi, many ways to do that... here is one: make a "group by range" node, choose points as a group type, and put 0 for start, 1 for end, and check inverse range. This will select the last point. make another group, with point 0. blast those 2 groups. a shorter way would be a wrangler: put down a point wrangler node. and type this : removepoint(0,0); if(@ptnum == (@numpt-1)) removepoint(0,@ptnum); first line remove point 0 (the first point of the line). (0,0)means : (geometry entering slot number 0 of the node , point number 0) second line reads : if the actual point number is equal to the number of points minus one (the last point of the line) third line : remove that point Edited May 19, 2019 by 6ril Quote Link to comment Share on other sites More sharing options...
ThomasPara Posted May 20, 2019 Share Posted May 20, 2019 //set a wrangle to run over primitives int primpts[] = primpoints(0,@primnum); removepoint(0,primpts[0]); removepoint(0,primpts[-1]); 3 Quote Link to comment Share on other sites More sharing options...
Sunsheku Posted May 22, 2019 Author Share Posted May 22, 2019 Thanks! I got what i want to do! Quote Link to comment Share on other sites More sharing options...
zarti Posted September 19, 2019 Share Posted September 19, 2019 enter this in a Blast / Delete SOP group field : 0 `npoints(opinputpath(".",0)-1` .cheers 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.