[vtk-developers] Tests failing on Borland builds
Ken Martin
ken.martin at kitware.com
Mon Dec 8 16:20:53 EST 2003
Special values should not be used to indicate conditions, but that is
another issue in VTK that isn't going to be tackled today. I like the idea
of adding the static methods to vtkMath.
- Ken
> Yes but you really don't want to do that, it's kind of sad to rely on
> hard-coded values and duplicate them all over, it's bad practice. If Ken
> was here, he would be angry abo... oh wait, who posted that ? :)
>
> Maybe we could add a predicate method:
> int AreBoundsInitialized();
> and a symmetric method to unintialize bounds:
> void UnitializeBounds();
>
> By doing so, we would encapsulate those hard-coded values in only one
> specific place.
>
> Or eventually make those methods static in vtkMath and pass an array of
> something representing the bounds to test or uninitialize, in case you
> just
> want to have a local variable "bounds" and unitialize it, say:
> int vtkMath::AreBoundsInitialized(double bounds[6]);
> int vtkMath::UnInitializeBounds(double bounds[6]);
More information about the vtk-developers
mailing list