Grasshopper

generative modeling for Rhino

Eirik K's Friends

  • Daniel Bosia
  • Peter Zock
  • andres obregon
  • Ben Jutz
  • tobi haptik

Eirik K's Groups

Eirik K's Discussions

curveboolean - union of curves in script
3 Replies

I need to union closed curves in a script. I have several 2d shapes that sometime intersect and when they do I need to create their outline/boundary.I found a solution/hack in Grasshopper, but I need…Continue

Tags: c#, script, curves, union

Started this discussion. Last reply by Florian Frank Feb 27.

Split closed curve into closed curves
2 Replies

Hi. I am trying to divide a 2D shape (closed Curve) at a point on its outline (decided by the input side/param) with a result of new closed Curves. The split will take place within a grid, here…Continue

Tags: Efficiancy, Brep, Surface, Curve, Split

Started this discussion. Last reply by Eirik K Feb 16.

Genetic algorithms with dynamic genome amout
2 Replies

Hi.I am trying to write a script which, depending on the circumstances, will have a different number of genomes. As Galapagos works with static connections to sliders, I can't get it to work using…Continue

Tags: algorithms, genetic, libraries

Started this discussion. Last reply by Eirik K Jan 16.

Curve from Point3d and Vector3d
3 Replies

Hi. At a point I need to add a Curve of a certain length along a direction.I've made the following code work, but I am not sure how elegant it is, especially the conversion from Line to LineCurve to…Continue

Tags: practice, best, curve

Started this discussion. Last reply by Eirik K Dec 10, 2012.

 

Eirik K's Page

Latest Activity

Florian Frank replied to Eirik K's discussion curveboolean - union of curves in script
"Glad it works!"
Feb 27
Eirik K replied to Eirik K's discussion curveboolean - union of curves in script
"Hallo Florian. Just what I needed, thanks a lot! It works perfect in my script. Cheers, Eirik"
Feb 27
Florian Frank replied to Eirik K's discussion curveboolean - union of curves in script
"Hi Erik, nice hack, but actually there is a method for this...in grasshopper its called region union...in RhinoCommon its the method Curve.CreateBooleanUnion(List of curves), which returns a list of curves again. Since you have only planar and…"
Feb 26
Eirik K posted a discussion

curveboolean - union of curves in script

I need to union closed curves in a script. I have several 2d shapes that sometime intersect and when they do I need to create their outline/boundary.I found a solution/hack in Grasshopper, but I need this scripted. Any idea how to resolve it?Here is an example:starting shapes.This is what I need:…See More
Feb 26
Eirik K replied to Eirik K's discussion Split closed curve into closed curves
"Hi David. Plural was not typo.. If you have a look at the working attached definition (original thread) you might see what I'm trying to do. The script works, just wondering if it is the right way to do it or if there is a less resource heavy…"
Feb 16
David Rutten replied to Eirik K's discussion Split closed curve into closed curves
"So one closed curve is divided into several closed curves? If that plural was a typo, aren't you just looking to change the seam of a closed curve? -- David Rutten david@mcneel.com Poprad, Slovakia"
Feb 16
Eirik K posted a discussion

Split closed curve into closed curves

Hi. I am trying to divide a 2D shape (closed Curve) at a point on its outline (decided by the input side/param) with a result of new closed Curves. The split will take place within a grid, here represented by WorldXY (could be a user set Plane) As far as I understand, no Curve method could do this? My take was the following: - create a planar surface from the shape curve - find the point on the curve - decide on split direction- add a splitting curve in direction, with boundingbox max as…See More
Feb 16
Eirik K replied to mona's discussion sources for parametric urbanism
"Hi Mona.   A great source for articles/papers on Computational design (also in urban planning) is the CuminCAD website: CuminCAD try a search with urban as a keyword. The articles are available as full text with a ACADIA membership: Acadia…"
Jan 16
Eirik K replied to Eirik K's discussion Genetic algorithms with dynamic genome amout
"Hi David. Thanks a lot for the tip, I'll see if I can make that work. I'll post some details when I implement it. Otherwise I thought I would have to implement something like the C# AForge.NET Genetics library... "
Jan 16
David Rutten replied to Eirik K's discussion Genetic algorithms with dynamic genome amout
"One way of doing it inside Galapagos is to use a Gene Pool object with more sliders than you need and then discard a variable amount of them using -for example- Split List. -- David Rutten david@mcneel.com Poprad, Slovakia"
Jan 12
Eirik K posted a discussion

Genetic algorithms with dynamic genome amout

Hi.I am trying to write a script which, depending on the circumstances, will have a different number of genomes. As Galapagos works with static connections to sliders, I can't get it to work using Galapagos.Therefore I am looking for a C# library which will let me implement this in my c# script. Any tips/success stories?Cheers,EirikSee More
Jan 11
Eirik K replied to Eirik K's discussion Curve from Point3d and Vector3d
"thanks a lot David. Worked like a charm. Interesting to know that you can use a point and vector addition as a point parameter. "
Dec 10, 2012
David Rutten replied to Eirik K's discussion Curve from Point3d and Vector3d
"Shorter still: -- David Rutten david@mcneel.com Poprad, Slovakia"
Dec 10, 2012
David Rutten replied to Eirik K's discussion Curve from Point3d and Vector3d
"You don't have to duplicate the LineCurve, LineCurve already implements the abstract Curve class: -- David Rutten david@mcneel.com Poprad, Slovakia"
Dec 10, 2012
Eirik K posted a discussion

Curve from Point3d and Vector3d

Hi. At a point I need to add a Curve of a certain length along a direction.I've made the following code work, but I am not sure how elegant it is, especially the conversion from Line to LineCurve to Curve. I need a Curve, because I do a CurveCurve intersection check later and this function doesn't accept a Line as a parameter. And since there is no constructor for Curve, I did it like this... directionVector *=  distance; // set Vector length Line ln = new Line(point, directionVector); Curve…See More
Dec 10, 2012
Eirik K joined karamba's group
Thumbnail

karamba

Karamba is an interactiv, parametric finite element program for shell and beam structures.Current Version: 1.0.3 (March 13th 2013)See More
Nov 15, 2012

Profile Information

Company, School, or Organization
FH Trier (University of applied Science)

Comment Wall

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

Join Grasshopper

  • No comments yet!
 
 
 

Translate

Search Grasshopper

Photos

  • Add Photos
  • View All

© 2013   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service