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

Method PermuteToPolygon

Common/DataModel/vtkQuadraticPolygon.cxx:280–294  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

278
279//------------------------------------------------------------------------------
280void vtkQuadraticPolygon::PermuteToPolygon(vtkIdType nbPoints, double* inPoints, double* outPoints)
281{
282 vtkIdList* permutation = vtkIdList::New();
283 vtkQuadraticPolygon::GetPermutationFromPolygon(nbPoints, permutation);
284
285 for (vtkIdType i = 0; i < nbPoints; i++)
286 {
287 for (int j = 0; j < 3; j++)
288 {
289 outPoints[3 * i + j] = inPoints[3 * permutation->GetId(i) + j];
290 }
291 }
292
293 permutation->Delete();
294}
295
296//------------------------------------------------------------------------------
297void vtkQuadraticPolygon::PermuteToPolygon(vtkPoints* inPoints, vtkPoints* outPoints)

Callers

nothing calls this directly

Calls 15

SetNumberOfIdsMethod · 0.80
DeleteMethod · 0.65
NewFunction · 0.50
GetIdMethod · 0.45
GetNumberOfPointsMethod · 0.45
SetNumberOfPointsMethod · 0.45
SetPointMethod · 0.45
GetPointMethod · 0.45
GetNumberOfTuplesMethod · 0.45
SetNumberOfTuplesMethod · 0.45
SetValueMethod · 0.45
GetValueMethod · 0.45

Tested by

no test coverage detected