algorithmic modeling for Rhino
Hi all
I read this post about how to call gh components from python, from Steve Baer
But the arising questions is: where do I find the name of the components I want to call??
I'm trying to see if it is possible to run in parallel cores, the operations for "mesh¦curve" intersections. I don't know how to get their names and add them to the code. Is it any way I could get them (for this components and many other components) specifically in python language??
I'm starting into this thing of programming in python, and I think you call them "Class" or "Kernel type" just correct me if I'm wrong.
I would appreciate some help in this!
Thanks GH world!
Tags:
MCX?
I've posted several Python parallel processing scripts. But! It's much better to use Rhinocommon commands than invoke node-in-code Grasshopper ones since that's a bit circular for the non-multithreaded overall system in which you are running Python within Grasshopper to multi-thread Grasshopper, and there are wide reports of slow-downs over time. The learning curve is high, but it's a finite jungle and Google helps a lot when the manual lacks Python or any code examples for a command.
Here are Rhinocommon intersection options:
http://4.rhino3d.com/5/rhinocommon/?topic=html/AllMembers_T_Rhino_G...
No MeshCurve, so just convert to a polyline, a standard operation called ToPolyline or TryGetPolyline.
Most of the normal commands are in the manual under the Rhino.Geometry "namespace."
Also, if you've ever used Rhinoscript, just quit. It makes debugging hell and is merely other Python scripts that invoke Rhinocommon. You can find the files for Rhinoscript somewhere and study them at least.
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
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by