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

Function MakeQuadraticLinearQuad

Common/DataModel/Testing/Cxx/UnitTestCells.cxx:562–575  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

560}
561
562vtkSmartPointer<vtkQuadraticLinearQuad> MakeQuadraticLinearQuad()
563{
564 auto aLinearQuad = vtkSmartPointer<vtkQuadraticLinearQuad>::New();
565
566 double* pcoords = aLinearQuad->GetParametricCoords();
567 for (int i = 0; i < aLinearQuad->GetNumberOfPoints(); ++i)
568 {
569 aLinearQuad->GetPointIds()->SetId(i, i);
570 aLinearQuad->GetPoints()->SetPoint(
571 i, *(pcoords + 3 * i), *(pcoords + 3 * i + 1), *(pcoords + 3 * i + 2));
572 }
573
574 return aLinearQuad;
575}
576
577vtkSmartPointer<vtkQuadraticLinearWedge> MakeQuadraticLinearWedge()
578{

Callers 1

UnitTestCellsFunction · 0.70

Calls 7

NewFunction · 0.50
GetParametricCoordsMethod · 0.45
GetNumberOfPointsMethod · 0.45
SetIdMethod · 0.45
GetPointIdsMethod · 0.45
SetPointMethod · 0.45
GetPointsMethod · 0.45

Tested by

no test coverage detected