SYNOPSYS

geo level_set (const field& fh);

DESCRIPTION

Given a function fh defined in a domain Lambda, compute the level set defined by {x in Lambda, fh(x) = 0}. This level set is represented by the geo class.

OPTIONS

The option class leve_set_option_type controls the slit of quadrilaterals into triangles for tridimensional intersected surface and also the zero machine precision, epsilon.

IMPLEMENTATION

struct level_set_option_type {
    bool split_to_triangle;
    Float epsilon;
    level_set_option_type()
     : split_to_triangle(true),
       epsilon(100*std::numeric_limits<Float>::epsilon())
       {}
};
template <class T, class M>
geo_basic<T,M> level_set (
  const field_basic<T,M>& fh,
  const level_set_option_type& opt = level_set_option_type());