1

I am working on a problem in which i have to generate a pattern similar to the one shown in this screenshot:

polygon with sipple pattern inside it

enter image description here

I have tried many different ways, but none are working.

I have seen some embroidery software which can generate this type of pattern, but I don't know the algorithm used to generate this patter.

Please help me, if someone knows anything about the algorithm.

Thank you!

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Anshul
  • 103
  • 9
  • no brother that was not helping. – Anshul Jun 22 '20 at 12:15
  • 1
    It looks very similar to [2D Hilbert curve](https://stackoverflow.com/a/50464341/2521214) just slightly distorted (maybe by some superponated random distrotion) ... – Spektre Jun 23 '20 at 08:03
  • No @Spektre there should be no end points in the curve, it should be closed. – Anshul Jun 30 '20 at 12:40
  • hmm then I would start with inscribed circle and expand it as close to polygon as you can (by force field simulation) and then add random inward waves distortion not crossing itself until no space left ... interesting problems maybe I would try to code it ... – Spektre Jul 03 '20 at 09:36

0 Answers0