

> Well done!
>
> Having done something similar a few weeks ago I'm curious to know how you've
> implemented it. Can you give more details ?
Hi Pascal,
I'll be glad to answer every question you have, basically I used the algorithm
described on page 33 of https://www.maths.ed.ac.uk/~v1ranick/knots/celtic.pdf to
build an array of "codes" (1= left, 2= up, 4=right, 8= down) each code + (i+j)%2
(where i and j are the coordintes in the array), gives the kind of brick and
its orientation.
for instance the array of the lower left knot is :
3 2 2 2 2 6
1 0 0 0 4 5
1 0 0 0 4 5
5 1 0 0 0 4
5 1 0 0 0 4
9 8 8 8 8 12
Do not hesitate to ask ...
Post a reply to this message

