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

Method Contains

Common/DataModel/vtkBoundingBox.cxx:280–298  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

278
279//------------------------------------------------------------------------------
280int vtkBoundingBox::Contains(const vtkBoundingBox& bbox) const
281{
282 // if either box is not valid or they don't intersect
283 if (!this->Intersects(bbox))
284 {
285 return 0;
286 }
287 const double* pt = bbox.GetMinPoint();
288 if (!this->ContainsPoint(pt[0], pt[1], pt[2]))
289 {
290 return 0;
291 }
292 pt = bbox.GetMaxPoint();
293 if (!this->ContainsPoint(pt[0], pt[1], pt[2]))
294 {
295 return 0;
296 }
297 return 1;
298}
299
300//------------------------------------------------------------------------------
301bool vtkBoundingBox::ContainsLine(const double x[3], const double s[3], const double lineEnd[3],

Callers

nothing calls this directly

Calls 4

IntersectsMethod · 0.95
ContainsPointMethod · 0.95
GetMinPointMethod · 0.80
GetMaxPointMethod · 0.80

Tested by

no test coverage detected