What am I missing here to not see a line surface intersection method?
https://developer.rhino3d.com/api/rhinocommon/rhino.geometry.intersect.intersection
What am I missing here to not see a line surface intersection method?
https://developer.rhino3d.com/api/rhinocommon/rhino.geometry.intersect.intersection
Do I have to use that weird Rayshoot method? But it doesn’t take a line, only a Ray3D which doesn’t work to click on to get the documentation for:
Hi eobet,
There is also CurveSurface https://developer.rhino3d.com/api/rhinocommon/rhino.geometry.intersect.intersection/curvesurface
Ok, you’d have to create the curve (interval) in the bounding box first…
Yes, but that’s my point in making this thread… I don’t need a curve, I just want a simple line (as I might end up testing a few hundred lines against a single surface).
do you have an infinite line or a line curve?
I have a lot of this currently:
l1 = Line(s1.PointAt(0.0, 0.0), s1.NormalAt(0.0, 0.0), MaxDistance)
I guess they could be infinite, I don’t know how Ray3D looks since the link doesn’t work.
Here you can dive into it rCommon shootray
https://developer.rhino3d.com/api/RhinoScriptSyntax/#surface-ShootRay
Thank you, I’ll experiment with that!
I have to say (again), learning this from documentation is really difficult. Because not only do I apparently look in the wrong documentation sections, there’s little crosslinking, few explanations, and of course the dead links.
For example, what is the “reflection” in both what you posted above and this here… I don’t think it says and there’s no links to any explanation either:
https://developer.rhino3d.com/api/rhinocommon/rhino.geometry.intersect.intersection/rayshoot
Yes, looks like the huge documentation is in process being consolidated…
In the old documentation you’ll find some sample scripts indicated by this sign:
You’ll find a python sample at the bottom of this page:
links in the developer docs should work now again.