mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-11-25 04:50:06 +00:00
Removing cos()/sin() ambiguity
This commit is contained in:
parent
fcf01afb19
commit
edd1b6a906
@ -326,8 +326,8 @@ Scheme<SCHEME_CATMARK>::assignInteriorLimitTangentMasks(VERTEX const& vertex,
|
||||
Weight alpha = (Weight) (2.0f * M_PI / valence);
|
||||
for (int i = 0; i < valence; ++i) {
|
||||
double alphaI = alpha * i;
|
||||
tan1Mask.EdgeWeight(i) = cos(alphaI);
|
||||
tan2Mask.EdgeWeight(i) = sin(alphaI);
|
||||
tan1Mask.EdgeWeight(i) = std::cos(alphaI);
|
||||
tan2Mask.EdgeWeight(i) = std::sin(alphaI);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -323,8 +323,8 @@ Scheme<SCHEME_LOOP>::assignInteriorLimitTangentMasks(VERTEX const& vertex,
|
||||
Weight alpha = (Weight) (2.0f * M_PI / valence);
|
||||
for (int i = 0; i < valence; ++i) {
|
||||
double alphaI = alpha * i;
|
||||
tan1Mask.EdgeWeight(i) = cos(alphaI);
|
||||
tan2Mask.EdgeWeight(i) = sin(alphaI);
|
||||
tan1Mask.EdgeWeight(i) = std::cos(alphaI);
|
||||
tan2Mask.EdgeWeight(i) = std::sin(alphaI);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user