Loading...
Searching...
No Matches
GeometryDebugging.h
// Copyright (C) 2016-2017 Anders Logg
//
// This file is part of DOLFIN.
//
// DOLFIN 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.
//
// DOLFIN 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 Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with DOLFIN. If not, see <http://www.gnu.org/licenses/>.
//
// First added: 2016-05-05
// Last changed: 2017-05-17
#ifndef __GEOMETRY_DEBUGGING_H
#define __GEOMETRY_DEBUGGING_H
#include <vector>
#include <string>
#include "Point.h"
namespace dolfin
{
class GeometryDebugging
{
public:
static void print(const Point& point);
static void print(const std::vector<Point>& simplex);
static void print(const std::vector<Point>& simplex_0,
const std::vector<Point>& simplex_1);
static void plot(const Point& point);
static void plot(const std::vector<Point>& simplex);
static void plot(const std::vector<Point>& simplex_0,
const std::vector<Point>& simplex_1);
static void init_plot();
static std::string point2string(const Point& p);
static std::string simplex2string(const std::vector<Point>& simplex);
private:
// Check whether plotting has been initialized
static bool _initialized;
};
}
#endif
dolfin::GeometryDebugging
Definition GeometryDebugging.h:36
dolfin::GeometryDebugging::print
static void print(const Point &point)
Definition GeometryDebugging.cpp:32
dolfin::GeometryDebugging::simplex2string
static std::string simplex2string(const std::vector< Point > &simplex)
Compact simplex to string conversion.
Definition GeometryDebugging.cpp:129
dolfin::GeometryDebugging::point2string
static std::string point2string(const Point &p)
Compact point to string conversion.
Definition GeometryDebugging.cpp:122
dolfin::GeometryDebugging::plot
static void plot(const Point &point)
Definition GeometryDebugging.cpp:62
dolfin::GeometryDebugging::init_plot
static void init_plot()
Initialize plotting (print matplotlib code).
Definition GeometryDebugging.cpp:103
dolfin::Point
Definition Point.h:41
dolfin
Definition adapt.h:30