DGtal  1.5.beta
testlibigl.cpp File Reference
#include <iostream>
#include "DGtal/base/Common.h"
#include "ConfigTest.h"
#include "DGtalCatch.h"
#include "DGtal/helpers/StdDefs.h"
#include <igl/readOFF.h>
Include dependency graph for testlibigl.cpp:

Go to the source code of this file.


 TEST_CASE ("Testing LibIGL")

Detailed Description

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

David Coeurjolly (david.nosp@m..coe.nosp@m.urjol.nosp@m.ly@l.nosp@m.iris..nosp@m.cnrs.nosp@m..fr ) Laboratoire d'InfoRmatique en Image et Systemes d'information - LIRIS (CNRS, UMR 5205), CNRS, France

Functions for testing class PolygonalCalculus.

This file is part of the DGtal library.

Definition in file testlibigl.cpp.

Function Documentation


TEST_CASE ( "Testing LibIGL"  )

Definition at line 51 of file testlibigl.cpp.

52 {
53  Eigen::MatrixXd V;
54  Eigen::MatrixXi F;
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 };
SECTION("Testing constant forward iterators")

References REQUIRE(), and SECTION().