Grasshopper

algorithmic modeling for Rhino

Anders Holden Deleuran
  • Male
  • Copenhagen
  • Denmark
Share on Facebook
Share Twitter

Anders Holden Deleuran's Friends

  • Phil Ayres
  • Aakriti Sood
  • CITA
  • Henrik Leander Evers
  • Brian Ringley
  • Mostapha Sadeghipour Roudsari
  • Miguel Rus
  • Erick Vásquez
  • Toussaint Jimenez Rojas
  • kao.gene
  • djordje
  • Ian Huff
  • hamia Aghaiemeybodi
  • Jeg
  • Mathias Gmachl

Anders Holden Deleuran's Groups

Anders Holden Deleuran's Discussions

Wish: Lock position and Name/Nickname of canvas objects
8 Replies

Hi David, I just did a search for "lock position" and a couple of…Continue

Started this discussion. Last reply by David Rutten Jun 25.

Making Kangaroo forces using Node-in-code is very slow
3 Replies

Hi All,Following a couple of…Continue

Tags: Node-in-code, Kangaroo, Python

Started this discussion. Last reply by Anders Holden Deleuran Apr 4.

Customize Remote Control Panel accent color and font style
2 Replies

First off let me express how awesome it is having the RCP back again. I've been testing it out this past week and it works really well! That…Continue

Tags: RCP

Started this discussion. Last reply by Anders Holden Deleuran Feb 28.

Wish: Timer block access within Grasshopper GUI
6 Replies

Hi David, When using timers, specifically with Kangaroo, I tend to use the global timer block switch on the Windows taskbar quite a lot. This works quite well, however it is somewhat inconvenient…Continue

Started this discussion. Last reply by Anders Holden Deleuran Sep 1, 2013.

 

Hello, Anders Holden Deleuran!

Latest Activity

Anders Holden Deleuran replied to Peter White's discussion Pull to Mesh using open mesh to simulate fluid path in the group Kangaroo
"Sorry missed this. In line 89 in the Python code: DrainCurves = makeDrainMeshPaths(Mesh,Vertices,MaxSteps,Tolerance)You should be able to replace the Vertices parameter with any list of starting points. I don't have Rhino handy right…"
16 hours ago
Anders Holden Deleuran replied to Peter White's discussion Any way to have Galapagos update automatically?
"Ah, well in that case, ignore me ;)"
16 hours ago
Anders Holden Deleuran replied to Peter White's discussion Any way to have Galapagos update automatically?
"Adding to what Andrew said, by "live physical model" do you mean an iterative solver like Kangaroo? If so, you could solve the physical process in one GH iteration using Zombie Kangaroo. If I understand your problem correctly.."
17 hours ago
Anders Holden Deleuran replied to Kristoffer Negendahl's discussion ShorterWalk how to reference ShortestWalk in python?
"I made a short post about how to import Python modules here. For NetworkX you need to download the 1.5 version and extract the folder simply called "networkx" from the zip file (networkx-1.5.zip\networkx-1.5\networkx). Copy paste…"
yesterday
Anders Holden Deleuran replied to Dalia Hafiz's discussion loop through sliders
"TT Toolbox has a brute force component which will loop through all possible slider combinations. Of course this is actually more expensive than using Galapagos, but it will give all possible solutions :) "
Monday
Anders Holden Deleuran replied to Caleb Wild's discussion How to create an "aerodynamic" form?
"You might to check out the paper "Generative Fluid Dynamics: Integration of Fast Fluid Dynamics and Genetic Algorithms for wind loading optimization of a free form surface" by Angelos Chronis. It's available for free…"
Monday
Anders Holden Deleuran replied to Dmitry's discussion python component error, only one run per session, copy paste impossible
"The only thing I can think of is that you might be running an "out of date" service release of Rhino. Try checking for updates. As far as I can recall we're at SR10 now. If that doesn't work try the McNeel discourse forum. Steve…"
Saturday
hamia Aghaiemeybodi left a comment for Anders Holden Deleuran
"Hi Anders, thanks for the reply. I checked that already it says if it is cylinder but I'm looking for a way to find out an easy way to pre-rationalize sub-surfaces which are not cylinder but close to cylinder so I can convert them to cylinder…"
Friday
Anders Holden Deleuran replied to Kristoffer Negendahl's discussion ShorterWalk how to reference ShortestWalk in python?
"No worries, glad you found it interesting :)"
Oct 16
Anders Holden Deleuran replied to Kristoffer Negendahl's discussion ShorterWalk how to reference ShortestWalk in python?
"On a side note, if you're implementing graphs in your Python code I would consider using the NetworkX module. I've used it quite extensively on a couple of projects now. Note that versions after 1.5 do not work well with…"
Oct 16
Anders Holden Deleuran replied to Tree's discussion OnUnload request
"Actually Surface pro has 4-8 GB, at least according to wikipedia http://en.wikipedia.org/wiki/Microsoft_Surface :)"
Oct 11
hamia Aghaiemeybodi left a comment for Anders Holden Deleuran
"Hi Anders; Do you any easy and basic way to check if a double surface cab get converted into cylinder surface? Basically for fabrication to check if I can reduce the cost by converting few double curved panel and get more or less the same…"
Oct 10
Anders Holden Deleuran replied to Adem O'Byrne's discussion Python in Grasshopper: Mapping Buildings onto grasshopper built topography #urgent
"See Djordje's answer here. It should explain the difference between targeting the Rhino document and the Grasshopper document when writing Python scripts. I'm not sure what you are referring to about "As usual, python never…"
Oct 9
Anders Holden Deleuran replied to Nenov Ivo's discussion Python: Deconstruct a plane into its component parts
"Great answer Djordje. Guess mine was a wee bit brief and assuming. Glad you figured it out Nenov :)"
Oct 9
Anders Holden Deleuran replied to Peter White's discussion Pull to Mesh using open mesh to simulate fluid path in the group Kangaroo
"I internalized the mesh in the file attached above. I did it rather quickly so I might have deleted too much of the mesh in the process. Here's a quick guide fr future reference:0) Run the Rhino command check on the mesh. If you've got a…"
Oct 9
Anders Holden Deleuran replied to Peter White's discussion Pull to Mesh using open mesh to simulate fluid path in the group Kangaroo
"In addition to Daniel's suggestion I also just tried it out using the drainage definition I uploaded here. I had to clean up the mesh in Rhino, scale it down and move it the origin in order for the script to run. Does seems to work though.…"
Oct 8

