RIL
(Rolf)
August 28, 2019, 7:12pm
1
Is it possible to use Math.NET Numerics from GHPython?
I’m asking this for my son which got interested when I hinted about Rhino/Grasshopper for some work he’s doing (I’m not using GHPython myself so I don’t even know how to try if it would work).
https://numerics.mathdotnet.com
TIA
// Rolf
stevebaer
(Steve Baer)
August 28, 2019, 7:17pm
2
I don’t see why not. You would need to place the Math.NET libraries in a location that the python script could load them using
import clr
clr.AddReferenceToFile(...)
1 Like
piac
(Giulio Piacentino)
August 28, 2019, 7:23pm
3
See this:
I think it’s still all valid.
2 Likes
Another option would be Rhino3dm in CPython alongside numpy et al, depending on what he is doing
Graham
Dancergraham:
Rhino3dm
Rhino3dm is still missing stuff.
stevebaer
(Steve Baer)
August 28, 2019, 10:14pm
6
What “stuff” do you need? I only add functionality as it is needed
A while ago I tried creating point cloud and simply didn’t work as expected. I assumed it is still incomplete.
Hi Terry (@Terry_Chappell )
I assume PointCloud is not completely implemented in CPython’s rhino3dm module:
So… I’ve decided to go back to IronPython but this time I used the standalone installation (not the Rhino embedded engine)
This works using my method (csv) perhaps you can apply your method with the dll and make it even faster. Now it doesn’t rely on Rhino application that has tons of unnecessary things done in background.
"""
A script to import points and colors from txt file, then cre…
If I remember correctly it is the AddRange that was missing.
stevebaer
(Steve Baer)
August 29, 2019, 4:36pm
8
Thanks, I added this feature request and will try to get to it soon
https://mcneel.myjetbrains.com/youtrack/issue/RH3DM-33
1 Like
stevebaer
(Steve Baer)
September 2, 2019, 4:07pm
9
https://mcneel.myjetbrains.com/youtrack/issue/RH3DM-33 is now fixed.
A new version of rhino3dm (0.6.0 ) is now available through pypi.org that contains PointCloud additions as defined at
https://mcneel.github.io/rhino3dm/python/api/PointCloud.html
3 Likes