PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Friday, July 29, 2022

[FIXED] How to model rules for generating geometric patterns?

 July 29, 2022     fractals, graph, graphics, image, representation     No comments   

Issue

For my problem it would be best to find a numeric representation of kazakh national ornaments for generating new ones. But other approaches are also fine.

The ornaments essentially consist of combinations of relatively basic ornaments. Usually the ornaments are symmetrical.

Here are few examples of basic elements:

alt text alt text alt text alt text alt text alt text

(The images are a bit distorted)

And this is an example of a more complex ornament:

alt text

How could I encode an ornament's representation in as few numbers as possible? So that I could write a program that would generate an ornament, given some sequence of numbers

Any ideas are appreciated.

As I write this, I have thought that generating images of snowflakes may be somewhat relevant, although it's possibly just a fractal.


Solution

You have to realize that your question is actually not how to represent them but how to generate them.

Still you might get some ideas. But don't hold your breath, because it can get complicated

EDIT: In researching problems such as this you could start with L-systems, this paper seems to convey the idea.

Actually here's an attempt at an answer: Represent it as a set of grammar rules.



Answered By - Unreason
Answer Checked By - Clifford M. (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing