Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python SWIG issue #2

Open
GoogleCodeExporter opened this issue Nov 1, 2015 · 1 comment
Open

Python SWIG issue #2

GoogleCodeExporter opened this issue Nov 1, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 17 May 2010 at 7:44

@GoogleCodeExporter
Copy link
Author

Original comment by [email protected] on 17 May 2010 at 7:50

  • Changed state: Started

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant