View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0009164VTK(No Category)public2009-06-16 12:092009-08-11 15:22
ReporterJohn Stark 
Assigned ToBob O'Bara 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0009164: vtkBoundingBox::GetBound returns incorrect bound.
DescriptionThe use of bit-wise OR in vtkBoundingBox::GetBound(int i) seems to be incorrect. As implemented the maximum bound is always returned, rather than the min or max. I suggest the "(i | 0x1)" should be "(i & 0x1)".


Additional Informationinline double vtkBoundingBox::GetBound(int i) const
{
  // If i is odd then when are returning a part of the max bounds
  // else part of the min bounds is requested. The exact component
  // needed is i /2 (or i right shifted by 1
  return ((i | 0x1) ? this->MaxPnt[i>>1] : this->MinPnt[i>>1]);
}
-------------^
Error here?
TagsNo tags attached.
Project
Type
Attached Files

 Relationships

  Notes
(0017076)
Bob O'Bara (developer)
2009-08-06 12:05

revision 1.10
date: 2009-06-18 15:54:45 -0400; author: obara; state: Exp; lines: +1 -1; commitid: MrAMzGUdVpRcknSt;
BUG:Fixed logic error with GetBounds

 Issue History
Date Modified Username Field Change
2009-06-16 12:09 John Stark New Issue
2009-08-06 12:04 Bob O'Bara Status backlog => tabled
2009-08-06 12:04 Bob O'Bara Assigned To => Bob O'Bara
2009-08-06 12:05 Bob O'Bara Note Added: 0017076
2009-08-06 12:05 Bob O'Bara Status tabled => @80@
2009-08-06 12:05 Bob O'Bara Resolution open => fixed
2009-08-11 15:22 François Bertel Status @80@ => closed
2011-06-16 13:11 Zack Galbreath Category => (No Category)


Copyright © 2000 - 2018 MantisBT Team