Point attractor in c#

Hello ,
I have created a class called Node which gives a point and a sphere with the diameter.

Using that class in Runscript I created a grid and made a point attractor to play with the sizes of the spheres.

Now I want to create a code which has another Class called Grid which will give me out Grid of points and spheres. But I need to use the array of previous Class Node ie. Node and Listattractors in this new Grid Class. Can you help me with the script?




I’m not a C# aficionado, but my guess would be that when you want to call Node() without arguments, you need to declare a default constructor additional to the parametrised one.

public Node() {
    pos = Point3d.Unset;
    size = 0.0;
}

You could also randomize the Node properties instead of doing the above.