I loaded a rhino3dm file in the browser and was able to get to all the objects in the file.
I can get line curve objects and access start and end points. The return value is an array with xyz values.
The Point3d objects however are coming in as ‘Point’ matching the api below, and I can’t seem to find a way to get it’s xyz values.
https://mcneel.github.io/rhino3dm/javascript/api/Point.html
I am missing something or is it no possible to access xyz coordinates from the point objects from js rhino 3dm?
2 Likes
Willem
(Willem Derks)
2
Hi,
I’d expect there to be a Location property that might not be documented
https://developer.rhino3d.com/api/RhinoCommon/html/P_Rhino_Geometry_Point_Location.htm
Does this help?
-Willem
Disclaimer:
I have no experience with rhino3dm so I might be sending you on a wild-goose chase
1 Like
There was no location property unfortunately.
I will post a screenshot tomorrow
Willem
(Willem Derks)
4
It must be an oversight.
As a temporary workaround you might be able to use getBoundingBox() and grab either min or max from it as your point.
-Willem
2 Likes
I will try it out and report back. Thanks the suggestion
stevebaer
(Steve Baer)
6
It was an oversight. I’ll try to get this tuned up right away.
1 Like
@Willem workaround worked
1 Like
stevebaer
(Steve Baer)
8
@gtalarico1 if you use the latest version of rhino3dm.js found at
https://files.mcneel.com/rhino3dm/js/latest/rhino3dm.js
you should have access to a new location property
2 Likes