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

Function ComputeNormal

Common/DataModel/vtkPolygon.cxx:176–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174//------------------------------------------------------------------------------
175template <bool PointIdRedirection>
176void ComputeNormal(vtkPoints* p, int numPts, const vtkIdType* pts, double* n)
177{
178 using Dispatcher = vtkArrayDispatch::DispatchByArray<vtkArrayDispatch::PointArrays>;
179 ::NormalWorker<PointIdRedirection> worker;
180 if (!Dispatcher::Execute(p->GetData(), worker, numPts, pts, n))
181 {
182 worker(p->GetData(), numPts, pts, n);
183 }
184}
185} // anonymous namespace
186
187//------------------------------------------------------------------------------

Callers 5

ComputeNormalMethod · 0.70
ComputeAreaMethod · 0.70
ComputeCentroidMethod · 0.70
DistanceToPolygonMethod · 0.70

Calls 2

ExecuteFunction · 0.50
GetDataMethod · 0.45

Tested by

no test coverage detected