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

Method GridsIntersect

Filters/AMR/vtkAMRResampleFilter.cxx:1142–1154  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1140
1141//------------------------------------------------------------------------------
1142bool vtkAMRResampleFilter::GridsIntersect(double* g1, double* g2)
1143{
1144 assert("pre: g1 is nullptr" && (g1 != nullptr));
1145 assert("pre: g2 is nullptr" && (g2 != nullptr));
1146
1147 vtkBoundingBox b1;
1148 b1.SetBounds(g1);
1149
1150 vtkBoundingBox b2;
1151 b2.SetBounds(g2);
1152
1153 return b1.IntersectBox(b2);
1154}
1155
1156//------------------------------------------------------------------------------
1157bool vtkAMRResampleFilter::IsBlockWithinBounds(double* grd)

Callers 1

IsBlockWithinBoundsMethod · 0.95

Calls 3

assertFunction · 0.50
SetBoundsMethod · 0.45
IntersectBoxMethod · 0.45

Tested by

no test coverage detected