David Williams
ab741583e4
Renamed extractXxxSurface() to extractXxxMesh()
2014-05-22 23:26:40 +02:00
David Williams
f2ba500c4c
Merge branch 'develop' into feature/vertex-refactor
...
Conflicts:
examples/Basic/main.cpp
examples/Paging/main.cpp
examples/SmoothLOD/main.cpp
library/PolyVoxCore/include/PolyVoxCore/CubicSurfaceExtractorWithNormals.h
tests/TestCubicSurfaceExtractor.cpp
tests/TestSurfaceExtractor.cpp
tests/TestVolumeSubclass.cpp
2014-05-12 23:04:19 +02:00
David Williams
573c36db87
Renamed vertex classes to the far more meaningful 'CubicVertex' and 'MarchingCubesVertex'. The old names didn't make much sense, even less so now they are templatized.
2014-05-11 15:17:59 +02:00
David Williams
b0a8ca8a64
This commit templatizes the vertex classes on voxel types. This was the main change which was made for Cubiquity and it's very messy at the moment. However, this will improve when we make more use of 'auto' to hide the template madness.
2014-05-07 23:47:18 +02:00
David Williams
5dfa7e2562
The CubicSurfaceExtractor now generates vertices of type PositionMaterialNormal rather than PositionMaterial. The normal property is just a dummy and is not filled in, though conceptually we could put something in there in the future (average normal of surrounding faces?)
...
The point of this change is to move towards having a single vertex class with known properties (including normal). This makes it simpler to write code which uses the vertices because we always know which properties are present. This will probably be useful when working with vertex buffer objects.
2014-05-05 20:53:47 +02:00
David Williams
e52e9e373e
Switched test to use unclassed function.
2014-03-07 16:25:24 +01:00
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
6e8030f4b5
Changes to hopefully fix Linux compile problems.
2013-06-13 15:55:15 +02:00
Daviw Williams
efb6d12fc8
Eliminated dome calls to getVoxelAt.
2013-06-12 15:22:21 +02:00
Daviw Williams
7276b872c4
More work replacing getVoxelAt with getVoxel.
2013-06-12 15:03:34 +02:00
unknown
fec1191a73
Removed use of template template parameters from CubicSurfaceExtractor.
2012-05-18 15:12:30 +02: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
53ae3de413
Replaced GCC/VS2010 hacks with code that should compile on both platforms.
2011-07-31 08:58:52 +01:00
David Williams
5e62d639fb
Compile fixes for g++.
2011-07-30 12:45:32 +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