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
  • Michel Schmeck
  • Gregory Quinn
  • Sebastian Gatz
  • Daniel Kolling Andersen
  • Phil Ayres
  • SA
  • M.K.T. Heinrich
  • Fakinos Konstantinos
  • Marc
  • 筑梦NARUTO
  • ng5 Alex
  • CITA

Anders Holden Deleuran's Groups

Anders Holden Deleuran's Discussions

(Forum bug) Activity Feeds Appear Broken
2 Replies

Hi All,For the past week or so the activity feeds on Home and My Page appear to be broken (for me). Couple of things I've noticed: 1) On My Page the Latest Activity feed is either empty or not…Continue

Started this discussion. Last reply by djordje yesterday.

GHPython: Slider Undo Causes Input Param to Temporarily Not Exist
2 Replies

Hi Giulio/Steve, Recently noticed a small "bug" in the GHPython component (also present in the Rhino 6 WIP version): If you have a slider wired up to an input param, change the slider and then undo,…Continue

Started this discussion. Last reply by Anders Holden Deleuran Sep 5, 2016.

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, 2016.

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.

 

Hello, Anders Holden Deleuran!

Latest Activity

Skalany Andrzej liked Anders Holden Deleuran's video
Jan 16
Sepideh Garivani liked Anders Holden Deleuran's profile
Jan 13
Anders Holden Deleuran replied to Patrick Bedarf's discussion Type Hint Issue
"Just a small addendum to Tom and Giulio's post: You can look up the source code of rhinoscriptsyntax to learn how it is structured and how RhinoCommon is implemented within it using IronPython directly on your hard drive.…"
Jan 10
Anders Holden Deleuran replied to platut's discussion how can i get Center Line?
"Depending on your needs, the Medial Axis or the Straight Skeleton might work for you. There are several algorithms for calculating these. I remember seeing a couple of medial axis implementations on the forum, believe they all use the…"
Dec 23, 2016
DavidLee liked Anders Holden Deleuran's profile
Dec 18, 2016
Anders Holden Deleuran replied to Luca Breseghello's discussion Collider Goal in Python: List[Object] type? in the group Kangaroo
"Think we'll need a definition to troubleshoot further, otherwise it'd just be guesswork. Or, pop downstairs :)"
Dec 15, 2016
Anders Holden Deleuran replied to Luca Breseghello's discussion Collider Goal in Python: List[Object] type? in the group Kangaroo
"It's referring to the .NET generic list type. To instantiate one using IronPython you can do like so: # Import the typefrom System.Collections.Generic import List# Instantiate a listmyDotNetList = List[object]()"
Dec 15, 2016
Anders Holden Deleuran replied to Ryan Whitby's discussion Every Possible Combination of Indices
"A simple/terse solution to this class of problem, might be to use the permutations function found in the standard itertools module in Python. Note that it might not scale super well with large input sets, due to the cost of outputting large…"
Dec 14, 2016
Anders Holden Deleuran replied to m.architect's discussion how can optimization area with galapagos?
"Yes you need the latest version of the terrific Kangaroo plugin :)"
Dec 9, 2016
Anders Holden Deleuran replied to Chapulin Colorado's discussion Sort ContourCurves by height Python like with the rhinocommand
"A general best practice note (in Python): Do NOT use classes to structure code, use functions, modules and packages for this (that's what they are designed for). Use classes when it's appropriate i.e. when constructing objects (that have…"
Dec 9, 2016
Anders Holden Deleuran replied to Marius's discussion Meaning behind BendStrength in the group Kangaroo
"You can look up the source code for most of the standard Kangaroo2 goals on Daniels GitHub. Some of these have references to where the algorithmic logic of the goal originates (for instance the angle goal, which can be used to model a bending…"
Dec 7, 2016
Anders Holden Deleuran replied to Chapulin Colorado's discussion Sort ContourCurves by height Python like with the rhinocommand
"Agreed, just read your code again and see what you were doing. Think I was just confused by the line: tuples = []  ;)"
Dec 2, 2016
Anders Holden Deleuran replied to Chapulin Colorado's discussion Sort ContourCurves by height Python like with the rhinocommand
"Yup, looks like the base logic is the same as method 2 in my example. Note that tuples in Python is a data structure (an immutable array, where lists are mutable)."
Dec 2, 2016
Anders Holden Deleuran replied to Chapulin Colorado's discussion Sort ContourCurves by height Python like with the rhinocommand
"Hi Chapulin, attached a file that demonstrates two general methods for sorting data values in Python based on other data keys:1) If the keys to sort by is a property of the data to sort, use a lambda function.2) If the keys to sort by is NOT a…"
Dec 2, 2016
Anders Holden Deleuran liked Petras Vestartas's photo
Dec 1, 2016
Anders Holden Deleuran replied to Max Marschall's discussion Remap gradient
"Yes, you would need to know how the values are mapped onto a color gradient in the model which generated the colors in the first place (i.e. which channels in which color model in which range). You might be be able to guesstimate this through a…"
Nov 29, 2016

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

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

Join Grasshopper

At 7:44am on October 10, 2016, Arpan Bakshi said…

GhPython Workshop coming up this month. Tool developer Chris Mackey is teaching a live webinar titled - Making Your Own Python Components. More information and registration at https://attendee.gototraining.com/42b11/register/4476111114579892225

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...

 
 
 

Translate

Search Grasshopper

Photos

  • Add Photos
  • View All

© 2017   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service