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

Function MakeBiQuadraticTriangle

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

Source from the content-addressed store, hash-verified

639}
640
641vtkSmartPointer<vtkBiQuadraticTriangle> MakeBiQuadraticTriangle()
642{
643 auto aTriangle = vtkSmartPointer<vtkBiQuadraticTriangle>::New();
644
645 double* pcoords = aTriangle->GetParametricCoords();
646 for (int i = 0; i < aTriangle->GetNumberOfPoints(); ++i)
647 {
648 aTriangle->GetPointIds()->SetId(i, i);
649 aTriangle->GetPoints()->SetPoint(
650 i, *(pcoords + 3 * i), *(pcoords + 3 * i + 1), *(pcoords + 3 * i + 2));
651 }
652
653 return aTriangle;
654}
655
656vtkSmartPointer<vtkBiQuadraticQuad> MakeBiQuadraticQuad(
657 vtkMinimalStandardRandomSequence* randomSequence)

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