View Full Version : 4 way symmetry and 8 way symmetry algorithm
11-11-2008, 08:45 AM
i need an algorithm that implements both 4 way and 8 way symmetry ..
11-11-2008, 09:01 AM
you posted that already!
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)?
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 ..
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?
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
11-13-2008, 05:14 PM
My advice here is replace the Color c parameter with GLfloat color. Then inside the circleSym4 and circleSym8 function, call simply glColor4fv(color); before your glVertex call and you don't need a Color class :) .
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.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.