migrated a lot of the FAST code including interface to Sifakis' fast 3x3 svd with SSE and AVX support (determined during compile)

This commit is contained in:
Alec Jacobson (jalec
2013-12-14 22:45:42 +01:00
parent 1b7a32cab7
commit 7d1db3ff46
41 changed files with 3660 additions and 26 deletions
+2 -13
View File
@@ -21,15 +21,13 @@
#include <igl/Camera.h>
#include <igl/ReAntTweakBar.h>
#include <igl/get_seconds.h>
#include <igl/sample_mesh.h>
#include <igl/random_points_on_mesh.h>
#include <Eigen/Core>
#include <Eigen/Geometry>
#include <GLUT/glut.h>
#include <Carbon/Carbon.h>
#include <string>
#include <vector>
#include <stack>
@@ -413,19 +411,10 @@ void init_samples()
const int n = V.rows()*10;
SparseMatrix<double> B;
VectorXi FI;
sample_mesh(n,V,F,B,FI);
random_points_on_mesh(n,V,F,B,FI);
S = B*V;
}
KeyMap keyStates ;
bool IS_KEYDOWN( uint16_t vKey )
{
uint8_t index = vKey / 32 ;
uint8_t shift = vKey % 32 ;
return keyStates[index].bigEndianValue & (1 << shift) ;
}
void undo()
{
using namespace std;