Example #1
0
/* Main iterative loop */
void DoRad()
{
	unsigned long shootPatch;
	
	while (FindShootPatch(&shootPatch)) 
	{
		ComputeFormfactors(shootPatch);
		DistributeRad(shootPatch);
		DisplayResults(&params->displayView);
	}
	
}
Example #2
0
int doOneIteration(void)
/* does one radiosity iteration only, returns TRUE when finished */
{	

    if (FindShootPatch(&shootPatch_n)) 
    {      
        ComputeFormfactors(shootPatch_n);
        DistributeRad(shootPatch_n);
        return 0; /*FALSE */
    } else {
        printf("Radiosity done \n");
        return 1; /* TRUE */
    }

}