DGtal 1.4.2
Loading...
Searching...
No Matches
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
43using namespace std;
44using namespace DGtal;
45using namespace Z3i;
46
48// Functions for testing libIGL io.
50
51TEST_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.
STL namespace.
SECTION("Testing constant forward iterators")
REQUIRE(domain.isInside(aPoint))
TEST_CASE("Testing LibIGL")