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

Method OffsetPoint

Rendering/Annotation/vtkArcPlotter.cxx:345–360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

343}
344
345vtkIdType vtkArcPlotter::OffsetPoint(vtkIdType ptId, vtkPoints* inPts, double n[3],
346 vtkPoints* newPts, double offset, double* range, double v)
347{
348 double x[3], xNew[3];
349 int i;
350 double median = (range[0] + range[1]) / 2.0;
351 double denom = range[1] - range[0];
352
353 inPts->GetPoint(ptId, x);
354 for (i = 0; i < 3; i++)
355 {
356 xNew[i] = x[i] + n[i] * (offset + ((v - median) / denom) * this->Height);
357 }
358
359 return newPts->InsertNextPoint(xNew);
360}
361
362vtkMTimeType vtkArcPlotter::GetMTime()
363{

Callers 1

RequestDataMethod · 0.95

Calls 2

GetPointMethod · 0.45
InsertNextPointMethod · 0.45

Tested by

no test coverage detected