Hi! I am quite new in C#, but i am used to processing. I have been trying to make a simulation such as particle movement. I am used to make it on processing but now I am bit confused with the structure of the loop because in processing we have void setup to put stuff that only run once and void draw that run continuously. I tried to learn stuff to make iterative solutions such as timer and Component.ExpireSolution() but my loop still doesn't work. Can somebody tell me about the correct structure when we are programming in an OOP way inside grasshopper C# component? I also attached my trial of this issue.
Loop Structure for Simulating Particle Movement in C#
by Zuardin Akbar
Feb 3, 2017
Hi! I am quite new in C#, but i am used to processing. I have been trying to make a simulation such as particle movement. I am used to make it on processing but now I am bit confused with the structure of the loop because in processing we have void setup to put stuff that only run once and void draw that run continuously. I tried to learn stuff to make iterative solutions such as timer and Component.ExpireSolution() but my loop still doesn't work. Can somebody tell me about the correct structure when we are programming in an OOP way inside grasshopper C# component? I also attached my trial of this issue.
Best,
Akbar