weightsfile

This commit is contained in:
Joachim Schoeberl 2012-10-18 08:26:30 +00:00
parent a8dd47ac18
commit b72d5caf1b

View File

@ -269,7 +269,10 @@ void Ng_LoadMesh (const char * filename)
delete [] weightsfilename;
if (!(weightsfile.good()))
{
// cout << "regular distribute" << endl;
mesh -> Distribute();
}
else
{
char str[20];
@ -288,7 +291,7 @@ void Ng_LoadMesh (const char * filename)
{
weightsfile >> n;
segment_weights.SetSize(n);
for (int i=0; i<n; i++)
for (int i = 0; i < n; i++)
weightsfile >> dummy >> segment_weights[i];
}