R: [vtkusers] atan2 domain error and distance widget error
Lazzarato Dr. Gianni
lazzadrgi at libero.it
Wed Apr 4 08:37:15 EDT 2007
Hi Michael,
i resolved by myself :
For anglewidget problem I take care at the case where double theta1 =
atan2(p1[1]-c[1],p1[0]-c[0]) ; take 0 values -> double theta1 =
atan2(0,0); in vtkAngleRepresentation2d.
( the same for theta2,obviously)
Also I changed the value of font scaling in vtkleaderactor2d (#define
VTK_LA2D_FACTOR 0.015) increasing to 0.025.
I did the same also for vtkimageaxis2d involved in vtkdistancewidget.
Thats all , everything is ok for me, right now. :)
Regards
Gianni
_____
Da: vtkusers-bounces+lazzadrgi=libero.it at vtk.org
[mailto:vtkusers-bounces+lazzadrgi=libero.it at vtk.org] Per conto di Michael
Knopke
Inviato: martedì 3 aprile 2007 9.26
A: vtkusers at vtk.org
Oggetto: [vtkusers] atan2 domain error
Hi,
I have posted this error long time ago in the bugtracker, so far no answer.
The problem seems not the class vtkAngleWidget itself, its rather related to
a different behavior of one of its superclasses, I guess it is
vtkAbstractWidget. So in the end vtkAngleWidget needs to be changed to
accommodate this new behavior.
If you make any progress with it, let the forum know please.
Regards
Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070404/6196dbc4/attachment.htm>
More information about the vtkusers
mailing list