------------------------------------------------------------------------------ Compute the triangle normal from a points list, and a list of point ids that index into the points list.
| 786 | // Compute the triangle normal from a points list, and a list of point ids |
| 787 | // that index into the points list. |
| 788 | void vtkTriangle::ComputeNormal( |
| 789 | vtkPoints* p, int vtkNotUsed(numPts), const vtkIdType* pts, double n[3]) |
| 790 | { |
| 791 | double v1[3], v2[3], v3[3]; |
| 792 | |
| 793 | p->GetPoint(pts[0], v1); |
| 794 | p->GetPoint(pts[1], v2); |
| 795 | p->GetPoint(pts[2], v3); |
| 796 | |
| 797 | vtkTriangle::ComputeNormal(v1, v2, v3, n); |
| 798 | } |
| 799 | |
| 800 | //------------------------------------------------------------------------------ |
| 801 | // Compute the circumcenter (center[3]) and radius squared (method |
nothing calls this directly
no test coverage detected