---
name: "level_set"
section: "3rheolef"
platform: "linux"
package: "librheolef-dev"
version: "7.2-4"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/level_set"
---

# level\_set(3rheolef)

zero level set of a field (rheolef-7.2)

## NAME

level\_set - zero level set of a field (rheolef-7.2)

## SYNOPSIS

```
    geo level_set (const field& fh);
    geo level_set (const field& fh, const level_set_option& lopt);
```

## DESCRIPTION

Given a **field(2)** `fh` defined in a domain `Lambda`, this function computes the level set defined by `{x in Lambda, fh(x) = 0}`. This level set is represented by the **geo(2)** class.

## OPTIONS

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

```
struct level_set_option {
  bool split_to_triangle;
  Float epsilon;
  level_set_option()
   : split_to_triangle(true),
     epsilon(100*std::numeric_limits<Float>::epsilon())
     {}
};
```

## IMPLEMENTATION

This documentation has been generated from file main/lib/level\_set.h

## AUTHOR

Pierre  Saramito  \<Pierre.Saramito@imag.fr\>

## 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.
