DGtal  1.4.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/readOBJ.h>
Include dependency graph for testlibigl.cpp:

Go to the source code of this file.

Functions

 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/.

Author
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
Date
2023/06/14

Functions for testing class PolygonalCalculus.

This file is part of the DGtal library.

Definition in file testlibigl.cpp.

Function Documentation

◆ TEST_CASE()

TEST_CASE ( "Testing LibIGL"  )

Definition at line 48 of file testlibigl.cpp.

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 };
SECTION("Testing constant forward iterators")
REQUIRE(domain.isInside(aPoint))

References REQUIRE(), and SECTION().