angles are now stored in per-triangle order
This commit is contained in:
parent
8e0c231708
commit
df1d96e686
@ -73,15 +73,15 @@ void cellAngles(vtkDataSet *dataSet, vtkIdList *idList, double *angles) {
|
|||||||
vtkMath::Subtract(b, d, db);
|
vtkMath::Subtract(b, d, db);
|
||||||
vtkMath::Subtract(c, d, dc);
|
vtkMath::Subtract(c, d, dc);
|
||||||
angles[0] = vtkMath::AngleBetweenVectors(ab, ac);
|
angles[0] = vtkMath::AngleBetweenVectors(ab, ac);
|
||||||
angles[1] = vtkMath::AngleBetweenVectors(ac, ad);
|
angles[1] = vtkMath::AngleBetweenVectors(ca, cb);
|
||||||
angles[2] = vtkMath::AngleBetweenVectors(ad, ab);
|
angles[2] = vtkMath::AngleBetweenVectors(ba, bc);
|
||||||
angles[3] = vtkMath::AngleBetweenVectors(ba, bc);
|
angles[3] = vtkMath::AngleBetweenVectors(ac, ad);
|
||||||
angles[4] = vtkMath::AngleBetweenVectors(bc, bd);
|
angles[4] = vtkMath::AngleBetweenVectors(dc, da);
|
||||||
angles[5] = vtkMath::AngleBetweenVectors(bd, ba);
|
angles[5] = vtkMath::AngleBetweenVectors(cd, ca);
|
||||||
angles[6] = vtkMath::AngleBetweenVectors(ca, cb);
|
angles[6] = vtkMath::AngleBetweenVectors(ad, ab);
|
||||||
angles[7] = vtkMath::AngleBetweenVectors(cb, cd);
|
angles[7] = vtkMath::AngleBetweenVectors(bd, ba);
|
||||||
angles[8] = vtkMath::AngleBetweenVectors(cd, ca);
|
angles[8] = vtkMath::AngleBetweenVectors(da, db);
|
||||||
angles[9] = vtkMath::AngleBetweenVectors(da, db);
|
angles[9] = vtkMath::AngleBetweenVectors(bc, bd);
|
||||||
angles[10] = vtkMath::AngleBetweenVectors(db, dc);
|
angles[10] = vtkMath::AngleBetweenVectors(cb, cd);
|
||||||
angles[11] = vtkMath::AngleBetweenVectors(dc, da);
|
angles[11] = vtkMath::AngleBetweenVectors(db, dc);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user