Grasshopper

generative modeling for Rhino

Axiom
Axiom
  • Male
  • Glasgow
  • United Kingdom
Share on Facebook
Share Twitter
  • Blog Posts
  • Discussions (8)
  • Events
  • Groups
  • Photos
  • Photo Albums
  • Videos

Axiom's Discussions

Rotating Breps in VB.net
3 Replies

Hi everyone,I am wondering how to select the origin point on which a Brep is rotated in VB.net? The Breps I have created are just boxes and i would like to be able to rotate them on the y axis from…Continue

Started this discussion. Last reply by David Rutten Dec 16, 2009.

Moving objects in VB.net
6 Replies

Hi Everyone,I'm new to VB.net and really hope someone can help me out. I have managed to create a Vb script that outputs a list of Closed Breps and another that outputs a list of 3dPoints. What i…Continue

Started this discussion. Last reply by leon Sep 22, 2010.

Select certain values from a list
1 Reply

Hi Everyone,I am just starting out with GH and VB. If I have a list of values as an input is there a way using vb script to select certain values from that list? E.g if I have a list of 10 values how…Continue

Started this discussion. Last reply by Roberto Nov 9, 2009.

How to overlay a grid of points onto a surface
4 Replies

Hi everyone! I'm new to grasshopper and really hope someone can help me out there.Does anyone know of a way that I could take a rhino surface and overlay a grid of points onto the surface and then…Continue

Started this discussion. Last reply by Axiom Nov 6, 2009.

 

Axiom's Page

Latest Activity

Profile Icon
leon replied to Axiom's discussion 'Moving objects in VB.net'
Something like this should do it 1. Graft a list of input breps 2. Find a the area centroid of each object 3. Construct vectors from the centroid points to origin (0,0,0) 4. Move all breps to origin on this vector 5. Make x vectors of different…
Sep 22, 2010
Profile Icon
tib replied to Axiom's discussion 'Moving objects in VB.net'
is the vb component the only solution to achieve this? thanks for your precious help..
Sep 22, 2010
Profile Icon
tib replied to Axiom's discussion 'Moving objects in VB.net'
Hi, I'm also interested in leon's problem. how to position breps center points on a given point list or grid is there a component we can feed with center points on one inlet, and with 3d shapes in an other inlet. Thanks for any clue.
Sep 20, 2010
Profile Icon
leon replied to Axiom's discussion 'Moving objects in VB.net'
Hi David, Im looking to do the exact same thing although without having any experience in vb.net i would like to achieve this in grasshopper. I.e I have a number of breps/surfaces which i am inputting into grasshopper. I want to take their center…
Jul 9, 2010
Profile Icon
David Rutten replied to Axiom's discussion 'Rotating Breps in VB.net'
Hi Axiom, OnBreps have a Rotate method as well as a Transform method. If you can get away with using one of the overloads of OnBRep.Rotate() I suggest you follow that route. In either case, rotation origins are just regular points, and rotation…
Dec 16, 2009
Profile Icon
Axiom replied to Axiom's discussion 'Rotating Breps in VB.net'
Hi Dirk, Thanks for getting back to me. I had managed to find a bit of a work around but it involved me doing a lot more manual calculations. I will try this code as soon as I get a free moment. Thanks again
Dec 16, 2009
Profile Icon
Dirk Anderson replied to Axiom's discussion 'Rotating Breps in VB.net'
you need to determine which is the bottom surface and then use a centroid of the brep.Face().NurbsSurface as an origin point. See code below to work extrapolate the surface and centroid. Private Sub RunScript(ByVal inContext As List(Of OnBrep),…
Dec 8, 2009
Profile Icon

Rotating Breps in VB.net

Hi everyone,I am wondering how to select the origin point on which a Brep is rotated in VB.net? The Breps I have created are just boxes and i would like to be able to rotate them on the y axis from the centre of the bottom surface.I have had a look on the Grasshopper Primer V2 and found the code "rotate.Rotation(angle, OnUtil.On_yaxis, OnUtil.On_origin)" but I don't know how to change the OnUtil.On_origin to the centre point of the base surface.Any help would be very much appreciated.See More
Discussion posted by Axiom Nov 24, 2009
Profile Icon
Axiom replied to Axiom's discussion 'Moving objects in VB.net'
Hi David, Thanks so much for your help, it worked perfectly. I didn't realise that the points needed to be a motion vector. Thanks again.
Nov 24, 2009
Profile Icon
David Rutten replied to Axiom's discussion 'Moving objects in VB.net'
Hi Axiom, we actually have a separate forum especially for VB and C# questions, you may consider posting there to avoid confusion. Moving objects in the Rhino SDK often works in 2 ways: 1) Some object carry a Translate() function, which takes a…
Nov 23, 2009
Profile Icon

Moving objects in VB.net

Hi Everyone,I'm new to VB.net and really hope someone can help me out. I have managed to create a Vb script that outputs a list of Closed Breps and another that outputs a list of 3dPoints. What i would like to do is use the list of 3dpoints to position each of the Breps. i.e the first brep would be positioned by the first point in the 3dPoint list.Does anyone know how I could do this VB.net? Even knowing how to move Breps in Vb would be a great help.Thanks in advance.See More
Discussion posted by Axiom Nov 23, 2009
Profile Icon
Roberto replied to Axiom's discussion 'Select certain values from a list'
Hi Axiom. One rough thing I can think of would be to have your selected values in a list of integers (being those positions in the main list you would like to process) and call them in a loop. In pseudocode: Sub RunScript(ByVal Mainlist As List(Of…
Nov 9, 2009
Profile Icon

Select certain values from a list

Hi Everyone,I am just starting out with GH and VB. If I have a list of values as an input is there a way using vb script to select certain values from that list? E.g if I have a list of 10 values how could i select values 2 and 5 from the list?Thanks in advance.See More
Discussion posted by Axiom Nov 8, 2009
Profile Icon
Axiom replied to Axiom's discussion 'How to overlay a grid of points onto a surface'
Hi, Thanks so much for putting that GH file together and sorry for the late reply. I am having some problems inputting the data into a function F(x) as it keeps going red (is the data not suitable to be used in functions?), but I realize this is…
Nov 6, 2009
Profile Icon
David Wood replied to Axiom's discussion 'How to overlay a grid of points onto a surface'
Hi, Sorry for the slow reply... Is this the sort of thing you mean? It's a basic read-out of the XYZ co-ordinates of each point on the surface, but you could probably add a way of listing all the points so that you could visually see which…
Nov 5, 2009
Profile Icon
Axiom replied to Axiom's discussion 'How to overlay a grid of points onto a surface'
Thanks for the advice. I have had a go with the practice file which is great as it gives me the grid. The only thing is that it gives me the (x,y,z) values linked to the corners of each surface. Is there a way to take this list and sort it so that…
Nov 4, 2009

Comment Wall

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

Join Grasshopper

  • No comments yet!
 
 
 

Translate

Search Grasshopper

Members

  • Pouria
  • eva poulopoulou
  • Alberto Lara
  • Josué Sedano Alva
  • Alex Keifer
  • Brian Harms
  • sergio
  • Joy Li
  • Fabian Posadas
  • Simon Lee
  • Ching
  • Carlos Manuel Ruz Troncoso

Photos

  • Add Photos
  • View All

© 2012   Created by Scott Davidson.   Powered by .

Badges  |  Report an Issue  |  Terms of Service