algorithmic modeling for Rhino
I don't know whether it is simple, but I simply fail to write/build a solution that is rock solid. For two identical, but offset curves intersecting each other I just want to keep the selected/green points. Right now I use something like "if abs(tA-tB) < max_t than keep point". But no matter how large max_t is there are always curves/distances for which this approach doesn't work...
Tags:
ah on second read I see this is exactly the approach you were trying to begin with. Can you show some examples where this approach is failing?
maybe a tangent vector angle comparison tested against a threshold would work?
Hi Marcus, interesting question, but I think you meant a moved (translated) copy of the curve instead of an offset curve. It turns out to be quite challenging indeed... Here's my (not very fail-safe) attempt.
(Too bad I can't understand Python yet, your script seems to work okay too. Somehow I get strange results when I try your screenshot method (see second attached image))
That's cool Marcus.
But I'm wondering for what reason you need to find these points.
Couldn't you just create a loft surface between the curves to get the pen stroke effect? (Surface will flip when direction changes.) Or even just extrude the one curve in wanted direction?
Okay, that's a valid reason too:)
I'm confused too about what we're doing/aiming for.
In the image you attached just now, it seems you are rotating the pen (the stroke end lines aren't parallel), I thought you didn't want that.
Could you upload the definition (including some curves you want to work with) in order to clear the confusion please?
I've attached what I thought we were doing. (Oh man~)
Ehhhh I've attached...
you're getting different results doing that than using the tA and tB straight out of the single component!? seems like a serious bug...
Important elegant work, yours lately, thanks fighter, literally "drawing" distinctions.
"Draw a distinction. Call it the first distinction." - G.Spencer-Brown (The Laws of Form, 1969)
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by