Fix linux compilation

This commit is contained in:
Romain Janvier
2024-09-29 10:27:39 +02:00
parent 971ccdde99
commit 9a5ef82e56
4 changed files with 16 additions and 11 deletions
+4 -2
View File
@@ -29,6 +29,8 @@
#include <ccPointCloud.h>
#include <ccScalarField.h>
#include <ccBox.h>
#include <ccGLMatrix.h>
#include <unordered_map>
@@ -50,13 +52,13 @@ public:
const Vector3Tpl<float> Y(-std::sin(zRot), std::cos(zRot), 0);
const Vector3Tpl<float> Z(0, 0, 1);
const Vector3Tpl<float> Tr(0, 0, 0);
matrix = &ccGLMatrix::ccGLMatrix(X, Y, Z, Tr);
matrix = new ccGLMatrix(X, Y, Z, Tr);
const Vector3Tpl<float> rX(std::cos(-zRot), std::sin(-zRot), 0);
const Vector3Tpl<float> rY(-std::sin(-zRot), std::cos(-zRot), 0);
const Vector3Tpl<float> rZ(0, 0, 1);
const Vector3Tpl<float> rTr(0, 0, 0);
inverse = &ccGLMatrix::ccGLMatrix(rX, rY, rZ, rTr);
inverse = new ccGLMatrix(rX, rY, rZ, rTr);
}
static ccBox* CreateVoxelMesh(CCVector3 V, float voxelSize, int voxelIdx);