Tidying up of headers and #includes.
This commit is contained in:
parent
7515186b47
commit
894455e35f
@ -24,8 +24,8 @@ freely, subject to the following restrictions:
|
|||||||
#ifndef __OpenGLExample_Shapes_H__
|
#ifndef __OpenGLExample_Shapes_H__
|
||||||
#define __OpenGLExample_Shapes_H__
|
#define __OpenGLExample_Shapes_H__
|
||||||
|
|
||||||
#include "PolyVoxCore/PolyVoxForwardDeclarations.h"
|
|
||||||
#include "PolyVoxCore/LargeVolume.h"
|
#include "PolyVoxCore/LargeVolume.h"
|
||||||
|
#include "PolyVoxCore/MaterialDensityPair.h"
|
||||||
|
|
||||||
void createSphereInVolume(PolyVox::LargeVolume<PolyVox::MaterialDensityPair44>& volData, float fRadius, uint8_t uValue);
|
void createSphereInVolume(PolyVox::LargeVolume<PolyVox::MaterialDensityPair44>& volData, float fRadius, uint8_t uValue);
|
||||||
void createCubeInVolume(PolyVox::LargeVolume<PolyVox::MaterialDensityPair44>& volData, PolyVox::Vector3DInt32 lowerCorner, PolyVox::Vector3DInt32 upperCorner, uint8_t uValue);
|
void createCubeInVolume(PolyVox::LargeVolume<PolyVox::MaterialDensityPair44>& volData, PolyVox::Vector3DInt32 lowerCorner, PolyVox::Vector3DInt32 upperCorner, uint8_t uValue);
|
||||||
|
@ -24,13 +24,13 @@ freely, subject to the following restrictions:
|
|||||||
#ifndef __PolyVox_AStarPathfinder_H__
|
#ifndef __PolyVox_AStarPathfinder_H__
|
||||||
#define __PolyVox_AStarPathfinder_H__
|
#define __PolyVox_AStarPathfinder_H__
|
||||||
|
|
||||||
#include "PolyVoxCore/Array.h"
|
|
||||||
#include "PolyVoxImpl/AStarPathfinderImpl.h"
|
#include "PolyVoxImpl/AStarPathfinderImpl.h"
|
||||||
#include "PolyVoxCore/PolyVoxForwardDeclarations.h"
|
|
||||||
#include "PolyVoxCore/LargeVolume.h"
|
|
||||||
|
|
||||||
#include "PolyVoxImpl/TypeDef.h"
|
#include "PolyVoxImpl/TypeDef.h"
|
||||||
|
|
||||||
|
#include "PolyVoxCore/Array.h"
|
||||||
|
|
||||||
|
#include <list>
|
||||||
|
|
||||||
namespace PolyVox
|
namespace PolyVox
|
||||||
{
|
{
|
||||||
const float sqrt_1 = 1.0f;
|
const float sqrt_1 = 1.0f;
|
||||||
|
@ -21,8 +21,6 @@ freely, subject to the following restrictions:
|
|||||||
distribution.
|
distribution.
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#include "PolyVoxCore/Material.h"
|
|
||||||
|
|
||||||
namespace PolyVox
|
namespace PolyVox
|
||||||
{
|
{
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -24,8 +24,14 @@ freely, subject to the following restrictions:
|
|||||||
#ifndef __AmbientOcclusionCalculator_H__
|
#ifndef __AmbientOcclusionCalculator_H__
|
||||||
#define __AmbientOcclusionCalculator_H__
|
#define __AmbientOcclusionCalculator_H__
|
||||||
|
|
||||||
#include "PolyVoxCore/PolyVoxForwardDeclarations.h"
|
#include "PolyVoxImpl/RandomUnitVectors.h"
|
||||||
#include "PolyVoxCore/LargeVolume.h"
|
#include "PolyVoxImpl/RandomVectors.h"
|
||||||
|
|
||||||
|
#include "PolyVoxCore/Array.h"
|
||||||
|
#include "PolyVoxCore/Region.h"
|
||||||
|
#include "PolyVoxCore/Raycast.h"
|
||||||
|
|
||||||
|
#include <algorithm>
|
||||||
|
|
||||||
namespace PolyVox
|
namespace PolyVox
|
||||||
{
|
{
|
||||||
|
@ -21,15 +21,6 @@ freely, subject to the following restrictions:
|
|||||||
distribution.
|
distribution.
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#include "PolyVoxCore/Array.h"
|
|
||||||
#include "PolyVoxCore/Raycast.h"
|
|
||||||
#include "PolyVoxCore/LargeVolume.h"
|
|
||||||
|
|
||||||
#include "PolyVoxImpl/RandomUnitVectors.h"
|
|
||||||
#include "PolyVoxImpl/RandomVectors.h"
|
|
||||||
|
|
||||||
#include <algorithm>
|
|
||||||
|
|
||||||
namespace PolyVox
|
namespace PolyVox
|
||||||
{
|
{
|
||||||
template< template<typename> class VolumeType, typename VoxelType>
|
template< template<typename> class VolumeType, typename VoxelType>
|
||||||
|
@ -24,10 +24,10 @@ freely, subject to the following restrictions:
|
|||||||
#ifndef __PolyVox_Array_H__
|
#ifndef __PolyVox_Array_H__
|
||||||
#define __PolyVox_Array_H__
|
#define __PolyVox_Array_H__
|
||||||
|
|
||||||
#include "PolyVoxCore/ArraySizes.h" //Not strictly required, but convienient
|
|
||||||
|
|
||||||
#include "PolyVoxImpl/SubArray.h"
|
#include "PolyVoxImpl/SubArray.h"
|
||||||
|
|
||||||
|
#include "PolyVoxCore/ArraySizes.h" //Not strictly required, but convienient
|
||||||
|
|
||||||
namespace PolyVox
|
namespace PolyVox
|
||||||
{
|
{
|
||||||
///Provides an efficient implementation of a multidimensional array.
|
///Provides an efficient implementation of a multidimensional array.
|
||||||
|
@ -24,8 +24,8 @@ freely, subject to the following restrictions:
|
|||||||
#ifndef __PolyVox_ConstVolumeProxy_H__
|
#ifndef __PolyVox_ConstVolumeProxy_H__
|
||||||
#define __PolyVox_ConstVolumeProxy_H__
|
#define __PolyVox_ConstVolumeProxy_H__
|
||||||
|
|
||||||
#include "PolyVoxCore/PolyVoxForwardDeclarations.h"
|
|
||||||
#include "PolyVoxCore/Region.h"
|
#include "PolyVoxCore/Region.h"
|
||||||
|
#include "PolyVoxCore/Vector.h"
|
||||||
|
|
||||||
namespace PolyVox
|
namespace PolyVox
|
||||||
{
|
{
|
||||||
|
@ -24,12 +24,11 @@ freely, subject to the following restrictions:
|
|||||||
#ifndef __PolyVox_CubicSurfaceExtractor_H__
|
#ifndef __PolyVox_CubicSurfaceExtractor_H__
|
||||||
#define __PolyVox_CubicSurfaceExtractor_H__
|
#define __PolyVox_CubicSurfaceExtractor_H__
|
||||||
|
|
||||||
#include "PolyVoxCore/Array.h"
|
|
||||||
#include "PolyVoxCore/PolyVoxForwardDeclarations.h"
|
|
||||||
#include "PolyVoxCore/LargeVolume.h"
|
|
||||||
|
|
||||||
#include "PolyVoxImpl/TypeDef.h"
|
#include "PolyVoxImpl/TypeDef.h"
|
||||||
|
|
||||||
|
#include "PolyVoxCore/Array.h"
|
||||||
|
#include "PolyVoxCore/SurfaceMesh.h"
|
||||||
|
|
||||||
namespace PolyVox
|
namespace PolyVox
|
||||||
{
|
{
|
||||||
template< template<typename> class VolumeType, typename VoxelType>
|
template< template<typename> class VolumeType, typename VoxelType>
|
||||||
|
@ -21,12 +21,6 @@ freely, subject to the following restrictions:
|
|||||||
distribution.
|
distribution.
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#include "PolyVoxCore/Array.h"
|
|
||||||
#include "PolyVoxCore/MaterialDensityPair.h"
|
|
||||||
#include "PolyVoxCore/SurfaceMesh.h"
|
|
||||||
#include "PolyVoxImpl/MarchingCubesTables.h"
|
|
||||||
#include "PolyVoxCore/VertexTypes.h"
|
|
||||||
|
|
||||||
namespace PolyVox
|
namespace PolyVox
|
||||||
{
|
{
|
||||||
template< template<typename> class VolumeType, typename VoxelType>
|
template< template<typename> class VolumeType, typename VoxelType>
|
||||||
|
@ -24,10 +24,10 @@ freely, subject to the following restrictions:
|
|||||||
#ifndef __PolyVox_CubicSurfaceExtractorWithNormals_H__
|
#ifndef __PolyVox_CubicSurfaceExtractorWithNormals_H__
|
||||||
#define __PolyVox_CubicSurfaceExtractorWithNormals_H__
|
#define __PolyVox_CubicSurfaceExtractorWithNormals_H__
|
||||||
|
|
||||||
#include "PolyVoxCore/PolyVoxForwardDeclarations.h"
|
#include "PolyVoxImpl/MarchingCubesTables.h"
|
||||||
#include "PolyVoxCore/LargeVolume.h"
|
|
||||||
|
|
||||||
#include "PolyVoxImpl/TypeDef.h"
|
#include "PolyVoxCore/Array.h"
|
||||||
|
#include "PolyVoxCore/SurfaceMesh.h"
|
||||||
|
|
||||||
namespace PolyVox
|
namespace PolyVox
|
||||||
{
|
{
|
||||||
|
@ -21,12 +21,6 @@ freely, subject to the following restrictions:
|
|||||||
distribution.
|
distribution.
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#include "PolyVoxCore/Array.h"
|
|
||||||
#include "PolyVoxCore/MaterialDensityPair.h"
|
|
||||||
#include "PolyVoxCore/SurfaceMesh.h"
|
|
||||||
#include "PolyVoxImpl/MarchingCubesTables.h"
|
|
||||||
#include "PolyVoxCore/VertexTypes.h"
|
|
||||||
|
|
||||||
namespace PolyVox
|
namespace PolyVox
|
||||||
{
|
{
|
||||||
template< template<typename> class VolumeType, typename VoxelType>
|
template< template<typename> class VolumeType, typename VoxelType>
|
||||||
|
@ -24,7 +24,6 @@ freely, subject to the following restrictions:
|
|||||||
#ifndef __PolyVox_Density_H__
|
#ifndef __PolyVox_Density_H__
|
||||||
#define __PolyVox_Density_H__
|
#define __PolyVox_Density_H__
|
||||||
|
|
||||||
#include "PolyVoxCore/PolyVoxForwardDeclarations.h"
|
|
||||||
#include "PolyVoxImpl/TypeDef.h"
|
#include "PolyVoxImpl/TypeDef.h"
|
||||||
|
|
||||||
namespace PolyVox
|
namespace PolyVox
|
||||||
|
@ -24,9 +24,10 @@ freely, subject to the following restrictions:
|
|||||||
#ifndef __PolyVox_GradientEstimators_H__
|
#ifndef __PolyVox_GradientEstimators_H__
|
||||||
#define __PolyVox_GradientEstimators_H__
|
#define __PolyVox_GradientEstimators_H__
|
||||||
|
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
#include "PolyVoxCore/Vector.h"
|
#include "PolyVoxCore/Vector.h"
|
||||||
|
#include "PolyVoxCore/VoxelFilters.h"
|
||||||
|
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
namespace PolyVox
|
namespace PolyVox
|
||||||
{
|
{
|
||||||
|
@ -21,10 +21,6 @@ freely, subject to the following restrictions:
|
|||||||
distribution.
|
distribution.
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#include "PolyVoxCore/VoxelFilters.h"
|
|
||||||
|
|
||||||
#include "PolyVoxCore/LargeVolume.h"
|
|
||||||
|
|
||||||
namespace PolyVox
|
namespace PolyVox
|
||||||
{
|
{
|
||||||
template< template<typename> class VolumeType, typename VoxelType>
|
template< template<typename> class VolumeType, typename VoxelType>
|
||||||
|
@ -24,6 +24,8 @@ freely, subject to the following restrictions:
|
|||||||
#ifndef __PolyVox_IteratorController_H__
|
#ifndef __PolyVox_IteratorController_H__
|
||||||
#define __PolyVox_IteratorController_H__
|
#define __PolyVox_IteratorController_H__
|
||||||
|
|
||||||
|
#include "PolyVoxCore/Region.h"
|
||||||
|
|
||||||
namespace PolyVox
|
namespace PolyVox
|
||||||
{
|
{
|
||||||
template <typename IteratorType>
|
template <typename IteratorType>
|
||||||
|
@ -25,14 +25,19 @@ freely, subject to the following restrictions:
|
|||||||
#define __PolyVox_LargeVolume_H__
|
#define __PolyVox_LargeVolume_H__
|
||||||
|
|
||||||
#include "PolyVoxImpl/Block.h"
|
#include "PolyVoxImpl/Block.h"
|
||||||
|
#include "PolyVoxCore/Log.h"
|
||||||
#include "PolyVoxCore/Region.h"
|
#include "PolyVoxCore/Region.h"
|
||||||
#include "PolyVoxCore/PolyVoxForwardDeclarations.h"
|
#include "PolyVoxCore/Vector.h"
|
||||||
#include "PolyVoxCore/Volume.h"
|
#include "PolyVoxCore/Volume.h"
|
||||||
|
|
||||||
#include <limits>
|
#include <limits>
|
||||||
|
#include <cassert>
|
||||||
|
#include <cstdlib> //For abort()
|
||||||
|
#include <cstring> //For memcpy
|
||||||
|
#include <list>
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <set>
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <stdexcept> //For invalid_argument
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
namespace PolyVox
|
namespace PolyVox
|
||||||
@ -141,6 +146,9 @@ namespace PolyVox
|
|||||||
/// This is true even if you are only reading data from the volume, as concurrently reading from different threads can invalidate the contents
|
/// This is true even if you are only reading data from the volume, as concurrently reading from different threads can invalidate the contents
|
||||||
/// of the block cache (amoung other problems).
|
/// of the block cache (amoung other problems).
|
||||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
template <typename VoxelType> class ConstVolumeProxy;
|
||||||
|
|
||||||
template <typename VoxelType>
|
template <typename VoxelType>
|
||||||
class LargeVolume : public Volume<VoxelType>
|
class LargeVolume : public Volume<VoxelType>
|
||||||
{
|
{
|
||||||
|
@ -21,18 +21,8 @@ freely, subject to the following restrictions:
|
|||||||
distribution.
|
distribution.
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
|
//Included here rather than in the .h because it refers to LargeVolume (avoids forward declaration)
|
||||||
#include "PolyVoxCore/ConstVolumeProxy.h"
|
#include "PolyVoxCore/ConstVolumeProxy.h"
|
||||||
#include "PolyVoxImpl/Block.h"
|
|
||||||
#include "PolyVoxCore/Log.h"
|
|
||||||
#include "PolyVoxCore/Region.h"
|
|
||||||
#include "PolyVoxCore/Vector.h"
|
|
||||||
|
|
||||||
#include <limits>
|
|
||||||
#include <cassert>
|
|
||||||
#include <cstdlib> //For abort()
|
|
||||||
#include <cstring> //For memcpy
|
|
||||||
#include <list>
|
|
||||||
#include <stdexcept> //For invalid_argument
|
|
||||||
|
|
||||||
namespace PolyVox
|
namespace PolyVox
|
||||||
{
|
{
|
||||||
|
@ -21,13 +21,6 @@ freely, subject to the following restrictions:
|
|||||||
distribution.
|
distribution.
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#include "PolyVoxImpl/Block.h"
|
|
||||||
#include "PolyVoxCore/LargeVolume.h"
|
|
||||||
#include "PolyVoxCore/Vector.h"
|
|
||||||
#include "PolyVoxCore/Region.h"
|
|
||||||
|
|
||||||
#include <limits>
|
|
||||||
|
|
||||||
#define BORDER_LOW(x) ((( x >> this->mVolume->m_uBlockSideLengthPower) << this->mVolume->m_uBlockSideLengthPower) != x)
|
#define BORDER_LOW(x) ((( x >> this->mVolume->m_uBlockSideLengthPower) << this->mVolume->m_uBlockSideLengthPower) != x)
|
||||||
#define BORDER_HIGH(x) ((( (x+1) >> this->mVolume->m_uBlockSideLengthPower) << this->mVolume->m_uBlockSideLengthPower) != (x+1))
|
#define BORDER_HIGH(x) ((( (x+1) >> this->mVolume->m_uBlockSideLengthPower) << this->mVolume->m_uBlockSideLengthPower) != (x+1))
|
||||||
//#define BORDER_LOW(x) (( x % mVolume->m_uBlockSideLength) != 0)
|
//#define BORDER_LOW(x) (( x % mVolume->m_uBlockSideLength) != 0)
|
||||||
|
@ -24,7 +24,8 @@ freely, subject to the following restrictions:
|
|||||||
#ifndef __PolyVox_LowPassFilter_H__
|
#ifndef __PolyVox_LowPassFilter_H__
|
||||||
#define __PolyVox_LowPassFilter_H__
|
#define __PolyVox_LowPassFilter_H__
|
||||||
|
|
||||||
#include "PolyVoxCore/PolyVoxForwardDeclarations.h"
|
#include "PolyVoxCore/IteratorController.h"
|
||||||
|
#include "PolyVoxCore/RawVolume.h" //Is this desirable?
|
||||||
#include "PolyVoxCore/Region.h"
|
#include "PolyVoxCore/Region.h"
|
||||||
|
|
||||||
namespace PolyVox
|
namespace PolyVox
|
||||||
|
@ -21,9 +21,6 @@ freely, subject to the following restrictions:
|
|||||||
distribution.
|
distribution.
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#include "PolyVoxCore/IteratorController.h"
|
|
||||||
#include "PolyVoxCore/RawVolume.h"
|
|
||||||
|
|
||||||
namespace PolyVox
|
namespace PolyVox
|
||||||
{
|
{
|
||||||
template< template<typename> class SrcVolumeType, template<typename> class DestVolumeType, typename VoxelType>
|
template< template<typename> class SrcVolumeType, template<typename> class DestVolumeType, typename VoxelType>
|
||||||
|
@ -24,7 +24,6 @@ freely, subject to the following restrictions:
|
|||||||
#ifndef __PolyVox_Material_H__
|
#ifndef __PolyVox_Material_H__
|
||||||
#define __PolyVox_Material_H__
|
#define __PolyVox_Material_H__
|
||||||
|
|
||||||
#include "PolyVoxCore/PolyVoxForwardDeclarations.h"
|
|
||||||
#include "PolyVoxImpl/TypeDef.h"
|
#include "PolyVoxImpl/TypeDef.h"
|
||||||
|
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
@ -24,7 +24,6 @@ freely, subject to the following restrictions:
|
|||||||
#ifndef __PolyVox_MaterialDensityPair_H__
|
#ifndef __PolyVox_MaterialDensityPair_H__
|
||||||
#define __PolyVox_MaterialDensityPair_H__
|
#define __PolyVox_MaterialDensityPair_H__
|
||||||
|
|
||||||
#include "PolyVoxCore/PolyVoxForwardDeclarations.h"
|
|
||||||
#include "PolyVoxImpl/TypeDef.h"
|
#include "PolyVoxImpl/TypeDef.h"
|
||||||
|
|
||||||
namespace PolyVox
|
namespace PolyVox
|
||||||
|
@ -24,7 +24,9 @@ freely, subject to the following restrictions:
|
|||||||
#ifndef __PolyVox_MeshDecimator_H__
|
#ifndef __PolyVox_MeshDecimator_H__
|
||||||
#define __PolyVox_MeshDecimator_H__
|
#define __PolyVox_MeshDecimator_H__
|
||||||
|
|
||||||
|
#include "PolyVoxCore/SurfaceMesh.h"
|
||||||
#include "PolyVoxCore/Vector.h"
|
#include "PolyVoxCore/Vector.h"
|
||||||
|
#include "PolyVoxCore/VertexTypes.h"
|
||||||
|
|
||||||
#include <bitset>
|
#include <bitset>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
@ -21,8 +21,6 @@ freely, subject to the following restrictions:
|
|||||||
distribution.
|
distribution.
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#include "PolyVoxCore/SurfaceMesh.h"
|
|
||||||
|
|
||||||
namespace PolyVox
|
namespace PolyVox
|
||||||
{
|
{
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -60,18 +60,10 @@ namespace PolyVox
|
|||||||
|
|
||||||
template <typename VoxelType> class Block;
|
template <typename VoxelType> class Block;
|
||||||
|
|
||||||
template <typename VoxelType> class ConstVolumeProxy;
|
|
||||||
|
|
||||||
//---------- LargeVolume ----------
|
//---------- LargeVolume ----------
|
||||||
template <typename VoxelType> class LargeVolume;
|
template <typename VoxelType> class LargeVolume;
|
||||||
//---------------------------------
|
//---------------------------------
|
||||||
|
|
||||||
//---------- Mesh ----------
|
|
||||||
class Mesh;
|
|
||||||
class MeshEdge;
|
|
||||||
class MeshFace;
|
|
||||||
class MeshVertex;
|
|
||||||
//---------------------------------
|
|
||||||
|
|
||||||
template <typename Type> class Density;
|
template <typename Type> class Density;
|
||||||
typedef Density<uint8_t> Density8;
|
typedef Density<uint8_t> Density8;
|
||||||
|
@ -24,12 +24,16 @@ freely, subject to the following restrictions:
|
|||||||
#ifndef __PolyVox_RawVolume_H__
|
#ifndef __PolyVox_RawVolume_H__
|
||||||
#define __PolyVox_RawVolume_H__
|
#define __PolyVox_RawVolume_H__
|
||||||
|
|
||||||
|
#include "PolyVoxCore/Log.h"
|
||||||
#include "PolyVoxCore/Region.h"
|
#include "PolyVoxCore/Region.h"
|
||||||
#include "PolyVoxCore/PolyVoxForwardDeclarations.h"
|
#include "PolyVoxCore/Vector.h"
|
||||||
#include "PolyVoxCore/Volume.h"
|
#include "PolyVoxCore/Volume.h"
|
||||||
|
|
||||||
|
#include <cassert>
|
||||||
|
#include <cstdlib> //For abort()
|
||||||
#include <limits>
|
#include <limits>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <stdexcept> //For invalid_argument
|
||||||
|
|
||||||
namespace PolyVox
|
namespace PolyVox
|
||||||
{
|
{
|
||||||
|
@ -21,17 +21,6 @@ freely, subject to the following restrictions:
|
|||||||
distribution.
|
distribution.
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#include "PolyVoxCore/ConstVolumeProxy.h"
|
|
||||||
#include "PolyVoxImpl/Block.h"
|
|
||||||
#include "PolyVoxCore/Log.h"
|
|
||||||
#include "PolyVoxCore/Region.h"
|
|
||||||
#include "PolyVoxCore/Vector.h"
|
|
||||||
|
|
||||||
#include <limits>
|
|
||||||
#include <cassert>
|
|
||||||
#include <cstdlib> //For abort()
|
|
||||||
#include <stdexcept> //For invalid_argument
|
|
||||||
|
|
||||||
namespace PolyVox
|
namespace PolyVox
|
||||||
{
|
{
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -21,13 +21,6 @@ freely, subject to the following restrictions:
|
|||||||
distribution.
|
distribution.
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#include "PolyVoxImpl/Block.h"
|
|
||||||
#include "PolyVoxCore/RawVolume.h"
|
|
||||||
#include "PolyVoxCore/Vector.h"
|
|
||||||
#include "PolyVoxCore/Region.h"
|
|
||||||
|
|
||||||
#include <limits>
|
|
||||||
|
|
||||||
#define BORDER_LOWX(val) (val > this->mVolume->getEnclosingRegion().getLowerCorner().getX())
|
#define BORDER_LOWX(val) (val > this->mVolume->getEnclosingRegion().getLowerCorner().getX())
|
||||||
#define BORDER_HIGHX(val) (val < this->mVolume->getEnclosingRegion().getUpperCorner().getX())
|
#define BORDER_HIGHX(val) (val < this->mVolume->getEnclosingRegion().getUpperCorner().getX())
|
||||||
#define BORDER_LOWY(val) (val > this->mVolume->getEnclosingRegion().getLowerCorner().getY())
|
#define BORDER_LOWY(val) (val > this->mVolume->getEnclosingRegion().getLowerCorner().getY())
|
||||||
|
@ -24,6 +24,8 @@ freely, subject to the following restrictions:
|
|||||||
#ifndef __PolyVox_Raycast_H__
|
#ifndef __PolyVox_Raycast_H__
|
||||||
#define __PolyVox_Raycast_H__
|
#define __PolyVox_Raycast_H__
|
||||||
|
|
||||||
|
#include "PolyVoxCore/Vector.h"
|
||||||
|
|
||||||
namespace PolyVox
|
namespace PolyVox
|
||||||
{
|
{
|
||||||
/// Stores the result of a raycast operation.
|
/// Stores the result of a raycast operation.
|
||||||
|
@ -20,6 +20,7 @@ freely, subject to the following restrictions:
|
|||||||
3. This notice may not be removed or altered from any source
|
3. This notice may not be removed or altered from any source
|
||||||
distribution.
|
distribution.
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
namespace PolyVox
|
namespace PolyVox
|
||||||
{
|
{
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -24,6 +24,8 @@ freely, subject to the following restrictions:
|
|||||||
#ifndef __PolyVox_RaycastWithCallback_H__
|
#ifndef __PolyVox_RaycastWithCallback_H__
|
||||||
#define __PolyVox_RaycastWithCallback_H__
|
#define __PolyVox_RaycastWithCallback_H__
|
||||||
|
|
||||||
|
#include "PolyVoxCore/Vector.h"
|
||||||
|
|
||||||
namespace PolyVox
|
namespace PolyVox
|
||||||
{
|
{
|
||||||
template< template<typename> class VolumeType, typename VoxelType>
|
template< template<typename> class VolumeType, typename VoxelType>
|
||||||
|
@ -20,6 +20,7 @@ freely, subject to the following restrictions:
|
|||||||
3. This notice may not be removed or altered from any source
|
3. This notice may not be removed or altered from any source
|
||||||
distribution.
|
distribution.
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
namespace PolyVox
|
namespace PolyVox
|
||||||
{
|
{
|
||||||
template< template<typename> class VolumeType, typename VoxelType>
|
template< template<typename> class VolumeType, typename VoxelType>
|
||||||
|
@ -25,6 +25,7 @@ freely, subject to the following restrictions:
|
|||||||
#define __PolyVox_Region_H__
|
#define __PolyVox_Region_H__
|
||||||
|
|
||||||
#include "PolyVoxImpl/TypeDef.h"
|
#include "PolyVoxImpl/TypeDef.h"
|
||||||
|
|
||||||
#include "PolyVoxCore/Vector.h"
|
#include "PolyVoxCore/Vector.h"
|
||||||
|
|
||||||
namespace PolyVox
|
namespace PolyVox
|
||||||
|
@ -24,12 +24,19 @@ freely, subject to the following restrictions:
|
|||||||
#ifndef __PolyVox_SimpleVolume_H__
|
#ifndef __PolyVox_SimpleVolume_H__
|
||||||
#define __PolyVox_SimpleVolume_H__
|
#define __PolyVox_SimpleVolume_H__
|
||||||
|
|
||||||
|
#include "PolyVoxImpl/Utility.h"
|
||||||
|
|
||||||
|
#include "PolyVoxCore/Log.h"
|
||||||
#include "PolyVoxCore/Region.h"
|
#include "PolyVoxCore/Region.h"
|
||||||
#include "PolyVoxCore/PolyVoxForwardDeclarations.h"
|
#include "PolyVoxCore/Vector.h"
|
||||||
#include "PolyVoxCore/Volume.h"
|
#include "PolyVoxCore/Volume.h"
|
||||||
|
|
||||||
|
#include <cassert>
|
||||||
|
#include <cstdlib> //For abort()
|
||||||
|
#include <cstring> //For memcpy
|
||||||
#include <limits>
|
#include <limits>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <stdexcept> //For invalid_argument
|
||||||
|
|
||||||
namespace PolyVox
|
namespace PolyVox
|
||||||
{
|
{
|
||||||
|
@ -21,17 +21,6 @@ freely, subject to the following restrictions:
|
|||||||
distribution.
|
distribution.
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#include "PolyVoxCore/ConstVolumeProxy.h"
|
|
||||||
#include "PolyVoxImpl/Block.h"
|
|
||||||
#include "PolyVoxCore/Log.h"
|
|
||||||
#include "PolyVoxCore/Region.h"
|
|
||||||
#include "PolyVoxCore/Vector.h"
|
|
||||||
|
|
||||||
#include <limits>
|
|
||||||
#include <cassert>
|
|
||||||
#include <cstdlib> //For abort()
|
|
||||||
#include <stdexcept> //For invalid_argument
|
|
||||||
|
|
||||||
namespace PolyVox
|
namespace PolyVox
|
||||||
{
|
{
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -21,14 +21,6 @@ freely, subject to the following restrictions:
|
|||||||
distribution.
|
distribution.
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#include "PolyVoxImpl/Utility.h"
|
|
||||||
#include "Vector.h"
|
|
||||||
|
|
||||||
#include <cassert>
|
|
||||||
#include <cstring> //For memcpy
|
|
||||||
#include <limits>
|
|
||||||
#include <stdexcept> //for std::invalid_argument
|
|
||||||
|
|
||||||
namespace PolyVox
|
namespace PolyVox
|
||||||
{
|
{
|
||||||
template <typename VoxelType>
|
template <typename VoxelType>
|
||||||
|
@ -21,13 +21,6 @@ freely, subject to the following restrictions:
|
|||||||
distribution.
|
distribution.
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#include "PolyVoxImpl/Block.h"
|
|
||||||
#include "PolyVoxCore/SimpleVolume.h"
|
|
||||||
#include "PolyVoxCore/Vector.h"
|
|
||||||
#include "PolyVoxCore/Region.h"
|
|
||||||
|
|
||||||
#include <limits>
|
|
||||||
|
|
||||||
#define BORDER_LOW(x) ((( x >> this->mVolume->m_uBlockSideLengthPower) << this->mVolume->m_uBlockSideLengthPower) != x)
|
#define BORDER_LOW(x) ((( x >> this->mVolume->m_uBlockSideLengthPower) << this->mVolume->m_uBlockSideLengthPower) != x)
|
||||||
#define BORDER_HIGH(x) ((( (x+1) >> this->mVolume->m_uBlockSideLengthPower) << this->mVolume->m_uBlockSideLengthPower) != (x+1))
|
#define BORDER_HIGH(x) ((( (x+1) >> this->mVolume->m_uBlockSideLengthPower) << this->mVolume->m_uBlockSideLengthPower) != (x+1))
|
||||||
//#define BORDER_LOW(x) (( x % this->mVolume->m_uBlockSideLength) != 0)
|
//#define BORDER_LOW(x) (( x % this->mVolume->m_uBlockSideLength) != 0)
|
||||||
|
@ -24,11 +24,12 @@ freely, subject to the following restrictions:
|
|||||||
#ifndef __PolyVox_SurfaceExtractor_H__
|
#ifndef __PolyVox_SurfaceExtractor_H__
|
||||||
#define __PolyVox_SurfaceExtractor_H__
|
#define __PolyVox_SurfaceExtractor_H__
|
||||||
|
|
||||||
#include "PolyVoxCore/PolyVoxForwardDeclarations.h"
|
#include "PolyVoxImpl/MarchingCubesTables.h"
|
||||||
#include "PolyVoxCore/LargeVolume.h"
|
|
||||||
|
|
||||||
#include "PolyVoxImpl/TypeDef.h"
|
#include "PolyVoxImpl/TypeDef.h"
|
||||||
|
|
||||||
|
#include "PolyVoxCore/Array.h"
|
||||||
|
#include "PolyVoxCore/SurfaceMesh.h"
|
||||||
|
|
||||||
namespace PolyVox
|
namespace PolyVox
|
||||||
{
|
{
|
||||||
template< template<typename> class VolumeType, typename VoxelType>
|
template< template<typename> class VolumeType, typename VoxelType>
|
||||||
|
@ -21,12 +21,6 @@ freely, subject to the following restrictions:
|
|||||||
distribution.
|
distribution.
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#include "PolyVoxCore/Array.h"
|
|
||||||
#include "PolyVoxCore/MaterialDensityPair.h"
|
|
||||||
#include "PolyVoxCore/SurfaceMesh.h"
|
|
||||||
#include "PolyVoxImpl/MarchingCubesTables.h"
|
|
||||||
#include "PolyVoxCore/VertexTypes.h"
|
|
||||||
|
|
||||||
namespace PolyVox
|
namespace PolyVox
|
||||||
{
|
{
|
||||||
template< template<typename> class VolumeType, typename VoxelType>
|
template< template<typename> class VolumeType, typename VoxelType>
|
||||||
|
@ -24,15 +24,18 @@ freely, subject to the following restrictions:
|
|||||||
#ifndef __PolyVox_SurfaceMesh_H__
|
#ifndef __PolyVox_SurfaceMesh_H__
|
||||||
#define __PolyVox_SurfaceMesh_H__
|
#define __PolyVox_SurfaceMesh_H__
|
||||||
|
|
||||||
#include <vector>
|
|
||||||
#include <set>
|
|
||||||
#include <memory>
|
|
||||||
|
|
||||||
#include "PolyVoxCore/PolyVoxForwardDeclarations.h"
|
|
||||||
#include "PolyVoxCore/Region.h"
|
|
||||||
#include "PolyVoxCore/VertexTypes.h"
|
|
||||||
#include "PolyVoxImpl/TypeDef.h"
|
#include "PolyVoxImpl/TypeDef.h"
|
||||||
|
|
||||||
|
#include "PolyVoxCore/Region.h"
|
||||||
|
#include "PolyVoxCore/VertexTypes.h" //Should probably do away with this on in the future...
|
||||||
|
|
||||||
|
#include <algorithm>
|
||||||
|
#include <cstdlib>
|
||||||
|
#include <list>
|
||||||
|
#include <memory>
|
||||||
|
#include <set>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
namespace PolyVox
|
namespace PolyVox
|
||||||
{
|
{
|
||||||
class LodRecord
|
class LodRecord
|
||||||
|
@ -21,12 +21,6 @@ freely, subject to the following restrictions:
|
|||||||
distribution.
|
distribution.
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#include <cstdlib>
|
|
||||||
#include <list>
|
|
||||||
#include <algorithm>
|
|
||||||
|
|
||||||
using namespace std;
|
|
||||||
|
|
||||||
namespace PolyVox
|
namespace PolyVox
|
||||||
{
|
{
|
||||||
template <typename VertexType>
|
template <typename VertexType>
|
||||||
@ -366,7 +360,7 @@ namespace PolyVox
|
|||||||
template <typename VertexType>
|
template <typename VertexType>
|
||||||
void SurfaceMesh<VertexType>::removeUnusedVertices(void)
|
void SurfaceMesh<VertexType>::removeUnusedVertices(void)
|
||||||
{
|
{
|
||||||
vector<bool> isVertexUsed(m_vecVertices.size());
|
std::vector<bool> isVertexUsed(m_vecVertices.size());
|
||||||
fill(isVertexUsed.begin(), isVertexUsed.end(), false);
|
fill(isVertexUsed.begin(), isVertexUsed.end(), false);
|
||||||
|
|
||||||
for(uint32_t triCt = 0; triCt < m_vecTriangleIndices.size(); triCt++)
|
for(uint32_t triCt = 0; triCt < m_vecTriangleIndices.size(); triCt++)
|
||||||
@ -376,7 +370,7 @@ namespace PolyVox
|
|||||||
}
|
}
|
||||||
|
|
||||||
int noOfUsedVertices = 0;
|
int noOfUsedVertices = 0;
|
||||||
vector<uint32_t> newPos(m_vecVertices.size());
|
std::vector<uint32_t> newPos(m_vecVertices.size());
|
||||||
for(uint32_t vertCt = 0; vertCt < m_vecVertices.size(); vertCt++)
|
for(uint32_t vertCt = 0; vertCt < m_vecVertices.size(); vertCt++)
|
||||||
{
|
{
|
||||||
if(isVertexUsed[vertCt])
|
if(isVertexUsed[vertCt])
|
||||||
|
@ -24,8 +24,11 @@ freely, subject to the following restrictions:
|
|||||||
#ifndef __PolyVox_Vector_H__
|
#ifndef __PolyVox_Vector_H__
|
||||||
#define __PolyVox_Vector_H__
|
#define __PolyVox_Vector_H__
|
||||||
|
|
||||||
#include "PolyVoxCore/PolyVoxForwardDeclarations.h"
|
#include "PolyVoxImpl/TypeDef.h"
|
||||||
|
|
||||||
|
#include <cassert>
|
||||||
|
#include <cmath>
|
||||||
|
#include <cstring>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
namespace PolyVox
|
namespace PolyVox
|
||||||
|
@ -21,11 +21,6 @@ freely, subject to the following restrictions:
|
|||||||
distribution.
|
distribution.
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#include <cassert>
|
|
||||||
#include <cmath>
|
|
||||||
#include <string>
|
|
||||||
#include <cstring>
|
|
||||||
|
|
||||||
namespace PolyVox
|
namespace PolyVox
|
||||||
{
|
{
|
||||||
//-------------------------- Constructors, etc ---------------------------------
|
//-------------------------- Constructors, etc ---------------------------------
|
||||||
|
@ -25,6 +25,7 @@ freely, subject to the following restrictions:
|
|||||||
#define __PolyVox_SurfaceVertex_H__
|
#define __PolyVox_SurfaceVertex_H__
|
||||||
|
|
||||||
#include "PolyVoxImpl/TypeDef.h"
|
#include "PolyVoxImpl/TypeDef.h"
|
||||||
|
|
||||||
#include "PolyVoxCore/Vector.h"
|
#include "PolyVoxCore/Vector.h"
|
||||||
|
|
||||||
#include <bitset>
|
#include <bitset>
|
||||||
|
@ -24,11 +24,12 @@ freely, subject to the following restrictions:
|
|||||||
#ifndef __PolyVox_Volume_H__
|
#ifndef __PolyVox_Volume_H__
|
||||||
#define __PolyVox_Volume_H__
|
#define __PolyVox_Volume_H__
|
||||||
|
|
||||||
|
#include "PolyVoxCore/Log.h"
|
||||||
#include "PolyVoxCore/Region.h"
|
#include "PolyVoxCore/Region.h"
|
||||||
#include "PolyVoxCore/PolyVoxForwardDeclarations.h"
|
#include "PolyVoxCore/Vector.h"
|
||||||
|
|
||||||
|
#include <cassert>
|
||||||
#include <limits>
|
#include <limits>
|
||||||
#include <memory>
|
|
||||||
|
|
||||||
namespace PolyVox
|
namespace PolyVox
|
||||||
{
|
{
|
||||||
|
@ -21,12 +21,6 @@ freely, subject to the following restrictions:
|
|||||||
distribution.
|
distribution.
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#include "PolyVoxCore/Log.h"
|
|
||||||
#include "PolyVoxCore/Region.h"
|
|
||||||
#include "PolyVoxCore/Vector.h"
|
|
||||||
|
|
||||||
#include <cassert>
|
|
||||||
|
|
||||||
namespace PolyVox
|
namespace PolyVox
|
||||||
{
|
{
|
||||||
template <typename VoxelType>
|
template <typename VoxelType>
|
||||||
|
@ -24,8 +24,6 @@ freely, subject to the following restrictions:
|
|||||||
#ifndef __PolyVox_VolumeResampler_H__
|
#ifndef __PolyVox_VolumeResampler_H__
|
||||||
#define __PolyVox_VolumeResampler_H__
|
#define __PolyVox_VolumeResampler_H__
|
||||||
|
|
||||||
#include "PolyVoxCore/PolyVoxForwardDeclarations.h"
|
|
||||||
|
|
||||||
namespace PolyVox
|
namespace PolyVox
|
||||||
{
|
{
|
||||||
template< template<typename> class SrcVolumeType, template<typename> class DestVolumeType, typename VoxelType>
|
template< template<typename> class SrcVolumeType, template<typename> class DestVolumeType, typename VoxelType>
|
||||||
@ -38,7 +36,6 @@ namespace PolyVox
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
void resampleSameSize();
|
void resampleSameSize();
|
||||||
void resampleHalfSize();
|
|
||||||
void resampleArbitrary();
|
void resampleArbitrary();
|
||||||
|
|
||||||
//Source data
|
//Source data
|
||||||
|
@ -21,12 +21,6 @@ freely, subject to the following restrictions:
|
|||||||
distribution.
|
distribution.
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#include "PolyVoxImpl/Block.h"
|
|
||||||
#include "PolyVoxCore/Volume.h"
|
|
||||||
#include "PolyVoxCore/Vector.h"
|
|
||||||
#include "PolyVoxCore/Region.h"
|
|
||||||
|
|
||||||
#include <limits>
|
|
||||||
namespace PolyVox
|
namespace PolyVox
|
||||||
{
|
{
|
||||||
template <typename VoxelType>
|
template <typename VoxelType>
|
||||||
|
@ -24,11 +24,8 @@ freely, subject to the following restrictions:
|
|||||||
#ifndef __PolyVox_VoxelFilters_H__
|
#ifndef __PolyVox_VoxelFilters_H__
|
||||||
#define __PolyVox_VoxelFilters_H__
|
#define __PolyVox_VoxelFilters_H__
|
||||||
|
|
||||||
#include "PolyVoxCore/PolyVoxForwardDeclarations.h"
|
|
||||||
#include "PolyVoxImpl/TypeDef.h"
|
#include "PolyVoxImpl/TypeDef.h"
|
||||||
|
|
||||||
#include "PolyVoxCore/LargeVolume.h"
|
|
||||||
|
|
||||||
namespace PolyVox
|
namespace PolyVox
|
||||||
{
|
{
|
||||||
template< template<typename> class VolumeType>
|
template< template<typename> class VolumeType>
|
||||||
|
@ -26,6 +26,7 @@ freely, subject to the following restrictions:
|
|||||||
|
|
||||||
#include "PolyVoxCore/Vector.h"
|
#include "PolyVoxCore/Vector.h"
|
||||||
|
|
||||||
|
#include <algorithm>
|
||||||
#include <limits> //For numeric_limits
|
#include <limits> //For numeric_limits
|
||||||
#include <set>
|
#include <set>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
@ -24,7 +24,9 @@ freely, subject to the following restrictions:
|
|||||||
#ifndef __PolyVox_Block_H__
|
#ifndef __PolyVox_Block_H__
|
||||||
#define __PolyVox_Block_H__
|
#define __PolyVox_Block_H__
|
||||||
|
|
||||||
#include "PolyVoxCore/PolyVoxForwardDeclarations.h"
|
#include "PolyVoxImpl/TypeDef.h"
|
||||||
|
#include "PolyVoxCore/Vector.h"
|
||||||
|
|
||||||
#include <limits>
|
#include <limits>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
@ -44,8 +46,6 @@ namespace PolyVox
|
|||||||
static uint32_t maxRunlength(void) {return (std::numeric_limits<LengthType>::max)();}
|
static uint32_t maxRunlength(void) {return (std::numeric_limits<LengthType>::max)();}
|
||||||
};
|
};
|
||||||
|
|
||||||
//Make Sampler a friend
|
|
||||||
friend class LargeVolume<VoxelType>::Sampler;
|
|
||||||
public:
|
public:
|
||||||
Block(uint16_t uSideLength = 0);
|
Block(uint16_t uSideLength = 0);
|
||||||
|
|
||||||
|
@ -23,7 +23,6 @@ freely, subject to the following restrictions:
|
|||||||
|
|
||||||
#include "PolyVoxImpl/Utility.h"
|
#include "PolyVoxImpl/Utility.h"
|
||||||
#include "PolyVoxCore/Vector.h"
|
#include "PolyVoxCore/Vector.h"
|
||||||
#include "PolyVoxCore/LargeVolume.h"
|
|
||||||
|
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include <cstring> //For memcpy
|
#include <cstring> //For memcpy
|
||||||
|
@ -24,6 +24,8 @@ freely, subject to the following restrictions:
|
|||||||
#ifndef __PolyVox_RandomUnitVectors_H__
|
#ifndef __PolyVox_RandomUnitVectors_H__
|
||||||
#define __PolyVox_RandomUnitVectors_H__
|
#define __PolyVox_RandomUnitVectors_H__
|
||||||
|
|
||||||
|
#include "PolyVoxImpl/TypeDef.h"
|
||||||
|
|
||||||
#include "PolyVoxCore/Vector.h"
|
#include "PolyVoxCore/Vector.h"
|
||||||
|
|
||||||
namespace PolyVox
|
namespace PolyVox
|
||||||
|
@ -24,6 +24,8 @@ freely, subject to the following restrictions:
|
|||||||
#ifndef __PolyVox_RandomVectors_H__
|
#ifndef __PolyVox_RandomVectors_H__
|
||||||
#define __PolyVox_RandomVectors_H__
|
#define __PolyVox_RandomVectors_H__
|
||||||
|
|
||||||
|
#include "PolyVoxImpl/TypeDef.h"
|
||||||
|
|
||||||
#include "PolyVoxCore/Vector.h"
|
#include "PolyVoxCore/Vector.h"
|
||||||
|
|
||||||
namespace PolyVox
|
namespace PolyVox
|
||||||
|
@ -24,6 +24,8 @@ freely, subject to the following restrictions:
|
|||||||
#ifndef __PolyVox_SubArray_H__
|
#ifndef __PolyVox_SubArray_H__
|
||||||
#define __PolyVox_SubArray_H__
|
#define __PolyVox_SubArray_H__
|
||||||
|
|
||||||
|
#include "PolyVoxImpl/TypeDef.h"
|
||||||
|
|
||||||
namespace PolyVox
|
namespace PolyVox
|
||||||
{
|
{
|
||||||
template <uint32_t noOfDims, typename ElementType> class Array;
|
template <uint32_t noOfDims, typename ElementType> class Array;
|
||||||
|
@ -23,8 +23,6 @@ freely, subject to the following restrictions:
|
|||||||
|
|
||||||
#include "PolyVoxCore/AStarPathfinder.h"
|
#include "PolyVoxCore/AStarPathfinder.h"
|
||||||
|
|
||||||
#include "PolyVoxCore/Material.h"
|
|
||||||
|
|
||||||
using namespace PolyVox;
|
using namespace PolyVox;
|
||||||
|
|
||||||
namespace PolyVox
|
namespace PolyVox
|
||||||
|
@ -21,12 +21,9 @@ freely, subject to the following restrictions:
|
|||||||
distribution.
|
distribution.
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#include "PolyVoxCore/GradientEstimators.h"
|
|
||||||
#include "PolyVoxCore/SurfaceMesh.h"
|
|
||||||
#include "PolyVoxCore/VertexTypes.h"
|
|
||||||
#include "PolyVoxImpl/TypeDef.h"
|
#include "PolyVoxImpl/TypeDef.h"
|
||||||
|
|
||||||
#include "PolyVoxCore/LargeVolume.h"
|
#include "PolyVoxCore/GradientEstimators.h"
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
@ -1,7 +1,31 @@
|
|||||||
#include "PolyVoxCore/MeshDecimator.h"
|
/*******************************************************************************
|
||||||
|
Copyright (c) 2005-2009 David Williams
|
||||||
|
|
||||||
|
This software is provided 'as-is', without any express or implied
|
||||||
|
warranty. In no event will the authors be held liable for any damages
|
||||||
|
arising from the use of this software.
|
||||||
|
|
||||||
|
Permission is granted to anyone to use this software for any purpose,
|
||||||
|
including commercial applications, and to alter it and redistribute it
|
||||||
|
freely, subject to the following restrictions:
|
||||||
|
|
||||||
|
1. The origin of this software must not be misrepresented; you must not
|
||||||
|
claim that you wrote the original software. If you use this software
|
||||||
|
in a product, an acknowledgment in the product documentation would be
|
||||||
|
appreciated but is not required.
|
||||||
|
|
||||||
|
2. Altered source versions must be plainly marked as such, and must not be
|
||||||
|
misrepresented as being the original software.
|
||||||
|
|
||||||
|
3. This notice may not be removed or altered from any source
|
||||||
|
distribution.
|
||||||
|
*******************************************************************************/
|
||||||
|
|
||||||
|
#include "PolyVoxCore/MeshDecimator.h"
|
||||||
#include "PolyVoxCore/SurfaceMesh.h"
|
#include "PolyVoxCore/SurfaceMesh.h"
|
||||||
|
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
namespace PolyVox
|
namespace PolyVox
|
||||||
{
|
{
|
||||||
template<>
|
template<>
|
||||||
|
@ -21,8 +21,6 @@ freely, subject to the following restrictions:
|
|||||||
distribution.
|
distribution.
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#include <sstream>
|
|
||||||
|
|
||||||
#include "PolyVoxCore/VertexTypes.h"
|
#include "PolyVoxCore/VertexTypes.h"
|
||||||
|
|
||||||
namespace PolyVox
|
namespace PolyVox
|
||||||
|
@ -24,7 +24,8 @@ freely, subject to the following restrictions:
|
|||||||
#ifndef __PolyVox_Serialization_H__
|
#ifndef __PolyVox_Serialization_H__
|
||||||
#define __PolyVox_Serialization_H__
|
#define __PolyVox_Serialization_H__
|
||||||
|
|
||||||
#include "PolyVoxCore/PolyVoxForwardDeclarations.h"
|
#include "PolyVoxImpl/Utility.h"
|
||||||
|
|
||||||
#include "PolyVoxCore/Region.h"
|
#include "PolyVoxCore/Region.h"
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
@ -21,8 +21,6 @@ freely, subject to the following restrictions:
|
|||||||
distribution.
|
distribution.
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#include "PolyVoxImpl/Utility.h"
|
|
||||||
|
|
||||||
namespace PolyVox
|
namespace PolyVox
|
||||||
{
|
{
|
||||||
//Note: we don't do much error handling in here - exceptions will simply be propergated up to the caller.
|
//Note: we don't do much error handling in here - exceptions will simply be propergated up to the caller.
|
||||||
|
@ -24,10 +24,11 @@ freely, subject to the following restrictions:
|
|||||||
#ifndef __PolyVox_VolumeChangeTracker_H__
|
#ifndef __PolyVox_VolumeChangeTracker_H__
|
||||||
#define __PolyVox_VolumeChangeTracker_H__
|
#define __PolyVox_VolumeChangeTracker_H__
|
||||||
|
|
||||||
#include <list>
|
#include "PolyVoxImpl/Utility.h"
|
||||||
|
|
||||||
#include "PolyVoxCore/PolyVoxForwardDeclarations.h"
|
|
||||||
#include "PolyVoxCore/Region.h"
|
#include "PolyVoxCore/Region.h"
|
||||||
|
#include "PolyVoxCore/SurfaceMesh.h"
|
||||||
|
#include "PolyVoxCore/Vector.h"
|
||||||
|
|
||||||
namespace PolyVox
|
namespace PolyVox
|
||||||
{
|
{
|
||||||
|
@ -21,14 +21,6 @@ freely, subject to the following restrictions:
|
|||||||
distribution.
|
distribution.
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#include "PolyVoxCore/GradientEstimators.h"
|
|
||||||
#include "PolyVoxCore/SurfaceMesh.h"
|
|
||||||
#include "PolyVoxImpl/MarchingCubesTables.h"
|
|
||||||
#include "PolyVoxCore/VertexTypes.h"
|
|
||||||
#include "PolyVoxImpl/Utility.h"
|
|
||||||
#include "PolyVoxCore/Vector.h"
|
|
||||||
#include "PolyVoxCore/LargeVolume.h"
|
|
||||||
|
|
||||||
namespace PolyVox
|
namespace PolyVox
|
||||||
{
|
{
|
||||||
template <typename VoxelType>
|
template <typename VoxelType>
|
||||||
|
@ -24,6 +24,7 @@ freely, subject to the following restrictions:
|
|||||||
#include "TestAStarPathfinder.h"
|
#include "TestAStarPathfinder.h"
|
||||||
|
|
||||||
#include "PolyVoxCore/AStarPathfinder.h"
|
#include "PolyVoxCore/AStarPathfinder.h"
|
||||||
|
#include "PolyVoxCore/Material.h"
|
||||||
#include "PolyVoxCore/RawVolume.h"
|
#include "PolyVoxCore/RawVolume.h"
|
||||||
|
|
||||||
#include <QtTest>
|
#include <QtTest>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user