mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2025-01-18 12:10:06 +00:00
Fix windows build
This commit is contained in:
parent
b5d2a087b1
commit
f5810bac97
@ -25,12 +25,12 @@
|
||||
#ifndef STOPWATCH_H
|
||||
#define STOPWATCH_H
|
||||
|
||||
#if not (_WIN32 or _WIN64)
|
||||
#if (_WIN32 or _WIN64)
|
||||
#include <windows.h>
|
||||
#else
|
||||
#include <sys/types.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/resource.h>
|
||||
#else
|
||||
|
||||
#endif
|
||||
|
||||
class Stopwatch {
|
||||
|
@ -243,10 +243,10 @@ EndCapBSplineBasisPatchFactory::computeLimitStencils(
|
||||
|
||||
P->AddWithWeight(f, 1.0f/float(valence));
|
||||
|
||||
float c0 = 0.5*cosf((float(2*M_PI) * float(i)/float(valence)))
|
||||
+ 0.5*cosf((float(2*M_PI) * float(ip)/float(valence)));
|
||||
float c1 = 0.5*sinf((float(2*M_PI) * float(i)/float(valence)))
|
||||
+ 0.5*sinf((float(2*M_PI) * float(ip)/float(valence)));
|
||||
float c0 = 0.5f*cosf((float(2*M_PI) * float(i)/float(valence)))
|
||||
+ 0.5f*cosf((float(2*M_PI) * float(ip)/float(valence)));
|
||||
float c1 = 0.5f*sinf((float(2*M_PI) * float(i)/float(valence)))
|
||||
+ 0.5f*sinf((float(2*M_PI) * float(ip)/float(valence)));
|
||||
e0.AddWithWeight(f, c0*ef);
|
||||
e1.AddWithWeight(f, c1*ef);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user