DOLFIN
DOLFIN C++ interface
Loading...
Searching...
No Matches
GeometryDebugging.h
1// Copyright (C) 2016-2017 Anders Logg
2//
3// This file is part of DOLFIN.
4//
5// DOLFIN is free software: you can redistribute it and/or modify
6// it under the terms of the GNU Lesser General Public License as published by
7// the Free Software Foundation, either version 3 of the License, or
8// (at your option) any later version.
9//
10// DOLFIN is distributed in the hope that it will be useful,
11// but WITHOUT ANY WARRANTY; without even the implied warranty of
12// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13// GNU Lesser General Public License for more details.
14//
15// You should have received a copy of the GNU Lesser General Public License
16// along with DOLFIN. If not, see <http://www.gnu.org/licenses/>.
17//
18// First added: 2016-05-05
19// Last changed: 2017-05-17
20
21#ifndef __GEOMETRY_DEBUGGING_H
22#define __GEOMETRY_DEBUGGING_H
23
24#include <vector>
25#include <string>
26#include "Point.h"
27
28namespace dolfin
29{
30
34
36 {
37 public:
38
41 static void print(const Point& point);
42
45 static void print(const std::vector<Point>& simplex);
46
49 static void print(const std::vector<Point>& simplex_0,
50 const std::vector<Point>& simplex_1);
51
54 static void plot(const Point& point);
55
58 static void plot(const std::vector<Point>& simplex);
59
62 static void plot(const std::vector<Point>& simplex_0,
63 const std::vector<Point>& simplex_1);
64
66 static void init_plot();
67
69 static std::string point2string(const Point& p);
70
72 static std::string simplex2string(const std::vector<Point>& simplex);
73
74 private:
75
76 // Check whether plotting has been initialized
77 static bool _initialized;
78
79 };
80
81}
82
83#endif
Definition GeometryDebugging.h:36
static void print(const Point &point)
Definition GeometryDebugging.cpp:32
static std::string simplex2string(const std::vector< Point > &simplex)
Compact simplex to string conversion.
Definition GeometryDebugging.cpp:129
static std::string point2string(const Point &p)
Compact point to string conversion.
Definition GeometryDebugging.cpp:122
static void plot(const Point &point)
Definition GeometryDebugging.cpp:62
static void init_plot()
Initialize plotting (print matplotlib code).
Definition GeometryDebugging.cpp:103
Definition Point.h:41
Definition adapt.h:30