Commit Graph

36 Commits

Author SHA1 Message Date
Daviw Williams
1e55859107 Renamed WrapMode::None (and others) to avoid conflict with Python reserved word 'None'. 2013-06-13 16:49:02 +02:00
Daviw Williams
2f62a7de8d Marked getVoxelAt functions as deprecated. 2013-06-12 15:51:06 +02:00
Daviw Williams
1f2b7e4742 Added modified setVoxel functions to SimpleVolume and LargeVolume. 2013-06-07 16:57:45 +02:00
Daviw Williams
3d82b9643f Applied BoundsCheck and WrapMode merging changes to SimpleVolume. 2013-06-07 15:58:24 +02:00
Daviw Williams
ea4d6d3168 Added setVoxel() functions to replace setVoxelAt() functions in the same way that getVoxel() replaces getVoxelAt(). 2013-05-17 16:36:04 +02:00
Daviw Williams
fa8e7c390f replaced 'getVoxelWithWrapping()' with regular 'getVoxel()', as they can be differentiated by their parameters. 2013-05-17 15:52:18 +02:00
Daviw Williams
4765390ef6 Replaced bool parameter with 'BoundsCheck' parameter for a nicer API. 2013-05-17 14:51:14 +02:00
Daviw Williams
617834bed4 Made getVoxel() bounds checking optional, based on a function parameter. 2013-05-17 14:32:20 +02:00
Daviw Williams
1010052ea6 Reworking the logging system. 2013-05-14 16:52:16 +02:00
David Williams
5cab70b24c Fixed code to use proper zero initialisation. 2013-03-04 22:01:43 +01:00
David Williams
ff789d296d Removed remaining traces of assert() 2013-01-01 18:08:59 +00:00
David Williams
ab6898c4c5 Removed the assignment operator from SimpleVolume::Sampler and LargeVolume::Sampler. I had forgotten to call the base class assignment operator and this was causing problems.
Also updated the volume unit tests... at least I know now that it's helping!
2012-12-06 23:53:51 +01:00
Daviw Williams
d19f16ef64 Added new accessors to volume. getVoxel() and getVoxelWithWrapping() will probably replace getVoxelAt, which will be deprecated. 2012-12-06 16:17:21 +01:00
David Williams
9d79035890 Moved volume border handling into base class. RawVolume and SimpleVolume updated, LargeVolume still to be done. 2012-12-03 23:43:44 +01:00
David Williams
649e3dddb9 Deprecated getSubSampledVoxel() in SimpeVolume and LargeVolume 2012-12-02 08:31:36 +01:00
unknown
17054c6747 Removed exception specifiers from PolyVox. See http://stackoverflow.com/questions/88573/should-i-use-an-exception-specifier-in-c
They are also deprecated in C++11 anyway.
2012-11-09 14:04:01 +01:00
unknown
d4edc1047e Renamed 'PolyVoxImpl' to just 'Impl'. 2012-11-05 17:00:09 +01:00
unknown
b5414381ec Added asserting copy constructors and assignment operators to volumes. 2012-11-02 14:41:56 +01:00
Matt Williams
856cdca604 Add a whole bunch of documentation 2012-10-27 18:53:32 +01:00
Matt Williams
d79b1006f3 Remove deprecated constructor 2012-06-21 22:19:44 +01:00
unknown
af04b96105 Replaced sampler getPosX, etc, with general getPosition(). 2012-03-09 16:03:46 +01:00
unknown
4658e8026e Renamed 'resize' to 'initialise' and made it private. 2012-02-28 10:57:53 +01:00
David Williams
6f31898fd7 Renamed Volume base class to BaseVolume.
Added initial version of simple interface.
2011-10-14 23:57:10 +01:00
David Williams
df035d5237 Fixed memory leaks. 2011-09-08 21:29:23 +01:00
David Williams
0c97756a0c GCC fixes 2011-09-05 21:44:02 +01:00
David Williams
b84147f650 Replaced template 'hack' with preprocessor 'fix' to allow compilation on both GCC and Visual Studio. The previous approach was causing problems on VS2008. 2011-09-04 13:57:24 +01:00
David Williams
894455e35f Tidying up of headers and #includes. 2011-09-04 12:12:30 +01:00
David Williams
90063354bd Added setVoxel() funtion to volume iterators.
Fixed bugs with RawVolume iterator movement funtions.
Proper implementation of RawVolume peek...() functions.
2011-08-15 21:10:09 +01:00
David Williams
53ae3de413 Replaced GCC/VS2010 hacks with code that should compile on both platforms. 2011-07-31 08:58:52 +01:00
David Williams
b94b7e7baf Moved sampler position into base class. 2011-07-30 14:07:33 +01:00
David Williams
f7c511b2c6 Moved volume pointer into base sampler class. 2011-07-27 21:46:57 +01:00
David Williams
f847e6ad94 g++ compile fixes 2011-07-26 20:58:46 +01:00
David Williams
8dc1951a06 More work making volumes use a base class. 2011-07-26 21:36:17 +01:00
David Williams
8c7056d1a9 Made SimpleVolume and RawVolume derive from base Volume class. 2011-07-24 21:33:04 +01:00
Matt Williams
acd3c3c791 Fix SWIG bindings
The bindings now compile and in Python a mesh can be extracted from a volume.
The only extractor currently bound is SurfaceExtractor<SimpleVolume, Material8>.

The bindings are still commented out in library/CMakeLists.txt by default.
2011-06-07 20:33:01 +02:00
David Williams
528cb73771 Moved headers into subdirectories. 2011-05-17 22:27:46 +01:00