Part of the Khronos Group

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

    Koch Snowflake

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


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

    Re: Koch Snowflake


    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).


  3. #3

    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