From 7e905913c98eb3c47019dc4608292e12f33435e7 Mon Sep 17 00:00:00 2001 From: Marc Gilleron Date: Fri, 30 Apr 2021 01:34:59 +0100 Subject: [PATCH] Unused functions --- meshers/transvoxel/transvoxel.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/meshers/transvoxel/transvoxel.cpp b/meshers/transvoxel/transvoxel.cpp index 8487f1f1..18a32e46 100644 --- a/meshers/transvoxel/transvoxel.cpp +++ b/meshers/transvoxel/transvoxel.cpp @@ -15,15 +15,6 @@ inline uint8_t sign_f(float v) { return v < 0.f; } -// Wrapped to invert SDF data, Transvoxel apparently works backwards? -inline float get_voxel_f(const VoxelBuffer &vb, int x, int y, int z, int channel) { - return -vb.get_voxel_f(x, y, z, channel); -} - -inline float get_voxel_f(const VoxelBuffer &vb, Vector3i pos, int channel) { - return get_voxel_f(vb, pos.x, pos.y, pos.z, channel); -} - Vector3 get_border_offset(const Vector3 pos, const int lod_index, const Vector3i block_size) { // When transition meshes are inserted between blocks of different LOD, we need to make space for them. // Secondary vertex positions can be calculated by linearly transforming positions inside boundary cells