>> I've just added a couple of patterns: hex_buss.vtu and tri_life.vtu,
>> on hex and tri grids respectively. ...
>
> Nice!
>
>> Have a play with these patterns and tell me if we need to change the
>> UI to be integer-specific - I'm not sure we do.
>
> Agreed -- the new rules look clean and simple.
>
> One thing has me puzzled though. In Help/tips.html we say:
>
> "Any reaction-diffusion pattern can be changed in size using the
> dimensions control in the Info Pane."
>
> But this only seems to be true for .vti files. When I load hex_buss.vtu
> or tri_life.vtu or penrose_life.vtu I can't edit the Dimensions.
> I'd really like to increase the number of cells in those patterns
> (without having to muck about editing files).
Yes, the docs are wrong. I agree this is a problem. I don't know how
best to do it though - we support arbitrary meshes which may or may
not be expandable, like the bunny. For those grids where we *could*
add another 2D ring or 3D shell around the outside we would need to
specify:
- the mesh generator that was originally used
- the values to set each chemical too in the new bits
This is conceivable if our mesh generators had unique string
identifiers that could be stored in the vtu file. Each generator would
have two functions:
1) generate a mesh from scratch
2) extend a mesh (guessing the scale/extent from the existing mesh somehow)
It would be a lot of work.
An alternative approach would be to support copy and paste. Then a
copied pattern of chemical values could be copied onto a different
mesh. Extending a grid would then become a process of:
a) copy the data
b) generate a bigger mesh
c) paste the data
Getting the pasted data to align onto cells in the new mesh might be a
problem, especially with 3D cells and aperiodic grids.
> And some sort of progress dialog so people don't think Ready has
> hung when they ask for a new pattern with lots of cells. We could
> copy the BeginProgress/AbortProgress/EndProgress code from Golly's
> wxutils.h/cpp.
Yes, I'll have a look at this.
>
> After loading penrose_life.vtu the Dimensions are listed as 2 x 2 x 0.
> What do those numbers mean (ie. how are they related to the number of
> cells)? I couldn't find anything in the help docs about that.
I'll have a look at the docs.
They are the spatial size of the mesh along the x, y and z axes, in
whatever distance units you are using. The cells can be of any size so
there is no relation to the number of cells.
The dimensions are rounded to the nearest integer, which is
unfortunate for meshes where the units are such that the values are
small, like the bunny. Maybe I should just hide the dimensions for
mesh data.