Draw method, in a tool. Sorry, my misstake.
Calculations for nodes are done outside the tool class. Passing through those methods
I collect information to be sent to a container that the Tools draw method fetches
information for rendering. I have a bit of work left there to get things organized.
The data changes constantly so it will probably cost more to iterate what is needed to be updated then to redraw everything in 1 go.
Since mostly dealing with Points and vectors, the new data will probably be totally different then the old anyway.
I just clear the old data and bring in new, sort of, without going into details..
There are different types of data though. Persistent data that references to a Sketchup entity for ex, can be cached and updated only when switched.
Anyway got a new situation now(TOPIC), have to redesign a lot on the Ruby side.
I've studied your render cache. It's very nice and good example. Need to study it more though.
Thanks for the input