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

Method GetApprox

Common/DataModel/vtkHigherOrderQuadrilateral.cxx:425–434  ·  view source on GitHub ↗

Return a linear quadrilateral used to approximate a region of the nonlinear quadrilateral.

Source from the content-addressed store, hash-verified

423
424/// Return a linear quadrilateral used to approximate a region of the nonlinear quadrilateral.
425vtkQuad* vtkHigherOrderQuadrilateral::GetApprox()
426{
427 if (!this->Approx)
428 {
429 this->Approx = vtkSmartPointer<vtkQuad>::New();
430 this->ApproxPD = vtkSmartPointer<vtkPointData>::New();
431 this->ApproxCD = vtkSmartPointer<vtkCellData>::New();
432 }
433 return this->Approx.GetPointer();
434}
435
436/**\brief Prepare point data for use by linear approximating-elements.
437 *

Callers 1

PrepareApproxDataMethod · 0.95

Calls 2

NewFunction · 0.50
GetPointerMethod · 0.45

Tested by

no test coverage detected