compute.rhino3d
compute.rhino3d copied to clipboard
Overridable `GrasshopperDefinition`
I wanted to know if there's any reason as to why the GrasshopperDefinition
cannot be overridden (private ctor)?
Why do you feel you would need to override the constructor?
@sbaer I dont need to override the ctor, I would need to override the Solve
behaviour so it expires all the cache before creating new solution for a specific script:
Definition.NewSolution(true, GH_SolutionMode.CommandLine);
So either update the Solve
method to accept a boolean arg (not following Open-Close principle) or have the entire GrasshopperDefinition
class overridable so the Solve
can be overridden?
I'm sorry, but I really don't understand the goal here. Could you provide either a pull request or some code here to help me better understand?
sure created a PR: https://github.com/mcneel/compute.rhino3d/pull/393
Thanks, I think I understand now. We would need to add a bool to the input sent to compute to tell it to expire all objects.