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

Function MakeCubicLine

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

Source from the content-addressed store, hash-verified

670}
671
672vtkSmartPointer<vtkCubicLine> MakeCubicLine()
673{
674 auto aLine = vtkSmartPointer<vtkCubicLine>::New();
675
676 double* pcoords = aLine->GetParametricCoords();
677 for (int i = 0; i < aLine->GetNumberOfPoints(); ++i)
678 {
679 aLine->GetPointIds()->SetId(i, i);
680 aLine->GetPoints()->SetPoint(
681 i, *(pcoords + 3 * i), *(pcoords + 3 * i + 1), *(pcoords + 3 * i + 2));
682 }
683
684 return aLine;
685}
686
687vtkSmartPointer<vtkQuadraticWedge> MakeQuadraticWedge()
688{

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