DGtal  1.5.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/readOFF.h>
38 
39 
40 
42 
43 using namespace std;
44 using namespace DGtal;
45 using namespace Z3i;
46 
48 // Functions for testing libIGL io.
50 
51 TEST_CASE( "Testing LibIGL" )
52 {
53  Eigen::MatrixXd V;
54  Eigen::MatrixXi F;
55 
56  SECTION("Simple test with OBJ IO")
57  {
58  igl::readOFF(testPath + "samples/box.off", V, F);
59  REQUIRE( V.rows() == 8);
60  REQUIRE( F.rows() == 6);
61  }
62 };
63 
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:51