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

Function PolyLineToShading

IO/ExportPDF/vtkPDFContextDevice2D.cxx:119–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119void PolyLineToShading(const float* points, int numPoints, const unsigned char* color, int nc_comps,
120 float radius, HPDF_Shading shading)
121{
122 for (int i = 0; i < numPoints - 1; ++i)
123 {
124 const int n = i + 1;
125 LineSegmentToShading(
126 points + 2 * i, color + nc_comps * i, points + 2 * n, color + nc_comps * n, radius, shading);
127 }
128}
129
130std::pair<double, double> GetScaleFactor(vtkMatrix3x3* mat)
131{

Callers 2

DrawPolyMethod · 0.85
DrawPolyDataMethod · 0.85

Calls 1

LineSegmentToShadingFunction · 0.85

Tested by

no test coverage detected