Profile Information

Company, School, or Organization
PhD Fellow, CITA, Royal Danish Academy of Fine Arts, School of Architecture
Web or Blog
http://www.andersholdendeleuran.com

Anders Holden Deleuran's Blog

Mesh Analysis GHPython Components

Hi All,



I'm currently in the process of wrapping my head around GitHub. Seeing as how I'm now back in academia I thought this might be a good chance to share some code, for once :)



CITA recently helped conduct the Amphibious Hamburg workshop at the AAC in Hamburg co-tutored by…

Continue

Posted on July 17, 2014 at 6:30am — 7 Comments

Comment Wall (11 comments)

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

Join Grasshopper

At 2:20pm on October 17, 2014, hamia Aghaiemeybodi said…

Hi Anders, thanks for the reply. I checked that already it says if it is cylinder but I'm looking for a way to find out an easy way to pre-rationalize sub-surfaces which are not cylinder but close to cylinder so I can convert them to cylinder surface later! if it make any sense to you . . .

At 5:24pm on October 10, 2014, hamia Aghaiemeybodi said…

Hi Anders;

Do you any easy and basic way to check if a double surface cab get converted into cylinder surface? Basically for fabrication to check if I can reduce the cost by converting few double curved panel and get more or less the same result!

many thanks!

At 7:30am on January 29, 2014, hamia Aghaiemeybodi said…

Many thanks Anders;

I figured that out, now I'm looking for way to convert text to one single curve (to save time for laser cutting). At the moment i get the out line of text as curve which is great but still time consuming.

Regards,

H/

At 7:26am on January 28, 2014, hamia Aghaiemeybodi said…

here is the complete one:

if(!string.IsNullOrEmpty(face) && size > 0 && !string.IsNullOrEmpty(content) &&
pl.IsValid)
{

var te = RhinoDoc.ActiveDoc.Objects.AddText(content, pl, size, face, bold, italics);
Rhino.DocObjects.TextObject txt = RhinoDoc.ActiveDoc.Objects.Find(te) as Rhino.DocObjects.TextObject;

if(txt != null)
{
var tt = txt.Geometry as Rhino.Geometry.TextEntity;
A = tt.Explode();
}

RhinoDoc.ActiveDoc.Objects.Delete(te, true);

At 7:14am on January 28, 2014, hamia Aghaiemeybodi said…

Hi Anders;

Do you know how can i convert  this c# code into python? The goal is to creat single curve text for laser cut:

RhinoDoc.ActiveDoc.Objects.AddText(content, pl, size, face, bold, italics);Rhino.DocObjects.TextObject txt = RhinoDoc.ActiveDoc.Objects.Find(te) as Rhino.DocObjects.TextObject;

thanks . . .

At 12:17am on March 7, 2013, hamia Aghaiemeybodi said…

Hi.

Of course. Thanks for reply. I'm using conditional check. It helps more and as you said easier to figure out where the problem is.

Thanks,

At 9:57am on March 4, 2013, hamia Aghaiemeybodi said…

Hej man,

I found it again, seems like to solve my problem i just need to post my question on your wall :D . .. 

cheers...

At 8:04am on March 4, 2013, hamia Aghaiemeybodi said…

Hi anders,

I'm trying to split curves in python and i get this eror:

Runtime error (TypeErrorException): Parameter must be a Guid or string representing a Guid

Im sure its Guid!!!

here is the simple script:

import rhinoscriptsyntax as rs
import Rhino as rc
curve01=rs.coercegeometry(x)
curve01.Domain = rc.Geometry.Interval(0,1)
print (rs.CurveDomain(curve01))
a=rs.SplitCurve(curve01,y)

ay idea!

Thanks.

At 1:53am on February 28, 2013, hamia Aghaiemeybodi said…

Just fixed the problem, Thanks anyway.

There was a coding mistake from my side :) ...

At 12:54am on February 28, 2013, hamia Aghaiemeybodi said…

Hi anders,

I'm working on a fillet script in python grasshopper, everything works fine as long as input polylines are in item structure, it gives eror when i set them in datatree structure this eror pops up:

 Runtime error (TypeErrorException): Parameter must be a Guid or string representing a Guid

any idea?!

fillet.gh

 
 
 

Translate

Search Grasshopper

Photos

  • Add Photos
  • View All

© 2014   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service