Commit Graph

1081 Commits

Author SHA1 Message Date
6c77e778dd Added namespace qualifiers. 2013-05-22 15:18:08 +02:00
f3b0183013 Switching to a stream-based interface for logging. 2013-05-22 14:21:50 +02:00
efd4878450 Updated documentation. 2013-05-17 16:44:32 +02:00
ea4d6d3168 Added setVoxel() functions to replace setVoxelAt() functions in the same way that getVoxel() replaces getVoxelAt(). 2013-05-17 16:36:04 +02:00
fa8e7c390f replaced 'getVoxelWithWrapping()' with regular 'getVoxel()', as they can be differentiated by their parameters. 2013-05-17 15:52:18 +02:00
4765390ef6 Replaced bool parameter with 'BoundsCheck' parameter for a nicer API. 2013-05-17 14:51:14 +02:00
617834bed4 Made getVoxel() bounds checking optional, based on a function parameter. 2013-05-17 14:32:20 +02:00
c806da9bb7 Compile fixes brought across from Cubiquity. 2013-05-16 16:17:01 +02:00
618b09df46 Fixed compile errors. 2013-05-16 16:14:05 +02:00
fa29a83ebd Merge branch 'develop' into feature/cubiquity-version 2013-05-16 16:06:53 +02:00
2203e30f39 Added documentation on error handling.
Default log handler now suppresses LogLevels::Debug messages.
2013-05-15 17:01:57 +02:00
a1355f6d50 More work on improved logging. 2013-05-15 15:55:39 +02:00
1010052ea6 Reworking the logging system. 2013-05-14 16:52:16 +02:00
e405b46b61 Removed the default value for emptyVoxelExample as it caused compile errors on VS2010. 2013-05-14 15:44:56 +02:00
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
62d164ef8a Remove unnecessary assignment. 2013-05-10 09:44:15 +01:00
22a6714875 Add a default constructor to PickResult to avoid brittle instatiation. 2013-05-09 20:56:10 +01:00
2a839e583d Added stream serialisation to Region. 2013-05-07 15:41:26 +02:00
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
cc430ae129 Update Python bindings, tests and example to use Python 3 2013-04-17 20:48:15 +01:00
1d643becc5 Replaced std::exit with a crash. 2013-03-27 15:21:38 +01:00
055539ef75 Reenabled exceptions as we're not using Cubiquity on mobile at the moment. 2013-03-26 11:45:53 +01:00
5eedb9f21c Merge branch 'develop' into feature/cubiquity-version
Conflicts:
	library/PolyVoxCore/include/PolyVoxCore/CubicSurfaceExtractor.h
	library/PolyVoxCore/include/PolyVoxCore/MarchingCubesSurfaceExtractor.h
2013-03-04 22:11:19 +01:00
5cab70b24c Fixed code to use proper zero initialisation. 2013-03-04 22:01:43 +01:00
fcdb175f1c Merge branch 'develop' into feature/cubiquity-version
Conflicts:
	library/PolyVoxCore/include/PolyVoxCore/CubicSurfaceExtractor.h
	library/PolyVoxCore/include/PolyVoxCore/CubicSurfaceExtractor.inl
2013-03-04 21:05:51 +01:00
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
23042c3fcb Moved warning suppression into the relevant file so that it's not global. 2013-03-04 16:00:43 +01:00
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
b4fcb3daf8 Added API documentation regarding compression. 2013-03-04 15:17:19 +01:00
74b4caba6b Added some API docs to compressor. 2013-03-01 17:06:51 +01:00
d12db9906f Updated note about why we #include the miniz.c file. 2013-03-01 16:33:31 +01:00
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
c28fa9a0ca It seems that GCC 4.3.5 (on the CDash machine) doesn't recognise ignoring the 'enum-compare' warning. This commit should switch of all warnings instead (just for this file). 2013-02-28 13:42:02 +01:00
7e50dcbd93 It seems push/pop of diagnostic pragmas is only supported on GCC >= 4.6. I've just disabled the warning for the whole file instead. 2013-02-27 14:25:10 +01:00
80025eaa46 Attempting to disable GCC compiler warnings in miniz.c (as I don't want to modify external code). 2013-02-26 10:49:01 +01:00
62370868c8 Reverted accidental changes to tests.
Updated comments in compression code.
2013-02-25 17:06:12 +01:00
c42270f165 Possible Linux fix? I didn't reproduce the error myself so I'm just being guided by the CDash messages. 2013-02-25 16:51:57 +01:00
e770baeb05 Added assert for buffer size. 2013-02-25 16:46:04 +01:00
f70498e806 Removed old code. 2013-02-25 16:34:21 +01:00
34671130fb Tidying up Miniz compression code. 2013-02-25 16:33:39 +01:00
81eab0ebfb Work on low-level version of compression. 2013-02-22 17:03:47 +01:00
eb8ace0c54 Replaced high level miniz interface with low-level version. 2013-02-21 16:56:57 +01:00
1a39577ec0 CubicSurfaceExtractor now uses int for some internal work instead of floats. 2013-02-21 16:44:44 +01:00
f517137991 Performance improvements brought across from develop. 2013-02-08 22:19:02 +01:00
328d40f712 Merge branch 'develop' into feature/cubiquity-version
Conflicts:
	library/PolyVoxCore/include/PolyVoxCore/CubicSurfaceExtractor.inl
	library/PolyVoxCore/include/PolyVoxCore/MarchingCubesSurfaceExtractor.inl
2013-02-08 21:46:33 +01:00
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
6bf9105e56 Merge branch 'develop' of https://bitbucket.org/volumesoffun/polyvox into develop 2013-02-08 15:44:35 +01:00
7327220b1c Performance enhancements identified through profiling. 2013-02-08 15:43:37 +01:00
66bdf0e5a9 Add Compressor and subclasses to the bindings
This relates to issue 20 and should fix the compilation error mentioned
there.
2013-02-08 14:27:11 +00:00
608777bb9b Performance improvements for CubicSurfaceExtractor 2013-02-08 15:14:15 +01:00