---
name: "level_set"
section: "4rheolef"
platform: "linux"
package: "librheolef-dev"
version: "7.0-2+b1"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/level_set/4rheolef"
---

# level\_set(4rheolef)

compute a level set from a function

## NAME

**level\_set** - compute a level set from a function

## SYNOPSIS

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 {
    bool split_to_triangle;
    Float epsilon;
    level_set_option()
     : 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& opt = level_set_option());

```

## COPYRIGHT

Copyright (C) 2000-2018 Pierre Saramito \<Pierre.Saramito@imag.fr\> GPLv3+: GNU GPL version 3 or later \<http://gnu.org/licenses/gpl.html\>. This is free software: you are free to change and redistribute it.  There is NO WARRANTY, to the extent permitted by law.
