comparison OrthancStone/Sources/Volumes/OrientedVolumeBoundingBox.cpp @ 1610:b7630b1a0253

ISceneLayer::GetBoundingBox() returns void
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 29 Oct 2020 17:13:13 +0100
parents 8563ea5d8ae4
children 9ac2a65d4172
comparison
equal deleted inserted replaced
1609:5f5c549499ff 1610:b7630b1a0253
245 245
246 246
247 bool OrientedVolumeBoundingBox::ComputeExtent(Extent2D& extent, 247 bool OrientedVolumeBoundingBox::ComputeExtent(Extent2D& extent,
248 const CoordinateSystem3D& plane) const 248 const CoordinateSystem3D& plane) const
249 { 249 {
250 extent.Reset(); 250 extent.Clear();
251 251
252 std::vector<Vector> points; 252 std::vector<Vector> points;
253 if (HasIntersection(points, plane)) 253 if (HasIntersection(points, plane))
254 { 254 {
255 for (size_t i = 0; i < points.size(); i++) 255 for (size_t i = 0; i < points.size(); i++)