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/VectorsInHeat.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 );
83 heat.addSource(0,Eigen::Vector3d(0.1,0.2,0.3));
84 std::vector<VectorsInHeat<PolygonalCalculus<RealPoint,RealVector>>
::Vector> d = heat.compute();
85 REQUIRE( d.size() == positions.size() );
86 REQUIRE( d[5][0] == Approx(-0.111302) );
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="")
This class implements on polygonal surfaces (using Discrete differential calculus on polygonal surfa...
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 ...
SECTION("Testing constant forward iterators")
REQUIRE(domain.isInside(aPoint))
TEST_CASE("Testing VectorsInHeat")