summaryrefslogtreecommitdiffstats
path: root/thirdparty/vhacd/src/FloatMath.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2019-04-10 17:46:04 -0300
committerJuan Linietsky <reduzio@gmail.com>2019-04-10 17:47:28 -0300
commit5823b5d77d47339c3c981953ca8178e7ef14b6df (patch)
tree608310c810903163292b9cd8133374699aa9ae6f /thirdparty/vhacd/src/FloatMath.cpp
parent07b76c0376eef34fcbf52ecc21074c5084f980f5 (diff)
downloadredot-engine-5823b5d77d47339c3c981953ca8178e7ef14b6df.tar.gz
Bundled VHACD library for convex decomposition.
Modified both MeshInstance tools as well as importer to use it instead of QuickHull.
Diffstat (limited to 'thirdparty/vhacd/src/FloatMath.cpp')
-rw-r--r--thirdparty/vhacd/src/FloatMath.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/thirdparty/vhacd/src/FloatMath.cpp b/thirdparty/vhacd/src/FloatMath.cpp
new file mode 100644
index 0000000000..481e875104
--- /dev/null
+++ b/thirdparty/vhacd/src/FloatMath.cpp
@@ -0,0 +1,17 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <assert.h>
+#include <math.h>
+#include <float.h>
+#include "FloatMath.h"
+#include <vector>
+
+#define REAL float
+
+#include "FloatMath.inl"
+
+#undef REAL
+#define REAL double
+
+#include "FloatMath.inl"