The python interface generated via SWIG works well for passing objects by
references, but fails to
properly pass data primitives (doubles, ints, etc) properly. For example, in
python:
>>> import stomp
>>> ang = stomp.AngularCoordinate(60.0, 20.0)
>>> pix = stomp.Pixel(ang, 4)
>>> near_distance = 0.0
>>> far_distance = 0.0
>>> pix.EdgeDistances(ang, near_distance, far_distance)
True
>>> print near_distance, far_distance
0.0 0.0
This should store the distance from the input AngularCoordinate to the near and
far Pixel edge
distances into the near_distance and far_distance variables. However, the
values of these
variables are unchanged.
Original issue reported on code.google.com by ryan.scr...@gmail.com on 17 May 2010 at 7:44
Original issue reported on code.google.com by
ryan.scr...@gmail.com
on 17 May 2010 at 7:44