Rheolef
7.1
an efficient C++ finite element environment
level_set.h
Go to the documentation of this file.
1
#ifndef _RHEOLEF_LEVEL_SET_H
2
#define _RHEOLEF_LEVEL_SET_H
3
//
4
// This file is part of Rheolef.
5
//
6
// Copyright (C) 2000-2009 Pierre Saramito <Pierre.Saramito@imag.fr>
7
//
8
// Rheolef is free software; you can redistribute it and/or modify
9
// it under the terms of the GNU General Public License as published by
10
// the Free Software Foundation; either version 2 of the License, or
11
// (at your option) any later version.
12
//
13
// Rheolef is distributed in the hope that it will be useful,
14
// but WITHOUT ANY WARRANTY; without even the implied warranty of
15
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
// GNU General Public License for more details.
17
//
18
// You should have received a copy of the GNU General Public License
19
// along with Rheolef; if not, write to the Free Software
20
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21
//
22
// =========================================================================
23
24
namespace
rheolef
{
59
}
// namespace rheolef
60
61
#include "rheolef/field.h"
62
63
namespace
rheolef
{
64
65
// [verbatim_level_set_option]
66
struct
level_set_option
{
67
bool
split_to_triangle
;
68
Float
epsilon
;
69
level_set_option
()
70
:
split_to_triangle
(true),
71
epsilon
(100*
std
::numeric_limits<
Float
>::
epsilon
())
72
{}
73
};
74
// [verbatim_level_set_option]
75
76
template
<
class
T,
class
M>
77
geo_basic<T,M>
level_set
(
78
const
field_basic<T,M>& fh,
79
const
level_set_option& opt = level_set_option());
80
81
// backward compat:
82
using
level_set_option_type
=
level_set_option
;
83
84
}
// namespace
85
#endif // _RHEOLEF_LEVEL_SET_H
rheolef::level_set
geo_basic< T, M > level_set(const field_basic< T, M > &fh, const level_set_option &opt)
Definition:
level_set.cc:924
rheolef::level_set_option::epsilon
Float epsilon
Definition:
level_set.h:68
rheolef::level_set_option
Definition:
level_set.h:66
rheolef::level_set_option::level_set_option
level_set_option()
Definition:
level_set.h:69
rheolef
This file is part of Rheolef.
Definition:
compiler_eigen.h:37
Float
see the Float page for the full documentation
rheolef::level_set_option::split_to_triangle
bool split_to_triangle
Definition:
level_set.h:67
rheolef::std
Definition:
vec_expr_v2.h:391