45 Commits

Author SHA1 Message Date
Matt Williams
cc430ae129 Update Python bindings, tests and example to use Python 3 2013-04-17 20:48:15 +01:00
Daviw Williams
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
Matt Williams
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
David Williams
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
David Williams
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
David Williams
c37997bfe2 Updated new volumes test. 2012-12-02 14:02:50 +01:00
Matt Williams
3ed3ac6998 Start Python bindings for Raycast
This is only beginning of the bindings here. It's starting to get more
complicated due to the use of callbacks. To be able to define a callback
function in Python which is then called by a C++ algorithm requires quite a
bit of wrapping boilerplate.

The class PyCallback here will wrap a Python callable and call it with the
density value of the voxel. It's not very generic and at present it can't
pass the sampler itself since it's not available in the Python bindings.

Regardless, the new test added here (TestRaycast.py) works as expected and
hopefully we will be able to build up from here.
2012-11-25 18:07:12 +00:00
Matt Williams
3902e00a0f Add a CompilerCapabilities.h.in file which is filled in by CMake
It will #define a each of the basic features detected by CMake which can
then be used by other headers (like TypeDef.h) to set things up for
PolyVox.

It is this file which you will have to manually edit and rename if you want
to skip using CMake.
2012-11-23 15:41:26 +00:00
Matt Williams
2e71019d8f Don't fail if Qt isn't installed
If Qt isn't installed, set the reporting variables correctly but don't fail.
2012-10-25 20:10:37 +01:00
David Williams
4b63c34305 Brought the manual and API docs together under the same heading in Visual Studio. 2012-09-28 13:54:27 +02:00
Matt Williams
480c159327 Add copyright headers to all the CMake files 2012-08-24 13:20:41 +01:00
Matt Williams
b96309f4a4 Use the CMake folder tool to help IDEs groupt targets.
This is done as seen in http://athile.net/library/blog/?p=288

Hopefully this works in Visual Studio as KDevelop doesn't use this feature.
2012-08-12 04:29:51 +01:00
Matt Williams
1a3999335a Change CMake variable name to our standard scheme 2012-07-19 19:57:19 +01:00
Matt Williams
f11b4e17c1 Build only one of static or shared libraries
As discussed on the forums, to simplify the CMake code and avoid having to
manually specify dependencies this removes the hack to allow both static
and shared libraries to be built at the same time.

It introduces the new variable LIBRARY_TYPE which can be either STATIC or
DYNAMIC.

See: http://www.volumesoffun.com/phpBB3/viewtopic.php?p=3203#p3203
2012-07-19 17:33:34 +01:00
Matt Williams
4916b5952b Fix type in CMake variable.
It would be nice if CMake issued warnings in cases like this but it
seems that it is currently unable to.
2012-07-18 20:36:07 +01:00
Matt Williams
b9087ec6bf Fix a few BUILD_→ENABLE_ changes that I missed 2012-07-17 20:26:00 +01:00
David Williams
1aa1978de1 Removed now redundant cpp files.
Removed a test which we don't need any more.
2012-07-08 08:52:36 +02:00
Matt Williams
42e2ebf734 Add a Python test to the suite to test surface extraction 2012-06-21 22:25:20 +01:00
unknown
b3f3723a53 Added test for cubic surfce extractor. 2012-03-27 16:06:43 +02:00
unknown
d2a94ac6f4 Added test for raycast. 2012-02-23 17:08:00 +01:00
unknown
26ea1d8ad3 Added surface extractor tests templatised on voxel type. 2012-02-19 11:24:46 +01:00
unknown
ce11a7a0ae Renamed test funtion. 2012-01-24 16:12:04 +01:00
p265186
49b5fb3f67 Refactoring of basic voxel types. 2012-01-12 17:14:45 +01:00
David Williams
7bbdb1a29d Added equality/inequality tests for vector and region. 2011-09-24 11:02:01 +01:00
David Williams
c73b45b721 Fixed bug with RawVolume always starting coordinates at (0,0,0).
Removed Filters.h/.inl
Added Summed Area Table support to LowPassFilter.
Added test for low pass filter.
2011-08-13 08:57:45 +01:00
David Williams
d1649c9323 More work on base Volume class and sampler.
Added new test case for creating a volume subclass.
2011-07-30 10:12:28 +01:00
David Williams
1472a6a304 Added test for AStarPathfinder. 2011-07-02 00:57:41 +01:00
David Williams
ffa4fcaade Added test for AmbientOcclusionCalculator. 2011-06-11 18:04:04 +01:00
David Williams
ea309ab15b Renamed Volume to LargeVolume. 2011-04-28 21:21:59 +01:00
Matt Williams
fce8089264 Update ADD_DEPENDENCIES calls
Update for the static and dynamic options and add
some more calls for PolyVoxUtil and the tests.
2011-04-24 14:50:13 +02:00
Matt Williams
ac0fb2b310 Make dynamic or static libraries optional
The user can choose static or dynamic libraries using
BUILD_STATIC_LIBRARIES and BUILD_DYNAMIC_LIBRARIES. By default
Windows will only build static libraries and Linux will build both.
2011-04-21 21:40:51 +02:00
Matt Williams
4bdba629fb Add stub of test to compile the Material class. 2010-12-21 21:11:36 +00:00
David Williams
fdf21f7846 It seems that for the tests to build (at least on Windows) they need to link against QtCore as well as QtTests. 2010-08-21 09:43:42 +00:00
Matt Williams
dbce411553 Make the tests only link against QtTest (i.e. not QtGui) so that they can be run outside of X11. 2010-07-21 15:14:36 +00:00
Matt Williams
765739f450 Move the find_package(Qt4...) bit into the root CMakeLists.txt file since it is used by both the tests and library subdirectories. 2010-07-02 10:49:47 +00:00
Matt Williams
2da20ff2ef Add warning message if QtTest could not be found. 2010-07-01 12:58:19 +00:00
David Williams
5e687fbd58 Added unit test for Array class. 2010-03-28 00:11:41 +00:00
Matt Williams
6f70396c9a Cleaner way of requesting Qt modules 2010-03-05 15:15:42 +00:00
Matt Williams
9d03360436 Tell CTest the correct location of the test binaries on Windows. 2010-03-05 12:24:46 +00:00
Matt Williams
0db01213a7 Set Qt to be a required package 2010-03-02 16:08:33 +00:00
Matt Williams
e7522e23a8 Add some simple vector tests 2010-02-26 16:12:16 +00:00
Matt Williams
7597b56620 Improve test macro.
Add include guards to the test header.
2010-02-26 16:11:13 +00:00
Matt Williams
6a828ec244 Reorganise the test CMakeLists.txt file.
Add a CMake macro for easily adding new tests.
2010-02-26 15:13:10 +00:00
Matt Williams
fe3961c041 Use QTestLib to harness the tests. 2010-02-25 12:20:44 +00:00
Matt Williams
b3e6e54c1b Add an extremely simple test which checks the size of the volume doesn't
change. This will hopefully also be tracked by the dashboard.
2010-02-24 16:32:36 +00:00