POV-Ray : Newsgroups : povray.binaries.images : Celtic knots : Celtic knots Server Time10 Dec 2023 08:18:21 EST (-0500)
 Celtic knots
 From: Mediat Date: 22 Dec 2021 08:55:00 Message:
```
{
"@context": "https://schema.org",
"@type": "DiscussionForumPosting",
"@id": "#web.61c32e10fda6d1e911d3eb285020ebe1%40news.povray.org",
"dateCreated": "2021-12-22T13:55:00+00:00",
"datePublished": "2021-12-22T13:55:00+00:00",
"author": {
"@type": "Person",
"name": "Mediat"
}
}
Hi every one

To learn about Celtic knot : https://en.wikipedia.org/wiki/Celtic_knot

Basically, to draw a celtic knot you need to handle 4 different shapes (the
building blocks) that we call "brick":

1) the "corner" (from the center of a side to the center of an adjacent side)
which exists in two different directions.
2) the "straight" (from the center of a side to the center of the opposite side)
which exists in two different directions.
3) the "diagonal" (from a vertex to the opposite vertex) which exists in two
different directions.
4) the "bend" (from a vertex to the center of a non adjacent side) which exists
in eight different directions/symmetries.

In my generator I designed 8 different types of straights and diagonals, 4
different types of corners and 4 different types of bends.

I added to the previous bricks,
1) 5 different types of "crossings" (the way the cords crosses), one of them is
the historical crossing: one cord goes over the other one.
2) 5 different types of "muffs"  (the way a bend connects to another brick on
its ends tha lies on a side)

Before I publish the program I'm eager to answer questions and more than that,

For the time being the program deals only with rectangular shapes, it should be
feasible to enhance it to handle rectangular shapes with rectangular holes, but
not to handle circles or triangles.
```

Attachments: