I am trying to wonk out a problem which require a set of data in XML format. Basically, I need to the measurement of a line (from a point) to each object (all solid / enclose object) it is intersecting. There will be a set of lines radiating from the origin. And say in the end I can get something like:
“object_layer, xi,yi,zi, xj,yj,zj”
until the line doesn’t interacting anything.
The objects will be given as an imported file like STP or something that’s not native to Rhino.
So far I am able to generated the geometry of the lines will be radiating from. and get all the intersections. But couldn’t figure out how to get info about which intersection is come from which line on which object. and not sure what would be best way to output those data to a XML format I am after.
I mean I can manually measure for each segment, and input the object layers. this would be work on the lower line counts, but in some cases, the line counts can go up to few thousands, and doing it manually would be pretty silly. LOL.
Wondering if anyone might have a good strategy to go about this problem. I don’t mind to do some scripting, but it would be ideal if there are grasshopper only solutions.
Thank you so much for all the helps in advance!!!