Skip to content
Snippets Groups Projects
Commit f4e4fd12 authored by Akash Anand's avatar Akash Anand
Browse files

*** empty log message ***

parent 20acb677
No related branches found
No related tags found
No related merge requests found
...@@ -24,14 +24,16 @@ FPatch::FPatch(int tag, ProjectionSurface* ps, ...@@ -24,14 +24,16 @@ FPatch::FPatch(int tag, ProjectionSurface* ps,
_uModes = uModes; _uModes = uModes;
_vModes = vModes; _vModes = vModes;
_uM = (int)(log((double)uM) / log(2.)); _uM = (int)pow(2.,(int)(log((double)uM) / log(2.)));
_vM = (int)(log((double)vM) / log(2.)); _vM = (int)pow(2.,(int)(log((double)vM) / log(2.)));
if (_ps->IsUPeriodic()) if (_ps->IsUPeriodic())
_uM++; _uM++;
if (_ps->IsVPeriodic()) if (_ps->IsVPeriodic())
_vM++; _vM++;
printf("%d %d\n",_uM,_vM);
_hardEdge[0] = hardEdge0; _hardEdge[0] = hardEdge0;
_hardEdge[1] = hardEdge1; _hardEdge[1] = hardEdge1;
_hardEdge[2] = hardEdge2; _hardEdge[2] = hardEdge2;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment