Grasshopper

generative modeling for Rhino

Jesper Thøger Christensen
  • Male
  • Aalborg / Amsterdam
  • Denmark
Share on Facebook
Share Twitter

Jesper Thøger Christensen's Friends

  • Christoph Schindler
  • Anders Holden Deleuran
  • Christoph von Mach
  • Kim Trompeter
  • SteffenRiegas
  • Thiru Manickam
  • Stigvg
  • Florian Heinzelmann
  • Barbatade Godbersen
  • Kyle Miller
  • Joerg Petri
  • Isak Worre Foged
  • Agnes Tan
  • Jon Mirtschin
  • Jakob Sabra

Jesper Thøger Christensen's Groups

Jesper Thøger Christensen's Discussions

How to create a simple mouse responsive GH_Component
11 Replies

Started this discussion. Last reply by Jesper Thøger Christensen on Thursday.

Error when migrating to rhinoCommon
10 Replies

Started this discussion. Last reply by Jesper Thøger Christensen May 15.

 

Jesper Thøger Christensen's Page

Latest Activity

Jesper Thøger Christensen replied to Jesper Thøger Christensen's discussion How to create a simple mouse responsive GH_Component
"It works partially when I use the script above However I have to recompute the solution in grasshopper for the solverinstance to update. As far as I can see it will not update automatically when running the RespondToMouseDoubleClick…"
Thursday
David Rutten replied to Jesper Thøger Christensen's discussion How to create a simple mouse responsive GH_Component
"You cannot assign data to parameters willy-nilly. The data inside parameters will get nuked whenever a new solution starts. You need to store data in a field you own and then read this field during SolveInstance and assign it to the appropriate…"
Thursday
Jesper Thøger Christensen replied to Jesper Thøger Christensen's discussion How to create a simple mouse responsive GH_Component
"I tried that, but cannot make it work   I tried this in the HelperAttributes Class // assign length to the RobotBeam class??robotBeam.length = length;// thought this might work but it did not//base.Owner.Params.Output[0] = length;   and…"
Thursday
David Rutten replied to Jesper Thøger Christensen's discussion How to create a simple mouse responsive GH_Component
"I suppose you could just write data to a public or internal field on the component class and then use that field from within SolveInstance. -- David Rutten david@mcneel.com Poprad, Slovakia"
Thursday
David Rutten replied to Jesper Thøger Christensen's discussion How to create a simple mouse responsive GH_Component
"You don't have to add a \n to RhinoApp.WriteLine() incidentally, it already appends a newline char. RespondToMouseDoubleClick has to return a value. You cannot just use return; that's the error you get. Please return an actual…"
Thursday
Jesper Thøger Christensen replied to Jesper Thøger Christensen's discussion How to create a simple mouse responsive GH_Component
"And how to send data from the HelperAttribute class back to the Main component class, to be used as an output parameter for the component?"
Thursday
Jesper Thøger Christensen replied to Jesper Thøger Christensen's discussion How to create a simple mouse responsive GH_Component
"Hi David Thank you   In the class derived from GH_Component i made some public variables. In this way i can access the input parameters from the HelperAttribute class. I just have one problem   In the HelperAttribute class i have the…"
Thursday
David Rutten replied to Jesper Thøger Christensen's discussion How to create a simple mouse responsive GH_Component
"Basically do this. Derive from GH_Component and add all the parameters you need. Create another class which derives from Grasshopper.Kernel.Attributes.GH_ComponentAttributes Override the RespondToMouseDoubleClick method on these attributes and do…"
Wednesday
David Rutten replied to Jesper Thøger Christensen's discussion How to create a simple mouse responsive GH_Component
"You can't. Only components have inputs and outputs so you'll have to derive from GH_Component instead of GH_Param. -- David Rutten david@mcneel.com Poprad, Slovakia"
Wednesday
Jesper Thøger Christensen replied to Jesper Thøger Christensen's discussion How to create a simple mouse responsive GH_Component
"Ok, but how do I add in- and output parameters to the following code public class DoubleMouseClick : GH_Param<GH_Integer>     {         public…"
Wednesday
David Rutten replied to Jesper Thøger Christensen's discussion How to create a simple mouse responsive GH_Component
"And your reason for not having 3 classes is? You will always need at least two types if you want to have a special object that responds in some non-standard way to UI events. You'll need the object (which could be almost empty if it…"
Wednesday
Jesper Thøger Christensen posted a discussion

How to create a simple mouse responsive GH_Component

HiI tried this link to create a mouse responsive GH_Component that would open another program.http://www.architexted.com/how-to-create-a-mouse-responsive-gh-component/ However I'm using C# and managed to translate it. But to my questions:Is it possible to make a simple definition where you trigger a function on doubleclick, without having 3 separate classes Thank youSee More
Wednesday
Jesper Thøger Christensen replied to Jesper Thøger Christensen's discussion Error when migrating to rhinoCommon
"Where these 3 lines are causing errors edges[i]; mesh_edge.m_topf_Count mesh_edge.get_m_topvi(1);"
May 15
Jesper Thøger Christensen replied to Jesper Thøger Christensen's discussion Error when migrating to rhinoCommon
"Thank you   And the last part I'm missing is this             for (int i = 0; i < edges.Count(); i++)             {               IOnMeshTopologyEdge mesh_edge = edges[i];                 if (mesh_edge.m_topf_count ==…"
May 15
Marios Tsiliakos replied to Jesper Thøger Christensen's discussion Error when migrating to rhinoCommon
"Not tested!! so use with caution ."
May 15
Jesper Thøger Christensen replied to Jesper Thøger Christensen's discussion Error when migrating to rhinoCommon
"And further I cannot access the edge like this                 MeshTopologyEdgeList mesh_edge = edges[i]; as i did in the old script   I get the following error: Cannot…"
May 15

Profile Information

Company, School, or Organization
ETH Master of Advanced Studies in Computer Aided Architectural Design
Web or Blog
http://jesperthoeger.wordpress.com/

Jesper Thøger Christensen's Photos

Loading…
  • Add Photos
  • View All

Jesper Thøger Christensen's Blog

how to make a digital model of a twisted cylinder

I'm currenty doing a study project where I bend/twist a cylinder. see images below

Anyone who have an idea how to construct this geometry.

Its simply a cylinder where you grab two opposite sides and rotate one of the sides to the desired angle.
In the images this is approximately 270 degrees

Posted on December 7, 2010 at 11:01am — 2 Comments

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