Grasshopper

algorithmic modeling for Rhino

I have created a planar curve, and i have connected it's end points in a line. I have divided both the curve and to the equal number of segments in order to create points. Now im trying to test if the points on the curve are above or below the line. I have used the point decompose to get the Z value (in this case) for the two sets of points. Then i compared them with larger than and got a list of true/false statements.

Now i'm too stupid to use this information and replace the true/false with -1 and 1, because i want to multiply the distance list (between these points) with these numbers. If they are below, i want them to have a negative value.

Views: 1021

Replies to This Discussion


feed your boolean values into an integer component (this converts the data type), then use a simple 1-variable function to convert... in this case '(x + (x-1))' will do the trick.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service