[vtkusers] vtkBoundingBox GetCenter Error?
Francois Bertel
francois.bertel at kitware.com
Fri Jul 13 10:09:56 EDT 2007
Patch applied. Thank you.
Lim, Theodore wrote:
> Hi,
>
> I think there might be an error in vtkBoundingBox GetCenter().
>
> // Original
> inline void vtkBoundingBox::GetCenter(double center[3]) const
> {
> center[0] = 0.5 * this->MaxPnt[0] + this->MinPnt[0];
> center[1] = 0.5 * this->MaxPnt[1] + this->MinPnt[1];
> center[2] = 0.5 * this->MaxPnt[2] + this->MinPnt[2];
> }
>
> // My change
> inline void vtkBoundingBox::GetCenter(double center[3]) const
> {
> center[0] = 0.5 * ( this->MaxPnt[0] + this->MinPnt[0] );
> center[1] = 0.5 * ( this->MaxPnt[1] + this->MinPnt[1] );
> center[2] = 0.5 * ( this->MaxPnt[2] + this->MinPnt[2] );
> }
>
> Cheers,
> Theo.
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
--
François Bertel, PhD | Kitware Inc. Suite 204
1 (518) 371 3971 x113 | 28 Corporate Drive
| Clifton Park NY 12065, USA
More information about the vtkusers
mailing list