DGtal  1.4.beta
testlibigl.cpp
Go to the documentation of this file.
1 
31 #include <iostream>
32 #include "DGtal/base/Common.h"
33 #include "ConfigTest.h"
34 #include "DGtalCatch.h"
35 #include "DGtal/helpers/StdDefs.h"
36 
37 #include <igl/readOBJ.h>
39 
40 using namespace std;
41 using namespace DGtal;
42 using namespace Z3i;
43 
45 // Functions for testing libIGL io.
47 
48 TEST_CASE( "Testing LibIGL" )
49 {
50  Eigen::MatrixXd V;
51  Eigen::MatrixXi F;
52 
53  SECTION("Simple test with OBJ IO")
54  {
55  igl::readOBJ(testPath + "samples/testObj.obj", V, F);
56  REQUIRE( V.rows() == 10);
57  REQUIRE( F.rows() == 6);
58  }
59 };
60 
DGtal is the top-level namespace which contains all DGtal functions and types.
SECTION("Testing constant forward iterators")
REQUIRE(domain.isInside(aPoint))
TEST_CASE("Testing LibIGL")
Definition: testlibigl.cpp:48