[vtk-developers] vtkOBBTree sqrt domain err

Dean Inglis dean.inglis at camris.ca
Mon Nov 28 11:26:46 EST 2005


Hi, 

I have submitted the follwoing to the php bug tracker,
but in the meantime, if someone with extensive knowledge
of vtkOBBTree could comment on the bug?

I have a fairly complex pipeline that
cannot readily be encapsulated into a running
example to demo what I believe is a bug.
In vtkOBBTree.cxx, at about line 1795, 
in int vtkOBBTree::LineIntersectsNode()
the following code can produce a sqrt domain err:
if ( eps != 0 ) 
  {
  eps *= sqrt(rangeAmax - rangeAmin);
  }
The errors I encountered are resolved by putting
the subtraction in a fabs() funtion call within the sqrt.  
However, I am unsure if this will 
impact any other pipelines using this class. 

Dean

 



More information about the vtk-developers mailing list