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

Method InflateSlice

Common/DataModel/vtkBoundingBox.cxx:185–196  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Make sure the length of all sides of the bounding box are non-zero, and at least 2*delta thick.

Source from the content-addressed store, hash-verified

183// Make sure the length of all sides of the bounding box are non-zero, and at
184// least 2*delta thick.
185void vtkBoundingBox::InflateSlice(double delta)
186{
187 for (auto i = 0; i < 3; ++i)
188 {
189 double w = this->MaxPnt[i] - this->MinPnt[i];
190 if (w < (2.0 * delta))
191 {
192 this->MinPnt[i] -= delta;
193 this->MaxPnt[i] += delta;
194 }
195 }
196}
197
198//------------------------------------------------------------------------------
199int vtkBoundingBox::IntersectBox(const vtkBoundingBox& bbox)

Callers 1

EvaluatePositionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected