MCPcopy Create free account
hub / github.com/Kitware/VTK / ComputeNormal

Method ComputeNormal

Common/DataModel/vtkTriangle.cxx:788–798  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Compute the triangle normal from a points list, and a list of point ids that index into the points list.

Source from the content-addressed store, hash-verified

786// Compute the triangle normal from a points list, and a list of point ids
787// that index into the points list.
788void 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

Callers

nothing calls this directly

Calls 2

ComputeNormalFunction · 0.70
GetPointMethod · 0.45

Tested by

no test coverage detected