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
    Senior 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

Similar Threads

  1. Finding coordinates of Koch curve
    By SamiSami in forum OpenGL: General
    Replies: 0
    Last Post: 03-12-2013, 11:37 AM
  2. Drawing Koch's curve
    By Infty in forum OpenGL: General
    Replies: 5
    Last Post: 05-24-2011, 01:21 AM
  3. Koch Curve
    By Erzsebet in forum OpenGL: General
    Replies: 7
    Last Post: 02-12-2004, 02:55 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean