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

Method GetDomainParameters

Filters/AMR/vtkAMRResampleFilter.cxx:893–904  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

891
892//------------------------------------------------------------------------------
893void vtkAMRResampleFilter::GetDomainParameters(vtkOverlappingAMR* amr, double domainMin[3],
894 double domainMax[3], double h[3], int dims[3], double& rf)
895{
896 assert("pre: AMR dataset is nullptr!" && (amr != nullptr));
897
898 rf = amr->GetRefinementRatio(1);
899 amr->GetAMRBox(0, 0).GetNumberOfNodes(dims);
900 amr->GetMin(domainMin);
901 amr->GetMax(domainMax);
902
903 amr->GetSpacing(0, h);
904}
905
906//------------------------------------------------------------------------------
907void vtkAMRResampleFilter::SnapBounds(const double* vtkNotUsed(h0[3]), const double domainMin[3],

Callers 1

Calls 7

GetAMRBoxMethod · 0.80
GetMinMethod · 0.80
GetMaxMethod · 0.80
assertFunction · 0.50
GetRefinementRatioMethod · 0.45
GetNumberOfNodesMethod · 0.45
GetSpacingMethod · 0.45

Tested by

no test coverage detected