Grasshopper

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?

 

 

 


 

Views: 1012

Replies to This Discussion

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.

 

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service