Volumes Of Fun
http://www.volumesoffun.com/phpBB3/

PolyVox Python questions
http://www.volumesoffun.com/phpBB3/viewtopic.php?f=14&t=581
Page 1 of 1

Author:  landocalrissian [ Mon Apr 14, 2014 6:51 am ]
Post subject:  PolyVox Python questions

Hello,

I was trying to run a snippet of the code that is in the Python documentation page for PolyVox and I seem to be getting an error regarding some of the functions not being available in the PolyVox Python module. For example:
Code:
import PolyVoxCore as pv

r = pv.Region(pv.Vector3Dint32_t(0,0,0), pv.Vector3Dint32_t(63,63,63))
vol = pv.SimpleVolumeuint8(r)

Will yield me an error, 'module' object has no attribute 'Vector3Dint32_t'.
Am I missing something as far as the building PolyVox?
I'm using windows 7 with python 2.7 with the develop branch of PolyVox.

Author:  milliams [ Mon Apr 14, 2014 9:32 am ]
Post subject:  Re: PolyVox Python questions

The bindings are, by default, only built against Python 3. The CMake script should be checking this. Do you have a copy of Python 3 on you system which it might have picked up and built against?

Author:  landocalrissian [ Wed Apr 16, 2014 2:20 am ]
Post subject:  Re: PolyVox Python questions

I do not have a version of python 3 on my system. Odd that it seems to compile ok with python 2.7, would it be possible to get it working with python 2.7? Would Cython bindings be possible?

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/