It is currently Sat Aug 22, 2020 12:26 pm


All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: PolyVox refactoring
PostPosted: Thu Mar 19, 2009 10:05 pm 
Developer
User avatar

Joined: Sun May 04, 2008 6:35 pm
Posts: 1827
I'm going to be doing some pretty significant changes to PolyVox which will definatly break existing code. This is annoying, but it's best if I do it now before there are too many users. I'll use this thread to idicate the biggest changes which take place. To start with:

Renaming classes:
'BlockVolume' -> 'Volume'
'BlockVolumeIterator' -> 'VolumeIterator'

I will always try to keep the example up to date with the changes.


Top
Offline Profile  
Reply with quote  
 Post subject: Re: PolyVox refactoring
PostPosted: Thu Mar 19, 2009 10:46 pm 
Developer
User avatar

Joined: Sun May 04, 2008 6:35 pm
Posts: 1827
If you are using the VolumeChangeTracker, you now have to provide a volume when you construct it. You also have to specify the region side length as this was previously a globally defined constant.


Top
Offline Profile  
Reply with quote  
 Post subject: Re: PolyVox refactoring
PostPosted: Tue Mar 24, 2009 11:21 pm 
Developer
User avatar

Joined: Sun May 04, 2008 6:35 pm
Posts: 1827
The size of blocks and volumes is now specified dorectly in the constructor. Previously you had to specify the power to which two must be raised, which was confusing. So if you want a side length of 256 then under the old system it was:
Code:
Volume<uint8> volume(8); //Because 2^8=256

Now it's:
Code:
Volume<uint8> volume(256); //Much more obvious

Side lengths must still be powers of two, otherwise an exception or assert will occur.


Top
Offline Profile  
Reply with quote  
 Post subject: Re: PolyVox refactoring
PostPosted: Fri Apr 03, 2009 10:06 pm 
Developer
User avatar

Joined: Sun May 04, 2008 6:35 pm
Posts: 1827
Ok, it's getting a bit out of hand with all the changes I'm making. Functions, classes, files, directories - everything is being renamed and moving. I can't possibly keep this thread up to date...

Give it a couple of weeks to calm down and everything will be arranged much more nicely. Then look at the example to see how it should work.


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 7 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