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

Function MakeBiQuadraticQuad

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

Source from the content-addressed store, hash-verified

654}
655
656vtkSmartPointer<vtkBiQuadraticQuad> MakeBiQuadraticQuad(
657 vtkMinimalStandardRandomSequence* randomSequence)
658{
659 auto aQuad = vtkSmartPointer<vtkBiQuadraticQuad>::New();
660
661 double* pcoords = aQuad->GetParametricCoords();
662 for (int i = 0; i < aQuad->GetNumberOfPoints(); ++i)
663 {
664 aQuad->GetPointIds()->SetId(i, i);
665 aQuad->GetPoints()->SetPoint(i, *(pcoords + 3 * i) + randomSequence->GetNextRangeValue(-.1, .1),
666 *(pcoords + 3 * i + 1) + randomSequence->GetNextRangeValue(-.1, .1), *(pcoords + 3 * i + 2));
667 }
668
669 return aQuad;
670}
671
672vtkSmartPointer<vtkCubicLine> MakeCubicLine()
673{

Callers 1

UnitTestCellsFunction · 0.70

Calls 8

GetNextRangeValueMethod · 0.80
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