Grasshopper

generative modeling for Rhino

Ian Chan
  • Male
  • Canton
  • China, mainland
Share on Facebook
Share Twitter
  • Blog Posts
  • Discussions (19)
  • Events
  • Groups
  • Photos
  • Photo Albums
  • Videos

Ian Chan's Friends

  • Charles Aweida

Ian Chan's Discussions

Draw custom object
8 Replies

public class MyComponent:GH_Component{  myObject obj;   void MyPreview(object sender, DrawEventArg e)  {    //draw my object in the display pipeline  }   public override void…Continue

Started this discussion. Last reply by Ian Chan Mar 5.

Problem in dividing a srf and output a point matrix
1 Reply

here is my code:         private Point3d[,] UVPointMatrix(Surface srf, int u, int v,bool swap)        {            Interval domU = srf.Domain(0);            Interval domV = srf.Domain(1);           …Continue

Started this discussion. Last reply by David Rutten Aug 11, 2010.

Grasshopper VS. Houdini , Maya Hypergraph
13 Replies

I've been writing some custom components for Grasshopper for several days.Something is bugging me.And I start to comparing GH to some other Node Based softwares.Sometimes, a component in GH contains…Continue

Started this discussion. Last reply by Ian Chan Aug 15, 2010.

VB.net vs. C Sharp
4 Replies

I'm planning to learn one of these two languages.Which one of them has a better performance?Continue

Tags: performance, VB.net, C#

Started this discussion. Last reply by Giulio Piacentino Jun 28, 2010.

 

Ian Chan's Page

Latest Activity

Ian Chan replied to Ian Chan's discussion Draw custom object
"DocumentRemoved event is raised when a document, any of the opened documents, is closed.  So the form is closed not only when its parent document is closed. But, problem solved.  Thanks, David!"
Mar 5
Ian Chan replied to Andrea Lu's discussion A real bug in C#!!!!!
"Maybe you can try Grasshopper.GH_InstanceServer.DebugLogAddEntry(string)"
Mar 5
David Rutten replied to Ian Chan's discussion Draw custom object
"Grasshopper.GH_InstanceServer has a member called DocumentServer. This class maintains all the loaded documents that Grasshopper is aware of. DocumentServer has events for DocumentAdded and DocumentRemoved. If you handle DocumentRemoved from within…"
Mar 1
Ian Chan replied to Ian Chan's discussion Draw custom object
"A component creates a windows.form. Then if the active GH_document is closed, the form can not be disposed. Is there anything I can do when the document is closing?"
Mar 1
David Rutten replied to Ian Chan's discussion Draw custom object
"You're right. -- David Rutten david@mcneel.com Poprad, Slovakia"
Feb 28
Ian Chan replied to Ian Chan's discussion Draw custom object
"In this component, all the objects that DrawViewportwire draws are not parameters. They're in the component's field, assigned by solverInstance. I had tried Hidden property before. But when the component is disabled,…"
Feb 28
David Rutten replied to Ian Chan's discussion Draw custom object
"You might want to rely on the Hidden property instead. -- David Rutten david@mcneel.com Poprad, Slovakia"
Feb 28
Ian Chan replied to Ian Chan's discussion Draw custom object
"Thanks, David! It's greatly appreciated! I override the Locked as well, so that when the component is set locked, my objects won't stay on the screen public override bool Locked          {              get              {                  return…"
Feb 28
David Rutten replied to Ian Chan's discussion Draw custom object
"Hi Ian, you should override the methods on GH_Component to draw your geometry: IsPreviewCapable should be overridden to always return True. ClippingBox should be overridden to make sure the geometry you want to draw is not clipped (be sure to also…"
Feb 28
Ian Chan posted a discussion

Draw custom object

public class MyComponent:GH_Component{  myObject obj;   void MyPreview(object sender, DrawEventArg e)  {    //draw my object in the display pipeline  }   public override void AddedToDocument(GH_Document document)   {                DisplayPipeline.PostDrawObjects += this.MyPreview;    base.AddedToDocument(document);  }  public override void RemovedFromDocument(GH_Document document)  {    DisplayPipeline.PostDrawObjects -= this.MyPreview;     RhinoDoc.ActiveDoc.Views.Redraw();…See More
Feb 27
Ian Chan replied to David Rutten's discussion Grasshopper 0.8.0013 available for download
"A "Grasshopper running on dotnet 2.0" message appears in the commmand prompt when grasshopper is loading, after installing 0.8.0013 version. Is the latest 0.8.0013 version forced running on dotnet 2.0 on Rhino4 sr-8?  "
Jul 18, 2011
Ian Chan replied to Charles Aweida's discussion C# list access
"Hi Charles, Hope this can help."
Aug 16, 2010
Ian Chan replied to Ian Chan's discussion Grasshopper VS. Houdini , Maya Hypergraph
Aug 15, 2010
David Rutten replied to Ian Chan's discussion Grasshopper VS. Houdini , Maya Hypergraph
"Good idea. I like it. -- David Rutten david@mcneel.com Poprad, Slovakia"
Aug 12, 2010
Paul N Jeffries replied to Ian Chan's discussion Grasshopper VS. Houdini , Maya Hypergraph
"Might a solution be to have 'advanced' options hidden but accessible though a little drop-down-arrow button at the bottom of the component itself? i.e. clicking on the arrow would expand the component with the additional options. Clicking…"
Aug 12, 2010
David Rutten replied to Ian Chan's discussion Problem in dividing a srf and output a point matrix
"Hi Ian, I'm not sure exactly what the problem is, but you cannot trust floating point for loops to terminate at an exact value. Either use for loops with integers and compute the factor inside the loop, or extend your termination value: for…"
Aug 11, 2010

Profile Information

Company, School, or Organization
SCUT

Comment Wall

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

Join Grasshopper

  • No comments yet!
 
 
 

Translate

Search Grasshopper

Members

Photos

  • Add Photos
  • View All

© 2012   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service