Hello,
I am attempting to use the Rhino.ShootRay command in RhinoScript VB. I need the ray to do rotations in azimuth and elevation, but I cannot get it to rotate. I have tried to change the vector direction (shown below) but have failed miserably. Do any of you have any experience with rotating a ShootRay? If so, help would be much appreciated. My code is below:
Call ShootRayTest()
Sub ShootRayTest()
Dim strObject
strObject = Rhino.GetObject()
If Not Is Null (strObject) Then
Rhino.SelectObjects strObject
End If
Dim reflections, dir, arrPoint(2)
dir = Rhino.VectorRotate(Array(1,0,0),90.0,Array(0,0,1))
reflections = Rhino.ShootRay(strObject, Array(0,0,0),dir,1)
Rhino.AddPolyline reflections
Rhino.AddPoints reflections
3 posts - 2 participants