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

Function ClonePoints

Parallel/DIY/vtkDIYGhostUtilities.cxx:3573–3585  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

3571
3572//----------------------------------------------------------------------------
3573void ClonePoints(vtkPointSet* ps, vtkPointSet* clone, ::UnstructuredDataInformation& info)
3574{
3575 if (vtkIdList* redirectionMap = info.OutputToInputPointIdRedirectionMap)
3576 {
3577 ps->GetPoints()->GetData()->GetTuples(redirectionMap, clone->GetPoints()->GetData());
3578 }
3579 else
3580 {
3581 vtkPoints* sourcePoints = ps->GetPoints();
3582 sourcePoints->GetData()->GetTuples(
3583 0, sourcePoints->GetNumberOfPoints() - 1, clone->GetPoints()->GetData());
3584 }
3585}
3586
3587//============================================================================
3588template <class ArrayT>

Callers 2

CloneUnstructuredGridFunction · 0.85
ClonePolyDataFunction · 0.85

Calls 4

GetTuplesMethod · 0.45
GetDataMethod · 0.45
GetPointsMethod · 0.45
GetNumberOfPointsMethod · 0.45

Tested by

no test coverage detected