LehrFEM++ 1.0.0
A simple Finite Element Library for teaching
Loading...
Searching...
No Matches
write_tikz.h
1/***************************************************************************
2 * LehrFEM++ - A simple C++ finite element libray for teaching
3 * Developed from 2018 at the Seminar of Applied Mathematics of ETH Zurich,
4 * lead developers Dr. R. Casagrande and Prof. R. Hiptmair
5 ***************************************************************************/
6
7#ifndef WRITE_TIKZ_H
8#define WRITE_TIKZ_H
9
10#include <lf/mesh/mesh.h>
11
12#include <string>
13#include <vector>
14
15#include "lf/mesh/hybrid2d/hybrid2d.h"
16
17namespace lf::io {
18
33
36
130bool writeTikZ(const lf::mesh::Mesh &mesh, const std::string &filename,
131 std::function<bool(const lf::mesh::Entity &)> &&selector,
133
141bool writeTikZ(const lf::mesh::Mesh &mesh, const std::string &filename,
143
144} // namespace lf::io
145
146#endif // WRITE_TIKZ_H
Interface class representing a topological entity in a cellular complex
Definition entity.h:42
Abstract interface for objects representing a single mesh.
Mesh input (from file) and output (in various formats) facilities.
TikzOutputCtrl
Enum flags: TikzOutputCtrl for output control of mesh drawn in TikZ.
Definition write_tikz.h:24
bool writeTikZ(const lf::mesh::Mesh &mesh, const std::string &filename, std::function< bool(const lf::mesh::Entity &)> &&selector, TikzOutputCtrl output_ctrl)
Writes mesh to file in TikZ Graphics format. File as input in LaTeX will draw the mesh.
Definition write_tikz.cc:24
TikzOutputCtrl operator&(const TikzOutputCtrl &lhs, const TikzOutputCtrl &rhs)
Definition write_tikz.cc:18
TikzOutputCtrl operator|(const TikzOutputCtrl &lhs, const TikzOutputCtrl &rhs)
Definition write_tikz.cc:13
Defines a set of interface classes that define a mesh manager and provides mesh-related tools that bu...
Definition entity.cc:5