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

PolyVox refactoring
http://www.volumesoffun.com/phpBB3/viewtopic.php?f=2&t=29
Page 1 of 1

Author:  David Williams [ Thu Mar 19, 2009 10:05 pm ]
Post subject:  PolyVox refactoring

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.

Author:  David Williams [ Thu Mar 19, 2009 10:46 pm ]
Post subject:  Re: PolyVox refactoring

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.

Author:  David Williams [ Tue Mar 24, 2009 11:21 pm ]
Post subject:  Re: PolyVox refactoring

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.

Author:  David Williams [ Fri Apr 03, 2009 10:06 pm ]
Post subject:  Re: PolyVox refactoring

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.

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