algorithmic modeling for Rhino
What am I doing wrong? Why doesn't this work:
Private Sub RunScript(ByVal dblAngle As Double, ByVal arrAxis As Vector3d, ByRef q1 As Object, ByRef q2 As Object, ByRef q3 As Object, ByRef q4 As Object)
'your code goes here…
Dim Q As Quaternion.Rotation(dblAngle, arrAxis)
q1 = Q.A
q2 = Q.B
q3 = Q.C
q4 = Q.D
End Sub
The error returned is "Error: Array bounds cannot appear in type specifiers."
Quaternion.Rotation is supposed to accept a Vector3d data type here...isn't it?
Tags:
This is not valid code:
Dim Q As Quaternion.Rotation(dblAngle, arrAxis)
you should say:
Dim Q As Quaternion = Quaternion.Rotation(dblAngle, arrAxis)
--
David Rutten
david@mcneel.com
Poprad, Slovakia
GOT IT!
Thanks for the speedy reply.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by