Closed afonsodmcb closed 12 months ago
The bug comes from the fact that the seeds are arranged regularly, which corresponds to a degenerate configuration. Randomize the coordinates a bit, and it will work.
Thank you for your quick reply! What if I want the seeds to stay arranged regularly? My objective was to obtain the structure shown in the attached image (some 3-cells highlighted)
It won't work, never. What you can do is to randomize slightly and then use -reg 1
, which is likely to generate a structure very close to the original:
gsl-randist 1 28 flat -.00001 .00001 > x
gsl-randist 2 28 flat -.00001 .00001 > y
gsl-randist 3 28 flat -.00001 .00001 > z
paste centroids.txt x y z | awk '{print $1+$4,$2+$5,$3+$6}' > centroids2.txt
neper -T -n 28 -id test -morphooptiini "coo:file(centroids2.txt),weight:0" -morpho voronoi -reg 1
PS. The generated tessellation does not seem to correspond to the image, so, there must be something wrong (with the centroid coordinates or the approach).
Hello,
I have a .txt file with a list of 28 triplets of 3D coordinates corresponding to the desired centroids of 3-cells in a cubic domain and I want to use Neper to arrive at a Voronoi tesselation of the domain into those 3-cells. I tried the command, which, after running it, prompted me to report a bug here:
The contents of the input file
centroids.txt
are:0.50000000 0.12500000 0.12500000 0.12500000 0.50000000 0.12500000 0.25000000 0.25000000 0.25000000 0.12500000 0.12500000 0.50000000 0.87500000 0.50000000 0.12500000 0.75000000 0.25000000 0.25000000 0.87500000 0.12500000 0.50000000 0.50000000 0.87500000 0.12500000 0.25000000 0.75000000 0.25000000 0.75000000 0.75000000 0.25000000 0.37500000 0.37500000 0.37500000 0.62500000 0.37500000 0.37500000 0.37500000 0.62500000 0.37500000 0.62500000 0.62500000 0.37500000 0.12500000 0.87500000 0.50000000 0.87500000 0.87500000 0.50000000 0.37500000 0.37500000 0.62500000 0.25000000 0.25000000 0.75000000 0.62500000 0.37500000 0.62500000 0.75000000 0.25000000 0.75000000 0.50000000 0.12500000 0.87500000 0.37500000 0.62500000 0.62500000 0.25000000 0.75000000 0.75000000 0.12500000 0.50000000 0.87500000 0.62500000 0.62500000 0.62500000 0.75000000 0.75000000 0.75000000 0.87500000 0.50000000 0.87500000 0.50000000 0.87500000 0.87500000
Thank you for your assistance!