aboutsummaryrefslogtreecommitdiff
path: root/core/voxelize.cpp
diff options
context:
space:
mode:
authorMiles Macklin <[email protected]>2017-06-09 13:41:15 +1200
committerMiles Macklin <[email protected]>2017-06-09 13:41:15 +1200
commit688b5f42e9bfe498d7af7075d4d8f4429867f3a3 (patch)
tree7e0d0e7c95298f0418723abd92f61ac6e16b055e /core/voxelize.cpp
parentUpdate README.md (diff)
downloadflex-688b5f42e9bfe498d7af7075d4d8f4429867f3a3.tar.xz
flex-688b5f42e9bfe498d7af7075d4d8f4429867f3a3.zip
1.2.0.beta.11.2.0.beta.1
Diffstat (limited to 'core/voxelize.cpp')
-rw-r--r--core/voxelize.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/voxelize.cpp b/core/voxelize.cpp
index 8172aea..647ceb4 100644
--- a/core/voxelize.cpp
+++ b/core/voxelize.cpp
@@ -28,12 +28,12 @@
#include "aabbtree.h"
#include "mesh.h"
-void Voxelize(const float* vertices, int numVertices, const int* indices, int numTriangleIndices, uint32_t width, uint32_t height, uint32_t depth, uint32_t* volume, Vec3 minExtents, Vec3 maxExtents)
+void Voxelize(const Vec3* vertices, int numVertices, const int* indices, int numTriangleIndices, uint32_t width, uint32_t height, uint32_t depth, uint32_t* volume, Vec3 minExtents, Vec3 maxExtents)
{
memset(volume, 0, sizeof(uint32_t)*width*height*depth);
// build an aabb tree of the mesh
- AABBTree tree((const Vec3*)vertices, numVertices, (const uint32_t*)indices, numTriangleIndices/3);
+ AABBTree tree(vertices, numVertices, (const uint32_t*)indices, numTriangleIndices/3);
// parity count method, single pass
const Vec3 extents(maxExtents-minExtents);