37 #ifndef GETFEM_LEVEL_SET_H__
38 #define GETFEM_LEVEL_SET_H__
58 std::vector<scalar_type> primary_, secondary_;
69 void set_shift(scalar_type shift_ls_)
70 { shift_ls = shift_ls_; }
71 scalar_type get_shift(
void)
const {
return shift_ls; }
72 void simplify(scalar_type eps = 0.01);
75 std::vector<scalar_type> &values(
unsigned i = 0)
76 {
return (i == 0) ? primary_ : secondary_; }
77 const std::vector<scalar_type> &values(
unsigned i = 0)
const
78 {
return (i == 0) ? primary_ : secondary_; }
80 pmesher_signed_distance mls_of_convex(
size_type cv,
unsigned lsnum = 0,
81 bool inverted =
false)
const;
82 bool has_secondary(
void)
const {
return with_secondary; }
83 const mesh_fem &get_mesh_fem(
void)
const {
return *mf; }
84 const mesh &linked_mesh()
const {
return mf->
linked_mesh(); }
85 dim_type degree()
const {
return degree_; }
86 level_set(
const mesh &msh, dim_type deg = dim_type(1),
87 bool with_secondary_ =
false);
88 level_set(
const level_set &ls);
89 level_set &operator =(
const level_set &ls);
96 const level_set &dummy_level_set();