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

Method ClipDataSet

Filters/General/vtkTableBasedClipDataSet.cxx:333–347  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

331
332//------------------------------------------------------------------------------
333void vtkTableBasedClipDataSet::ClipDataSet(vtkDataSet* pDataSet, vtkUnstructuredGrid* outputUG)
334{
335 vtkNew<vtkClipDataSet> clipData;
336 clipData->SetInputData(pDataSet);
337 clipData->SetValue(this->Value);
338 clipData->SetInsideOut(this->InsideOut);
339 clipData->SetClipFunction(this->ClipFunction);
340 clipData->SetUseValueAsOffset(this->UseValueAsOffset);
341 clipData->SetGenerateClipScalars(this->GenerateClipScalars);
342 clipData->SetContainerAlgorithm(this);
343 clipData->SetLocator(this->Locator);
344 clipData->SetMergeTolerance(this->MergeTolerance);
345 clipData->Update();
346 outputUG->ShallowCopy(clipData->GetOutput());
347}
348
349namespace // begin anonymous namespace
350{

Callers 2

RequestDataMethod · 0.95
ClipTDataSetMethod · 0.95

Calls 6

SetInputDataMethod · 0.45
SetValueMethod · 0.45
SetLocatorMethod · 0.45
UpdateMethod · 0.45
ShallowCopyMethod · 0.45
GetOutputMethod · 0.45

Tested by

no test coverage detected