algorithmic modeling for Rhino
Hello, I'm trying to project a point onto the normal plane of a curve.
Using Grasshopper components everything works fine, but when I try to rewrite it in GHPython the "closest point" ends up at an odd location on the plane.
Attached is a screenshot with both versions. Any ideas what I am missing?
Kind regards,
Max
Tags:
Hi Max
I had to re-create your definition. Please, if you need help, attach your definition so that it will require less time for other people to reproduce it.
GhPython works correctly here.
What you see, that is wrong, is in the Grasshopper definition. Putting an Arc data into a Domain does not give the Domain of the future arc-like curve. You must pass the arc through a [Curve] parameter for that to work.
There was also a small mistake in the interpretation of the True/False parameter in rs.PlaneClosestPoint(plane,pt). Without the value, or with True, a point is already returned.
I am letting David know about this issue with arcs in Grasshopper. It might be helpful in newer version of GH.
Thanks,
Giulio
--
Giulio Piacentino
for Robert McNeel & Associates
giulio@mcneel.com
Dear Guilio,
Thanks for clearing that up so quickly! ...And sorry for not attaching the file.
I noticed that passing arc data into the domain component gives me the angle domain in radians, which is surely useful when working with arcs, however confusing when you're used to working with curve domains.
Cheers,
Max
Welcome to
Grasshopper
© 2024 Created by Scott Davidson. Powered by