Grasshopper

generative modeling for Rhino

eric brown
  • Male
  • Oakland, CA
  • United States
Share on Facebook
Share Twitter
  • Blog Posts
  • Discussions (40)
  • Events
  • Groups
  • Photos
  • Photo Albums
  • Videos

eric brown's Discussions

Error: Reference to a non-shared member requires an object reference.
2 Replies

Can someone tell me why the line "Dim vectQ As Vector3d = Quaternion.Rotate(vectIn)" throws the error "Error: Reference to a non-shared member requires an object reference."? Private Sub…Continue

Started this discussion. Last reply by eric brown Jun 3, 2011.

Has anyone tried multi-threading here??
8 Replies

Is multi-threading even possible in Grasshopper? Continue

Started this discussion. Last reply by Steve Baer Jun 1, 2011.

'print' in C#
7 Replies

What is the C# equivalent of the VBScript print() command?

Started this discussion. Last reply by sawsan Mar 15.

read serial port...
1 Reply

Anyone got a script (or script fragment) that will let me read ascii data that is being streamed to the serial port?   I can't seem to get Firefly's 'Read' to work.

Started this discussion. Last reply by Andy Payne May 2, 2011.

 

eric brown's Page

Latest Activity

sawsan replied to eric brown's discussion 'print' in C#
"th"
Mar 15
David Rutten replied to eric brown's discussion 'print' in C#
"Rhino.RhinoApp.Write() Rhino.RhinoApp.WriteLine() are ways the print text into the Rhino command history window using VB.NET or C# from RhinoCommon. -- David Rutten david@mcneel.com Poprad, Slovakia"
Mar 15
sawsan replied to eric brown's discussion 'print' in C#
"it does not work :(( with Print "
Mar 15
eric brown replied to eric brown's discussion Error: Reference to a non-shared member requires an object reference.
"A HA! Right again you are.  "
Jun 3, 2011
David Rutten replied to eric brown's discussion Error: Reference to a non-shared member requires an object reference.
"The Rotate() method is not Shared, thus you need to call it on an instance of the Quaternion type:   Dim Q As New Quaternion() Dim vQ As Vector3d = Q.Rotate()   But note that Quaternion is a new type in the Rhino5 SDK and you won't be…"
Jun 3, 2011
eric brown posted a discussion

Error: Reference to a non-shared member requires an object reference.

Can someone tell me why the line "Dim vectQ As Vector3d = Quaternion.Rotate(vectIn)" throws the error "Error: Reference to a non-shared member requires an object reference."? Private Sub RunScript(ByVal q1 As List(Of Double), ByVal q2 As List(Of Double), ByVal q3 As List(Of Double), ByVal q4 As List(Of Double), ByVal vectIn As Vector3d, ByRef vectOut As Object)  Dim i As int32  Dim lstOut As New List (Of Vector3d)  For i = 0 To q1.Count - 1    Dim Q As New Quaternion(q1(i), q2(i), q3(i),…See More
Jun 3, 2011
Steve Baer replied to eric brown's discussion Has anyone tried multi-threading here??
"Here's a python sample that uses the Parallel library that Robert mentioned. http://python.rhino3d.com/entries/607-Multithreaded-Python You're going to want to have at least the May 31st, 2011 WIP of Rhino 5 to test."
Jun 1, 2011
eric brown replied to eric brown's discussion Has anyone tried multi-threading here??
"Just what I was looking for.  THX."
May 9, 2011
Damien Alomar replied to eric brown's discussion Has anyone tried multi-threading here??
"Well, that's certainly a change in things from almost every other time I've asked.  It would be expected that all of the Doc ops would require a single thread, but most of the time its the geometry manipulation that's the…"
May 7, 2011
Damien Alomar replied to eric brown's discussion Has anyone tried multi-threading here??
"Awesome..."
May 7, 2011
robert cervellione replied to eric brown's discussion Has anyone tried multi-threading here??
"also you may want to check out the Parallel library in .net 3.5 or 4.0. they allow you to do simple for and foreach loops without the need for thread managment.   the part i find difficult is making everything synchronous…"
May 7, 2011
Daniel Piker replied to eric brown's discussion Has anyone tried multi-threading here??
May 7, 2011
Steve Baer replied to eric brown's discussion Has anyone tried multi-threading here??
"Not entirely true. Most of the geometry operations are threadsafe. Just don't start messing with the RhinoDoc while in threads.   I've been working on multithreaded python scripts lately and may have something to show in the near…"
May 7, 2011
Damien Alomar replied to eric brown's discussion Has anyone tried multi-threading here??
"None of the Rhino SDKs are threadsafe, so there really isn't any use in trying multithread them as you'll just run into a ton of issues.  That's not to say that you can't multithread certain operations, but its going to have…"
May 7, 2011
eric brown replied to eric brown's discussion 'print' in C#
"Capital "P" did the trick. Thanks"
May 6, 2011
Giulio Piacentino replied to eric brown's discussion 'print' in C#
"It's also Print (notice the capital "P"), and you also need a string where there's the message. msg cannot be an integer, for example. However, every object has a ToString() method in…"
May 6, 2011

Profile Information

Company, School, or Organization
Performance Structures
Web or Blog
http://www.performancestructures.com

Comment Wall

You need to be a member of Grasshopper to add comments!

Join Grasshopper

  • No comments yet!
 
 
 

Translate

Search Grasshopper

Photos

  • Add Photos
  • View All

© 2013   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service