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

Method AddBounds

Common/DataModel/vtkCellGridBoundsQuery.cxx:39–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39void vtkCellGridBoundsQuery::AddBounds(vtkBoundingBox& bbox)
40{
41 // Ignore invalid bounds:
42 if (!bbox.IsValid())
43 {
44 return;
45 }
46 // If the current local bounds are well-defined, then add them to the bbox:
47 if (this->Bounds[0] <= this->Bounds[1])
48 {
49 bbox.AddPoint(this->Bounds[0], this->Bounds[2], this->Bounds[4]);
50 bbox.AddPoint(this->Bounds[1], this->Bounds[3], this->Bounds[5]);
51 }
52 // Now copy bbox into our local storage:
53 bbox.GetBounds(this->Bounds.data());
54}
55
56VTK_ABI_NAMESPACE_END

Callers

nothing calls this directly

Calls 4

IsValidMethod · 0.45
AddPointMethod · 0.45
GetBoundsMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected