Grasshopper

algorithmic modeling for Rhino

So I have a simple nesting definition that I'm trying to add labeling to. Each piece has a tab that I want to put text on, but some pieces have tabs in different places. Each piece has a different number of segments, but are all closed curves.

My solution is to take a bounding box of each piece and add two points to each. Because the tab is in different places depending on the piece, one of the pair of points is going to be inside the tab. I figured I could use "Points in Curves" to cull out the points which are not on the tab, saving time with the cutting.

Alas, it seems that my geometry is too tricky for Grasshopper. For some reason, a couple of pieces seem to be "grabbing" points from other pieces after going through Points in Curves (you can see in the screenshot that the two pieces below the circled are missing a green point. Those points are now attached the the circled piece's curve). I'm surprised, I didn't think Points in Curves would move anything. Is this a bug or expected behavior that I have not accounted for?

Views: 434

Replies to This Discussion

hi Shane, 

Seems to be a tolerance issue. Try changing the absolute tolerance settings in Rhino (under units ) from 0.1 to 0.000001.

The component tests for inclusion and also projects points outside of the closed region onto the region. It doesn't move the original points, but it creates new ones.

If you're testing for individual curves, you should definitely use the singular Point In Curve compinents rather than the plural Point In Curves.

Whether or not there's a bug here is impossible to tell without having the geometry and the file.

RSS

About

Translate

Search

© 2025   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service