Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: Koch Snowflake

  1. #1
    Guest

    Koch Snowflake

    Does anyone know how to convert a koch snowflake program from a recursive function to one generalised iterative function for all levels?

    Thanks

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Apr 2000
    Location
    Adelaide, South Australia, Australia
    Posts
    765

    Re: Koch Snowflake

    Hi,

    with great and amazing difficulty. It would likely be ungodly convoluted. Why do you want to do that? I mean, if you explain the WHOLE problem (such as, I want a list of verticies of the koch snowflake in clockwise order, for example) then you might get a better solution. (Incidentially, you can get the list and still ahev the ease of a recursive algo).

    cheers.
    John

  3. #3
    Guest

    Re: Koch Snowflake

    Thanks for replying

    I know it's a horrible task but it's something i need to do for a project at university.

    What it is, is that I have been given a koch snowflake written in the standard recursive fashion and I have to convert it so that it uses a generalised iterative function.

    I'll send you the code to let you see what I'm working with

    Thanks again

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •