File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -1010,10 +1010,6 @@ struct Surface {
10101010
10111011 const Point* positions = interpolatedPositions.Get <Point>();
10121012
1013- float pWeights[20 ];
1014- float duWeights[20 ];
1015- float dvWeights[20 ];
1016-
10171013 // Evaluate positions and derivatives
10181014 #pragma omp parallel for
10191015 for (int vertex = 0 ; vertex < tessCoords.size (); ++vertex) {
@@ -1029,6 +1025,9 @@ struct Surface {
10291025 patchMap->FindPatch (ptexFace, coords.x , coords.y );
10301026 assert (handle);
10311027
1028+ float pWeights[20 ];
1029+ float duWeights[20 ];
1030+ float dvWeights[20 ];
10321031 patchTable->EvaluateBasis (
10331032 *handle, coords.x , coords.y ,
10341033 pWeights, duWeights, dvWeights
@@ -1110,8 +1109,6 @@ struct Surface {
11101109
11111110 auto inputValues = interpolatedValues.Get <T>();
11121111
1113- float pWeights[20 ];
1114-
11151112 // Evaluate
11161113 #pragma omp parallel for
11171114 for (int vertex = 0 ; vertex < tessCoords.size (); ++vertex) {
@@ -1127,6 +1124,7 @@ struct Surface {
11271124 patchMap->FindPatch (ptexFace, coords.x , coords.y );
11281125 assert (handle);
11291126
1127+ float pWeights[20 ];
11301128 patchTable->EvaluateBasis (*handle, coords.x , coords.y , pWeights);
11311129
11321130 // Identify the patch cvs and combine with the evaluated weights --
You can’t perform that action at this time.
0 commit comments