[vtk-developers] Tests failing on Borland builds
Ken Martin
ken.martin at kitware.com
Tue Dec 9 11:14:08 EST 2003
Hey Dean,
I'll try putting this in unless you have already started. OK?
Thanks
Ken
> -----Original Message-----
> From: vtk-developers-admin at vtk.org [mailto:vtk-developers-admin at vtk.org]
> On Behalf Of dean.inglis at camris.ca
> Sent: Monday, December 08, 2003 4:39 PM
> To: vtk-developers at vtk.org
> Subject: RE: [vtk-developers] Tests failing on Borland builds
>
> I like Sebastien's static methods idea. Would it
> be sensible to recognize the state of initialized to
> be a positive volume and unitialized as a negative volume,
> avoiding VTK_DOUBLE_MAX or VTK_FLOAT_MAX altogether?
> e.g.,
>
> void vtkMath::UnitializeBounds(double bounds[6]){
> bounds[0] = 1.0;
> bounds[1] = -1.0;
> bounds[2] = 1.0;
> bounds[3] = -1.0;
> bounds[4] = 1.0;
> bounds[5] = -1.0;
> }
>
> void vtkMath::AreBoundsInitialized(double bounds[6]){
> double diff,vol = 1.0;
> for(int i=0;i<3;i++)
> {
> diff = bounds[2*i+1]-bounds[2*i];
> if(diff != 0.0) {vol *= diff;}
> }
> return ((vol<0.0)?0:1);
> }
>
> Dean
>
> _______________________________________________
> vtk-developers mailing list
> vtk-developers at vtk.org
> http://www.vtk.org/mailman/listinfo/vtk-developers
More information about the vtk-developers
mailing list