646 Commits

Author SHA1 Message Date
Daviw Williams
e405b46b61 Removed the default value for emptyVoxelExample as it caused compile errors on VS2010. 2013-05-14 15:44:56 +02:00
David Williams
ee299a45f0 Work on error handling. I replaced some asserts with exceptions and also added basic error handling documentation. 2013-05-11 10:05:08 +02:00
Matt Williams
62d164ef8a Remove unnecessary assignment. 2013-05-10 09:44:15 +01:00
Matt Williams
22a6714875 Add a default constructor to PickResult to avoid brittle instatiation. 2013-05-09 20:56:10 +01:00
Matt Williams
f98959f92a Add a new pickVoxel function.
Hopefully this pickVoxel function will fulfil most most need with
raycasting which aren't covered by the existing raycast functions.

It's essentially a wrapper around the current functions, using a custom
functor to store the position of a solid voxel as well as the previous
empty voxel. It doesn't require the user to provide a functor of their own,
just the value that they've assigned to empty voxels.

As well as the function itself, we also have a unit test as well as it
being built in the bindings.
2013-05-01 22:28:46 +01:00
Daviw Williams
1d643becc5 Replaced std::exit with a crash. 2013-03-27 15:21:38 +01:00
David Williams
5cab70b24c Fixed code to use proper zero initialisation. 2013-03-04 22:01:43 +01:00
Daviw Williams
6374ebf092 Apparently I didn't test my fix for warning 4127 because it didn't actually work. Now fixed :-) 2013-03-04 17:10:23 +01:00
Daviw Williams
23042c3fcb Moved warning suppression into the relevant file so that it's not global. 2013-03-04 16:00:43 +01:00
Daviw Williams
df5c339f64 Just remembered that we settled on a different formatting for the API docs so that it gets highlighted better in KDE. 2013-03-04 15:36:11 +01:00
Daviw Williams
b4fcb3daf8 Added API documentation regarding compression. 2013-03-04 15:17:19 +01:00
Daviw Williams
74b4caba6b Added some API docs to compressor. 2013-03-01 17:06:51 +01:00
David Williams
a7e49a1394 Still trying to get rid of the warnings on the CDash machine. It's tricky because I'm not seeing the locally and the warning supression seems to vary bewteen vesions of GCC (See: http://dbp-consulting.com/tutorials/SuppressingGCCWarnings.html). 2013-03-01 16:07:50 +01:00
Daviw Williams
34671130fb Tidying up Miniz compression code. 2013-02-25 16:33:39 +01:00
Daviw Williams
81eab0ebfb Work on low-level version of compression. 2013-02-22 17:03:47 +01:00
Daviw Williams
1a39577ec0 CubicSurfaceExtractor now uses int for some internal work instead of floats. 2013-02-21 16:44:44 +01:00
Daviw Williams
b7eeda3370 Find and replace all instance of getLowerCorner().getX(), etc with getLowerX(), etc has resulted in all tests now running in 120 seconds instead of 144 seconds because it avoids creating temporary objects. 2013-02-08 16:15:53 +01:00
Daviw Williams
7327220b1c Performance enhancements identified through profiling. 2013-02-08 15:43:37 +01:00
Daviw Williams
608777bb9b Performance improvements for CubicSurfaceExtractor 2013-02-08 15:14:15 +01:00
Daviw Williams
7e08ed7aec Updated the CubicSurfaceExtractor test to make it a bit more performance intensive, Cubiquity is showing a need for some improvements here. Also added a performance improvement to the CubicsurfaceExtractor. 2013-02-08 15:05:45 +01:00
Daviw Williams
c5023ff623 Changed void* to uint8_t*. 2013-02-08 13:29:49 +01:00
Daviw Williams
36968bdd79 Merge branch 'develop' into feature/large-volume-work 2013-02-07 16:11:03 +01:00
Daviw Williams
50c1c7c64b Removed setCompressionEnabled() from LargeVolume. 2013-02-07 15:55:10 +01:00
Daviw Williams
8d2061bdb5 Fixed crash with MaxVerticesPerPosition being set too low. 2013-02-04 16:38:50 +01:00
Daviw Williams
09c6e2bf26 More work making the compression more robust. 2013-02-01 16:10:10 +01:00
Daviw Williams
a5b768e5f9 Working to make compression handing more robust. 2013-02-01 15:43:20 +01:00
Daviw Williams
3d66db50e0 Fixes and comments for RLE compression. 2013-02-01 14:09:29 +01:00
Daviw Williams
46e38c4714 Work on compression. 2013-01-31 16:56:32 +01:00
Daviw Williams
a81ec68714 Work on compression interface. 2013-01-31 16:35:50 +01:00
Daviw Williams
36676433be Work on compression interface. 2013-01-31 15:54:04 +01:00
Daviw Williams
924744c5e6 Looks like RLECompressor works as well. 2013-01-30 16:58:13 +01:00
Daviw Williams
a1cdf78250 Block now working with new MinizCompressor. Removing some old compression code. 2013-01-30 16:49:06 +01:00
Daviw Williams
804a766037 Added my two new compressor classes - one based on Miniz and the other based on RLE. 2013-01-30 16:04:47 +01:00
Daviw Williams
68ee094cec More work on block compression with miniz. 2013-01-11 13:29:33 +01:00
Daviw Williams
7bb7be0dec Work on block compression. 2013-01-10 16:37:02 +01:00
Daviw Williams
c7937b176d Very bad (but functional!) initial implementation of LargeVolume compression with miniz. 2013-01-10 16:20:29 +01:00
Daviw Williams
1e9bb88337 Fixed compile errors in VS2008. 2013-01-02 14:13:42 +01:00
David Williams
ff789d296d Removed remaining traces of assert() 2013-01-01 18:08:59 +00:00
David Williams
4ee55bba2e More replacing assert() with POLYVOX_ASSERT 2013-01-01 15:34:34 +00:00
David Williams
29720c4568 More replacing assert() with POLYVOX_ASSERT. 2013-01-01 14:50:58 +00:00
David Williams
4fcc8a15d7 Merge branch 'develop' of https://bitbucket.org/volumesoffun/polyvox into develop 2013-01-01 14:10:24 +00:00
David Williams
858a9c0e1b Replaced some assert()s with POLYVOX_ASSERT()s. 2013-01-01 14:09:40 +00:00
David Williams
d5b03cdbc3 Made use of POLYVOX_THROW where appropriate. 2012-12-29 23:29:28 +01:00
David Williams
0c78d97ba5 Better defaults for compiler capabilities. 2012-12-29 23:16:29 +01:00
David Williams
9273094ebd Added config.h to control exceptions and asserts. 2012-12-29 22:56:15 +01:00
David Williams
161835f42b Boost is no longer needed if <cstdint> is not found. 2012-12-29 22:26:21 +01:00
David Williams
5be6a8ba44 Updated default compiler capabilities as used by Visual Studio - these are subject to change further. 2012-12-29 20:41:23 +00:00
David Williams
50c9934376 Bringing minor improvements from Cubiquity's PolyVox into the main branch. 2012-12-29 17:02:07 +00:00
David Williams
ed614802fe Merge branch 'develop' of https://bitbucket.org/volumesoffun/polyvox into develop 2012-12-29 14:07:11 +00:00
David Williams
4f7a6256a9 The throwing of exceptions can now be disabled, and in this case a handler function is called instead. 2012-12-29 00:11:23 +00:00