Files
igl/examples/dmat/example.cpp
T
jalec 729936710f dmat matrix file format reader, writer and example
sort, reorder vectors and eigen (dynamic) matrices like matlabs sort (with example)
function to retrieve shader uniform names and locations,
function to report open gl errors to stderr
example that prints opengl version and glsl version,
2011-09-28 10:11:55 +00:00

19 lines
327 B
C++

#include <Eigen/Core>
#include "readDMAT.h"
#include "writeDMAT.h"
using namespace igl;
#include <cstdio>
int main(int argc, char * argv[])
{
if(argc <= 2)
{
printf("USAGE:\n ./example [input path] [output path]\n");
return 1;
}
Eigen::MatrixXd M;
readDMAT(argv[1],M);
writeDMAT(argv[2],M);
return 0;
}