It is currently Sat Aug 22, 2020 4:27 am


All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: PolyVox Python questions
PostPosted: Mon Apr 14, 2014 6:51 am 

Joined: Sun Apr 13, 2014 10:44 pm
Posts: 2
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.


Top
Offline Profile  
Reply with quote  
 Post subject: Re: PolyVox Python questions
PostPosted: Mon Apr 14, 2014 9:32 am 
Developer
User avatar

Joined: Sun May 11, 2008 4:29 pm
Posts: 198
Location: UK
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?

_________________
Matt Williams
Linux/CMake guy


Top
Offline Profile  
Reply with quote  
 Post subject: Re: PolyVox Python questions
PostPosted: Wed Apr 16, 2014 2:20 am 

Joined: Sun Apr 13, 2014 10:44 pm
Posts: 2
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?


Top
Offline Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Theme created StylerBB.net