Grasshopper

generative modeling for Rhino

Toby's Friends

  • Uli Horner
  • Paul Cowell
  • Arthur Mamou-Mani
  • Paul N Jeffries

Toby's Groups

Toby's Discussions

VB Line - Accessing List of 3dPoints
9 Replies

Started this discussion. Last reply by David Rutten Jan 22, 2011.

Changing current layer in VB.NET
4 Replies

Started this discussion. Last reply by Toby May 20, 2009.

 

Toby's Page

Latest Activity

Toby replied to ĐỒNG VIẾT NGỌC BẢO's discussion duplicate curves when using "iso curve"
"Try this:"
Jul 1, 2011
Toby replied to Archieboy's discussion how to move very close points to one point?
"This could be one way... decompose the point... then find the average of value of XYZ "
May 31, 2011
Toby liked Sebastian L.'s photo
May 23, 2011
Toby replied to SUNGMIN LEE's discussion how can I select these points by cull pattern
"Another way to create the cull pattern using the param viewer."
May 18, 2011
David Rutten replied to Toby's discussion VB Line - Accessing List of 3dPoints
"This is very weird indeed. I never would have guessed this could be a problem. Taking out the casting operators for Vector3d and Point3d solves the problem. Using Narrowing casting operators solves the problem. Using 'Option Strict On'…"
Jan 22, 2011
Toby replied to Toby's discussion VB Line - Accessing List of 3dPoints
"Thanks all your help. Strange that VB was getting confused between points and vectors only when you fed it a list (but items were fine). When I am back in the office I will have to make the choice whether to stay in 0.8.003 or rewrite all my VB…"
Jan 22, 2011
Giulio Piacentino replied to Toby's discussion VB Line - Accessing List of 3dPoints
"It seems that this was introduced after this post. This is the explanation. The following code works, because it states explicitly the variable type. Without this, it seems Vb (for some reason) thinks that pt1(i) might be a Vector3d as…"
Jan 22, 2011
David Rutten replied to Toby's discussion VB Line - Accessing List of 3dPoints
"Darnit, there is a bug in RhinoCommon. It is causing confusion between two Line constructors when Option Strict is Off.   There's no solution, you cannot use this constructor at present. You'll have to say:   Dim ln As…"
Jan 22, 2011
Arthur Mamou-Mani replied to Toby's discussion VB Line - Accessing List of 3dPoints
"Getting rid of the problematic "new" gives: "
Jan 22, 2011
Arthur Mamou-Mani replied to Toby's discussion VB Line - Accessing List of 3dPoints
"Thanks David, Still having an error :( "
Jan 21, 2011
David Rutten replied to Toby's discussion VB Line - Accessing List of 3dPoints
"Missing bracket at red squiggly line. I'll fix it in my post.   -- David Rutten david@mcneel.com Poprad, Slovakia"
Jan 21, 2011
Arthur Mamou-Mani replied to Toby's discussion VB Line - Accessing List of 3dPoints
"Thanks David ! I have tried the script but get an error unfortunately... Cheers,   Arthur"
Jan 21, 2011
David Rutten replied to Toby's discussion VB Line - Accessing List of 3dPoints
"Hi Toby,   I don't see a gaping error either right away. Well, I do, but since you claim your second script works that's obviously not it.   Rhino.Geometry.Line is a structure in RhinoCommon, sometimes called a "Value…"
Jan 21, 2011
Toby posted a discussion

VB Line - Accessing List of 3dPoints

Hi all,I recently updated to V0.8.0004. Since updating from the previous version I am having trouble with some very simple code that was working perfectly. I have simplified this down even further to this:Private Sub RunScript(ByVal pt1 As List(Of Point3d), ByVal pt2 As List(Of Point3d), ByRef A As Object)Dim myLine As New LineDim arrLines As New List (Of Line)   For i As Integer = 0 To pt1.Count - 1      myLine = New Line (pt1(i), pt2(i))      arrLines.Add(myLine)NextA = arrLinesEnd SubI then…See More
Jan 21, 2011
Toby replied to Esben Clausen Nørgaard's discussion Random placed points
"To see what errors you are getting out you can attach a text Panel to the out connector on the VB.net panel. Attached is a working definition."
Nov 26, 2009
Toby replied to voronoiii's discussion Hey guys,.. Problem with division..
"Or another allowing you to select all 3 (or more) curves at once. "
Aug 26, 2009

Comment Wall (1 comment)

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

Join Grasshopper

At 11:35am on March 13, 2011, Ruairi Glynn said…

Hi Toby

Have you planned to come to http://www.fabricate2011.org at the Bartlett in April? Just thought I'd have a look round rhinofablab for people likely to be interested.

Let me know, McNeel and I have arranged a discount for the Rhino community.

Ruairi Glynn

Co-Chair of Fabricate
 
 
 

Translate

Search Grasshopper

Photos

  • Add Photos
  • View All

© 2013   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service