Jump to content

Delete FIRST and LAST point of line geometry


Recommended Posts

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 by 6ril
Link to comment
Share on other sites

  • 3 months later...

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