32#include "DGtal/base/Common.h"
33#include "ConfigTest.h"
34#include "DGtalCatch.h"
35#include "DGtal/helpers/StdDefs.h"
37#include "DGtal/dec/PolygonalCalculus.h"
38#include "DGtal/dec/GeodesicsInHeat.h"
39#include "DGtal/shapes/SurfaceMesh.h"
40#include "DGtal/shapes/MeshHelpers.h"
50 std::vector<RealPoint> positions = {
RealPoint( 0, 0, 0 ) ,
60 std::vector<Mesh::Vertices> faces = { { 1, 0, 2, 3 },
67 Mesh box(positions.cbegin(), positions.cend(),
68 faces.cbegin(), faces.cend());
73 SECTION(
"Construction and basic operators")
76 REQUIRE( heat.isValid() ==
false );
85 REQUIRE( d.size() == positions.size() );
86 REQUIRE( d[5] == Approx(1.444608) );
88 auto sources = heat.source();
This class implements on polygonal surfaces (using Discrete differential calculus on polygonal surfa...
Aim: This class is defined to represent a surface mesh through a set of vertices and faces....
Implements differential operators on polygonal surfaces from .
void beginBlock(const std::string &keyword="")
Space::RealPoint RealPoint
DGtal is the top-level namespace which contains all DGtal functions and types.
Aim: Represents an embedded mesh as faces and a list of vertices. Vertices may be shared among faces ...
TEST_CASE("Testing GeodesicsInHeat")
SECTION("Testing constant forward iterators")
REQUIRE(domain.isInside(aPoint))