From df1d96e6867c2c3b50a4967664dfd9a19fba2f39 Mon Sep 17 00:00:00 2001 From: ccolin Date: Thu, 17 Feb 2022 17:29:30 +0100 Subject: [PATCH] angles are now stored in per-triangle order --- src/angles_filter.cc | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/angles_filter.cc b/src/angles_filter.cc index 5df391e..7978e50 100644 --- a/src/angles_filter.cc +++ b/src/angles_filter.cc @@ -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); }