angles are now stored in per-triangle order

This commit is contained in:
ccolin 2022-02-17 17:29:30 +01:00
parent 8e0c231708
commit df1d96e686

View File

@ -73,15 +73,15 @@ void cellAngles(vtkDataSet *dataSet, vtkIdList *idList, double *angles) {
vtkMath::Subtract(b, d, db);
vtkMath::Subtract(c, d, dc);
angles[0] = vtkMath::AngleBetweenVectors(ab, ac);
angles[1] = vtkMath::AngleBetweenVectors(ac, ad);
angles[2] = vtkMath::AngleBetweenVectors(ad, ab);
angles[3] = vtkMath::AngleBetweenVectors(ba, bc);
angles[4] = vtkMath::AngleBetweenVectors(bc, bd);
angles[5] = vtkMath::AngleBetweenVectors(bd, ba);
angles[6] = vtkMath::AngleBetweenVectors(ca, cb);
angles[7] = vtkMath::AngleBetweenVectors(cb, cd);
angles[8] = vtkMath::AngleBetweenVectors(cd, ca);
angles[9] = vtkMath::AngleBetweenVectors(da, db);
angles[10] = vtkMath::AngleBetweenVectors(db, dc);
angles[11] = vtkMath::AngleBetweenVectors(dc, da);
angles[1] = vtkMath::AngleBetweenVectors(ca, cb);
angles[2] = vtkMath::AngleBetweenVectors(ba, bc);
angles[3] = vtkMath::AngleBetweenVectors(ac, ad);
angles[4] = vtkMath::AngleBetweenVectors(dc, da);
angles[5] = vtkMath::AngleBetweenVectors(cd, ca);
angles[6] = vtkMath::AngleBetweenVectors(ad, ab);
angles[7] = vtkMath::AngleBetweenVectors(bd, ba);
angles[8] = vtkMath::AngleBetweenVectors(da, db);
angles[9] = vtkMath::AngleBetweenVectors(bc, bd);
angles[10] = vtkMath::AngleBetweenVectors(cb, cd);
angles[11] = vtkMath::AngleBetweenVectors(db, dc);
}