Commit Graph

227 Commits

Author SHA1 Message Date
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
5cab70b24c Fixed code to use proper zero initialisation. 2013-03-04 22:01:43 +01:00
62370868c8 Reverted accidental changes to tests.
Updated comments in compression code.
2013-02-25 17:06:12 +01:00
f70498e806 Removed old code. 2013-02-25 16:34:21 +01:00
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
c3801db4e2 Set tests to use MinizCompressor. 2013-02-07 16:20:05 +01:00
36968bdd79 Merge branch 'develop' into feature/large-volume-work 2013-02-07 16:11:03 +01:00
50c1c7c64b Removed setCompressionEnabled() from LargeVolume. 2013-02-07 15:55:10 +01:00
09c6e2bf26 More work making the compression more robust. 2013-02-01 16:10:10 +01:00
3d66db50e0 Fixes and comments for RLE compression. 2013-02-01 14:09:29 +01:00
46e38c4714 Work on compression. 2013-01-31 16:56:32 +01:00
a81ec68714 Work on compression interface. 2013-01-31 16:35:50 +01:00
6e93048c9f Add a test for C#
This test is not actually run yet but it serves as an example of how to use
the C# bindings.
2013-01-16 15:31:52 +00:00
c7937b176d Very bad (but functional!) initial implementation of LargeVolume compression with miniz. 2013-01-10 16:20:29 +01:00
a8383b47db Temporarily disabled multiple samplers as they break the LargeVolume tests. 2013-01-08 16:54:17 +01:00
a0cd1d09b3 Added a correct set of ADD_TEST macros. Oddly it seems that Visual Studio's 'RUN_TESTS' target doesn't really it care which ADD_TEST macros are used, it just runs all of them. Presumably Linux needs it though. 2013-01-03 13:23:40 +01:00
4b45bb297f More volume unit tests - now iterating backwards as well as forwards. 2013-01-02 17:05:35 +01:00
25fae419f3 Removed some old testing code. 2013-01-02 16:11:19 +01:00
7bbaa0d559 Better testing of volume samplers. 2013-01-02 16:09:30 +01:00
a4b6339689 Fixed typos. 2013-01-02 15:15:30 +01:00
97024ba9b2 More volume test configurations. 2013-01-02 14:48:30 +01:00
c05293844f Work on volume tests. 2013-01-02 14:13:14 +01:00
f5ea8878c2 Add a default CompilerCapabilities.h
This file assumes that the compiler doesn't support anything. If building
without CMake, it will be used and if you want to enable things, the file
can be edited.

When using CMake, a proper CompilerCapabilites.h will be generated and
CMake will set the include path order correctly in order to source the
correct file.
2012-12-26 12:54:52 +00:00
831689bd17 Fix tests
The names of some of the bound classes have changed and this fixes the
tests to match it.
2012-12-26 00:31:10 +00:00
74f25eac23 Merge branch 'develop' into feature/cmake-cxx11-detect
Conflicts:
	examples/Basic/CMakeLists.txt
	examples/OpenGL/CMakeLists.txt
	examples/Paging/CMakeLists.txt
	examples/SmoothLOD/CMakeLists.txt
	library/PolyVoxCore/include/PolyVoxCore/Impl/TypeDef.h
2012-12-24 20:08:31 +00:00
898aa24126 Removed code which is redundant after previous commit. 2012-12-19 11:46:44 +01:00
44dcb0ba89 Different method of controlling the war mode of the MarchingCubesSurfaceExtractor. 2012-12-19 11:32:45 +01:00
8b018be2dc Fix for LargeVolumeSampler. 2012-12-18 16:25:31 +01:00
2a12bcd6d6 Fixed behavior of SimpleVolumeSampler.inl 2012-12-18 14:34:36 +01:00
c0d4b2a36f Linux compile fix. 2012-12-14 16:50:06 +01:00
2bc8e8e201 Tidying up marching cubes wrap mode support. 2012-12-14 15:32:07 +01:00
ca45d49e0c More work on exposing wrap modes to marching cubes. 2012-12-14 15:25:21 +01:00
c06bfa9c09 Initial work on exposing the wrap modes to the marching cubes surface extractor. 2012-12-14 15:13:18 +01:00
c69417a72b Commented out failing volume tests - will have to come back to these. 2012-12-13 15:59:25 +01:00
2d7045ddd1 Compile fixes for Linux.
Removed use of qrand() until I can confirm results match between platforms.
2012-12-13 15:29:22 +01:00
ab6ec9380d Tweaking results so that the tests pass... I'll have to debug this properly on a faster computer. 2012-12-11 22:14:26 +00:00
d8da6a7b7f Refactoring the volume unit test code, trying to get some performance benchmarks. Unit tests are currently not passing. 2012-12-11 21:57:30 +00:00
dac0e5449f Refactoring volume unit test code. 2012-12-11 20:18:26 +00:00
8a376fa396 Improving (making tougher) the volume unit tests. 2012-12-10 23:25:17 +00:00
ec203c6954 Added QBENCHMARK macros to volume unit test. 2012-12-08 11:25:10 +01:00
eb0c7e7a9f More work on volume unit test. 2012-12-07 14:01:42 +01:00
e7e1f80e74 Work on volume unit test. 2012-12-07 13:54:00 +01:00
d0c9b7ba3d Added extra tests to move functions. 2012-12-07 13:38:39 +01:00
fea429a79a Compile fixes for GCC. 2012-12-07 10:57:26 +01:00
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
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
3f87fc780f Fixed bug with SimpleVolume and negative positions. 2012-12-05 23:49:39 +01:00
9a05f04f85 Merge branch 'develop' into feature/wrap-modes
Conflicts:
	library/PolyVoxCore/include/PolyVoxCore/RawVolumeSampler.inl
2012-12-03 21:30:51 +01:00
57b78e148b Extended volume unit test. This is mainly to test whether I can commit to the new Git repo on BitBucket. 2012-12-03 16:21:18 +01:00