Last week I didn't do anything, but at least this week I have started on the code to create the geometry to handle the track textures. The first function I need is to define where I have to put the slices. When I started to add it, I noticed there was something missing, I had not added some form of sanity checks, so even completely useless definitions could make it into the algorithm.
To make it at least a bit easier I decided to first check the slices. There are a number of conditions which have to be met. E.g. there has to be at least one slice, at least one slice has to be flexible in width and if there are fixed alignment positions they have to be in a rising sequence. Also the first slice has to either be anchored to the position 0 or at least be able to fill the track all the way to the left edge. The same is true for the last slice, it has to be able to fill the track to the right edge.
I hope, I can implement all the checks next week and perhaps even start on the distribution algorithm.