Grasshopper

algorithmic modeling for Rhino

Hi Daniel,

I just noticed that the Angle goal does not appear to update when solving iteratively. At least this is the case for the Python implementations I have been testing, so perhaps this is where the issue is. I tried hooking it up to your compiled Solver, but it converges so fast that I can't tell whether or not the Angle goals updated :D

Attached an example file.

Best,

Anders

Views: 418

Attachments:

Replies to This Discussion

This is odd, and I can't tell yet why it is happening. I'll look into it some more, thanks for pointing it out

Hi Daniel,

Just jumped back into some K2 scripting and hit this issue again. I did a bit more digging and made a few observations that might help:

1) Updating goals live seems to work when not using any scripting components (see attached file: 151016_CustomSolverLive_Elastica_BendingNotUpdating.gh),

2) When using a custom GHPython component for the solving it gets a bit weird. In the file above I can live update the spring/length goal, but not the angle goal.


3) This led me to try out various combinations of goals/solvers made with the compiled components and C#/Python scripting components to see if that could tell us anything (see attached file: 151016_K2_UpdatingGoalsLive_ScriptingComponentsIssue.gh). The pattern seems to be this:

Can update goals live:
- Make goals with compiled components + Solve with scripting component.
- Make goals with scripting components + Solve with compiled component.

Can NOT update goals:
- Make goals with scripting components + Solve with scripting component.

I seem to remember having similar problems when we were implementing Joey last year. As far as I can recall this was resolved by calling the SetConstraintList() method just prior to the solve step. But I guess the new design with AssignPIndex() means that I will have to rethink what we did with Joey.

Think I managed to confuse myself even further by writing this out :)

Best,

Anders

Attachments:

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service