@AndersDeleuran, thank you for providing both methods. They work great!
Would you by any chance also know how to convert a Rhino mesh into a plankton one in Python?
The plankton documentation shows that the PlanktonGh library has a method, called
ToPlanktonMesh(source) inside its
However, I’m unable to call it in Python. It gives me a read-only error, when I’m trying to initialise an plankton mesh.
Here’s what I’m trying to do:
import Grasshopper as gh
if gh.Folders.DefaultAssemblyFolder not in sys.path:
pm = PlanktonGh.PlanktonMesh() # initialise plankton mesh
pm.ToPlanktonMesh(mesh_plane) # mesh input from grasshopper to plankton mesh
I’m kinda lost here. Unfortunately, I’m not that familiar with C# and dll files. My guess would be that the read-only error stems from methods being private in C#, but
ToPlanktonMesh(source) seems to be public.