Grasshopper

algorithmic modeling for Rhino

Hi all,

I shifted a list of points on two parallel lines (resulting from dividing the lines into equal segments) and then created 4pointsurfaces from the two lists (original and shifted). The problem is that the last surface is a line because the last points on the original lists are being shifted in the same location. How do I get rid of the last surface which is a line? It creates a problem later when generating the center points of all surfaces and moving them away to make another polyarc.

Thanks a lot for help,
Brandusa

Views: 1539

Replies to This Discussion

Try removing the last element in the list with either:
1. reverse the list, shift list by 1 (with wrap set to false)
or
2. get the list length, split list by the (length - 1)

Thanks Dirk!

I couldn't figure out the reverse method yet (I'm still a beginner) but split list worked nicely. Thank you!

Brandusa

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service