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

Function MakePolyLineSource

Rendering/WebGPU/Testing/Cxx/TestMixedGeometry.cxx:32–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30namespace
31{
32vtkNew<vtkPolyLineSource> MakePolyLineSource(
33 vtkIdType numPts, bool closed, double offsetX, double offsetY)
34{
35 vtkNew<vtkPolyLineSource> polylines;
36 polylines->Resize(numPts);
37 polylines->SetClosed(closed);
38 for (vtkIdType i = 0; i < numPts; ++i)
39 {
40 double zigzag = (i % 2);
41 polylines->SetPoint(i, i + offsetX + zigzag, i + offsetY, 0);
42 }
43 return polylines;
44}
45}
46
47int TestMixedGeometry(int argc, char* argv[])

Callers 1

TestMixedGeometryFunction · 0.70

Calls 3

ResizeMethod · 0.45
SetClosedMethod · 0.45
SetPointMethod · 0.45

Tested by

no test coverage detected