PDA

View Full Version : 4 way symmetry and 8 way symmetry algorithm



30baz
11-11-2008, 08:45 AM
i need an algorithm that implements both 4 way and 8 way symmetry ..






Best Regards,
30baz

_NK47
11-11-2008, 09:01 AM
you posted that already!
http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=248576#Post248576

trinitrotoluene
11-11-2008, 09:04 AM
I don't have the context in which you would apply these algorithms. Do you mean this (http://escience.anu.edu.au/lecture/cg/Circle/symmetry4.en.html) and this (http://escience.anu.edu.au/lecture/cg/Circle/symmetry8.en.html)?

30baz
11-11-2008, 12:42 PM
both mate .. those are the one i need , thank u so much .. u r my hero buddy i owe u ..






Best Regards,
30baz

IneQuation.pl
11-11-2008, 03:53 PM
This is just an application of the circle equation (http://en.wikipedia.org/wiki/Circle#Analytic_results) optimized to reduce the number of loop passes. Why would anyone want to give such a simple algorithm a unique name?

30baz
11-13-2008, 04:52 PM
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 :) can u implement the code for me .. if u have the time bro




Best Regards,
30baz

trinitrotoluene
11-13-2008, 05:14 PM
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 :) .

IneQuation.pl
11-14-2008, 11:37 AM
My advice is to learn C. You wouldn't need to ask anyone to write code for you then.