Fixed VS2010 warnings/errors.

This commit is contained in:
David G. Yu 2013-12-31 23:50:55 -08:00
parent fdc3d11852
commit 570ebf7156
2 changed files with 3 additions and 3 deletions

View File

@ -148,7 +148,7 @@ blenderStyleTessellate(char *inputFile, char *outputFile, std::string *errorMess
// Push the vertex data
adaptiveEvaluator.SetCoarsePositions(
&(pointPositions[0]), pointPositions.size(), errorMessage);
&(pointPositions[0]), (int) pointPositions.size(), errorMessage);
// Refine with one thread
if (not adaptiveEvaluator.Refine(1, errorMessage)) {

View File

@ -329,7 +329,7 @@ PxOsdUtilAdaptiveEvaluator::GetRefinedTopology(
}
}
int startingPositionIndex = positions->size();
int startingPositionIndex = (int) positions->size();
int currentGridSize = gridSize;
// Subfaces have a smaller gridsize so tessellation lines up.
@ -377,7 +377,7 @@ PxOsdUtilAdaptiveEvaluator::GetRefinedTopology(
} // while (not done)
out->name = GetTopology().name + "_refined";
out->numVertices = positions->size()/3;
out->numVertices = (int) positions->size()/3;
out->refinementLevel = GetTopology().refinementLevel;
return out->IsValid(errorMessage);