Rheolef
7.2
an efficient C++ finite element environment
Loading...
Searching...
No Matches
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/geo.h"
62
63
namespace
rheolef
{
64
65
// forward declaration:
66
template
<
class
T,
class
M>
class
field_basic;
67
68
// [verbatim_level_set_option]
69
struct
level_set_option
{
70
bool
split_to_triangle
;
71
Float
epsilon
;
72
level_set_option
()
73
:
split_to_triangle
(true),
74
epsilon
(100*
std
::numeric_limits<
Float
>::
epsilon
())
75
{}
76
};
77
// [verbatim_level_set_option]
78
79
template
<
class
T,
class
M>
80
geo_basic<T,M>
level_set
(
81
const
field_basic<T,M>& fh,
82
const
level_set_option& opt = level_set_option());
83
84
// backward compat:
85
using
level_set_option_type
=
level_set_option
;
86
87
}
// namespace
88
#endif
// _RHEOLEF_LEVEL_SET_H
Float
see the Float page for the full documentation
rheolef
This file is part of Rheolef.
Definition
compiler_eigen.h:39
rheolef::level_set
geo_basic< T, M > level_set(const field_basic< T, M > &fh, const level_set_option &opt)
Definition
level_set.cc:925
std
STL namespace.
rheolef::level_set_option
Definition
level_set.h:69
rheolef::level_set_option::epsilon
Float epsilon
Definition
level_set.h:71
rheolef::level_set_option::split_to_triangle
bool split_to_triangle
Definition
level_set.h:70
rheolef::level_set_option::level_set_option
level_set_option()
Definition
level_set.h:72