aboutsummaryrefslogtreecommitdiff
path: root/core/voxelize.cpp
diff options
context:
space:
mode:
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);