From 688b5f42e9bfe498d7af7075d4d8f4429867f3a3 Mon Sep 17 00:00:00 2001 From: Miles Macklin Date: Fri, 9 Jun 2017 13:41:15 +1200 Subject: 1.2.0.beta.1 --- core/voxelize.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/voxelize.cpp') 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); -- cgit v1.2.3