4 way symmetry and 8 way symmetry algorithm

i need an algorithm that implements both 4 way and 8 way symmetry …

Best Regards,
30baz

you posted that already!
http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=248576#Post248576

I don’t have the context in which you would apply these algorithms. Do you mean this and this?

both mate … those are the one i need , thank u so much … u r my hero buddy i owe u …

Best Regards,
30baz

This is just an application of the circle equation optimized to reduce the number of loop passes. Why would anyone want to give such a simple algorithm a unique name?

when i take the code … and compile it of the this (4 way symmetry)
it gives error cuz simply ill need a class called color and i don’t know how to do it … so plz :slight_smile: can u implement the code for me … if u have the time bro

Best Regards,
30baz

My advice here is replace the Color c parameter with GLfloat color[4]. Then inside the circleSym4 and circleSym8 function, call simply glColor4fv(color); before your glVertex call and you don’t need a Color class :slight_smile: .

My advice is to learn C. You wouldn’t need to ask anyone to write code for you then.