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

Method EvaluateLocation

Common/DataModel/vtkPolygon.cxx:464–477  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

462
463//------------------------------------------------------------------------------
464void vtkPolygon::EvaluateLocation(
465 int& vtkNotUsed(subId), const double pcoords[3], double x[3], double* weights)
466{
467 int i;
468 double p0[3], p10[3], l10, p20[3], l20, n[3];
469
470 this->ParameterizePolygon(p0, p10, l10, p20, l20, n);
471 for (i = 0; i < 3; i++)
472 {
473 x[i] = p0[i] + pcoords[0] * p10[i] + pcoords[1] * p20[i];
474 }
475
476 this->InterpolateFunctions(x, weights);
477}
478
479//------------------------------------------------------------------------------
480// Compute interpolation weights using 1/r**2 normalized sum or mean value

Callers

nothing calls this directly

Calls 2

ParameterizePolygonMethod · 0.95
InterpolateFunctionsMethod · 0.95

Tested by

no test coverage detected