Grasshopper

algorithmic modeling for Rhino

Is there a trick I am missing (other than to write perfect code first time - sadly an ability I will never achieve) to debugging goals? I have searched the forum, found several examples of goals and some explanation of issues that were confounding author. But only thread with similar header had no response. 

Hope that I may have better luck. 

Thanks

Views: 299

Replies to This Discussion

Hi Mark,

I realise it probably isn't as useful as being able to actually step through custom goal code like normal debugging, but here's something I sometimes find useful for testing and development.

It lets you input some goals and then take single steps of the simulation, seeing the Move vectors created by each goal acting on each point at each iteration.

Attachments:

Thank you - I suspect this will be very useful for finding logic errors (as well as giving me rather more insight into the K2 system). But my first issue is locating problems which cause fatal errors during execution. How to proceed when the solver goes red with "one or more errors occurred".

Being a "vintage" (aka "old") programmer  I would be happy with some flavor of print. Trolling the forum I ran across Rhino.RhinoApp.WriteLine - which has helped. Is there an alternate you might recommend. (Full disclosure - c# is new to me, so I create all sorts of bugs.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service