Grasshopper

algorithmic modeling for Rhino

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

Anders Holden Deleuran's Friends

  • Mihai C
  • Vasily Sitnikov
  • Chapuline
  • Gregory Quinn
  • Sebastian Gatz
  • Daniel Kolling Andersen
  • Phil Ayres
  • Sood Aakriti
  • M.K.T. Heinrich
  • Fakinos Konstantinos
  • Marc
  • 筑梦NARUTO
  • ng5 Alex
  • CITA
  • Starsk Lara

Anders Holden Deleuran's Groups

Anders Holden Deleuran's Discussions

Polyline Curves with CurveSelf Intersection not acting as expected
4 Replies

Hi All,I'm trying to wrap my head around how the Curve-Self intersection component (ie. Rhino.Geometry.Intersect.Intersection.CurveSelf class) deals with Polyline Curves. See images below and…Continue

Started this discussion. Last reply by Thibault Schwartz Jan 23.

C# Component: Keyboard Shortcuts, More Than One Editor Instance, Missing a Console
2 Replies

I've been getting up to speed with the C# scripting component and have a few questions/suggestions (coming from a GHPython component experience): 1) Does the C# component have any keyboard…Continue

Started this discussion. Last reply by Anders Holden Deleuran May 21, 2015.

GHPython Some Bottlenecks (Bugs?)
37 Replies

Hi Giulio and Steve, I've recently noticed a couple of bottleneck with the GHPython component which can quite severely impede on performance. Thought I would bring them up here so as to hopefully…Continue

Started this discussion. Last reply by Giulio Piacentino on Friday.

Geometry Parameter: Vector being cast to Point

When you pass a Vector3D through a Geometry parameter it is cast to Point3D. Seems like a bug to me. See attached file. Best, AndersContinue

Started Jan 20, 2015

 

Hello, Anders Holden Deleuran!

Latest Activity

Giulio Piacentino replied to Anders Holden Deleuran's discussion GHPython Some Bottlenecks (Bugs?)
"LOL"
Friday
Marcus Strube replied to Anders Holden Deleuran's discussion GHPython Some Bottlenecks (Bugs?)
"I was just kidding, Giulio... Obviously 'real programmers' never use Python at all: (Source: Marcos Besteiro)"
Friday
Giulio Piacentino replied to Anders Holden Deleuran's discussion GHPython Some Bottlenecks (Bugs?)
"I find rhinoscript an easy and beautiful module (not a language), that works great in Python. RhinoCommon is great for other reasons; of course, it depends on what you are trying to do."
Friday
Marcus Strube replied to Anders Holden Deleuran's discussion GHPython Some Bottlenecks (Bugs?)
"This way it can be done just using Rhinocommon: (Because Rhinoscript is the Rhino's Pascal... :) "
Friday
Alik Sumin replied to Anders Holden Deleuran's discussion GHPython Some Bottlenecks (Bugs?)
"thanks so much"
Thursday
Stephen Maher replied to Anders Holden Deleuran's discussion GHPython Some Bottlenecks (Bugs?)
"+1"
Thursday
Anders Holden Deleuran replied to Anders Holden Deleuran's discussion GHPython Some Bottlenecks (Bugs?)
"Don't be sad Giulio, I can only imagine how difficult it must be to get all this playing nice! We've got your back, always :)"
Thursday
Giulio Piacentino replied to Anders Holden Deleuran's discussion GHPython Some Bottlenecks (Bugs?)
"Btw, I took the liberty to rewrite the definition to have the same result, but always work no matter the size of the triangles and using just a little bit of rhinoscriptsyntax. Giulio--Giulio Piacentinofor Robert McNeel &…"
Thursday
Giulio Piacentino replied to Anders Holden Deleuran's discussion GHPython Some Bottlenecks (Bugs?)
"Before opening this, I was going to bet that this was, again, a ghpythonlib problem. I would discourage anyone from using that library at this moment, unless it is just to use a method that is otherwise not present in rhinoscriptsyntax or Rhino…"
Thursday
Anders Holden Deleuran replied to Anders Holden Deleuran's discussion GHPython Some Bottlenecks (Bugs?)
"Could be a memory leak caused by using the ghpythonlib library (I'm not sure if this is still a thing, but I remember Stephen and Giulio talking about it recently). In my experience, you're almost always better off (in terms of…"
Thursday
Alik Sumin replied to Anders Holden Deleuran's discussion GHPython Some Bottlenecks (Bugs?)
"Hi guys, I also have a problem with ghPython perfomance. In my case, when I open gh definition (see atached files), it work fast, about 5 seconds, but if I try recompute it ,even without any changes, it works slowly (10 sec), next time 12, 15, 20,…"
Thursday
Anders Holden Deleuran replied to Daniel Piker's discussion Mechanical assembly simulation - tutorial videos and examples in the group Kangaroo
"This is terrific, cheers Dan!"
May 18
Anders Holden Deleuran replied to Gabriele_333's discussion Getting Rhino objects ID in Python (again)
"Glad you figured it out :) Also, you might want to get acquainted with the dir(), help() and type() Python functions. They're really useful for inspecting data types (objects) and their methods."
May 17
Anders Holden Deleuran replied to Gabriele_333's discussion Getting Rhino objects ID in Python (again)
"You've got several issues here it seems:- The Extrusion type doesn't have a GetBoundaryBox method. It does have a GetBoundingBox method though. Maybe that's the one you we're looking for.-The issues that I…"
May 13
Anders Holden Deleuran replied to Gabriele_333's discussion Getting Rhino objects ID in Python (again)
"Hehe, I see :)If it's because you need to have persistent data (in your case: your objects "remember" where you moved them to) this can be done fairly easily in Grasshopper and would negate having to deal with the Rhino document at…"
May 12
Anders Holden Deleuran replied to Gabriele_333's discussion Getting Rhino objects ID in Python (again)
"1) I think you might be seriously over complicating things here. Is there any reason that you're are not just piping the geometry from the Rhino document to the Grasshopper document and operating on it from here? Operating directly on…"
May 12

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 Photos

Loading…
  • Add Photos
  • View All

Anders Holden Deleuran's Videos

  • Add Videos
  • View All

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 (13 comments)

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

Join Grasshopper

At 7:31am on November 19, 2014, hamia Aghaiemeybodi said…

Many thanks Anders,

I used xlrd and xlwt it works but its a bit tricky. I'll try the .NET methods.

cheers

At 2:55pm on November 17, 2014, hamia Aghaiemeybodi said…

Hi Anders,

Do you know how can I open and excel sheet in python grasshopper, add some line to the sheet, save and close it!

Thanks

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.

 
 
 

Translate

Search Grasshopper

Photos

  • Add Photos
  • View All

© 2016   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service