Navigation

Operators and Keywords

Function List:

C++ API

Function File: phis = ls_get_tests ()

Return a couple of level-set functions for certain 2D cases in the cell-array phis. They can be used in tests.

Use demo ls_get_tests to get an overview of the situations included.

Demonstration 1

The following code

  phis = ls_get_tests ();
  for i = 1 : length (phis)
    figure ();
    hold ("on");
    imagesc (sign (phis{i}));
    caxis ([-1, 1]);
    hold ("off");
    titleFmt = "Situation #%d.  Blue: Interior, Green: Zero, Red: Outside.";
    title (sprintf (titleFmt, i));
  endfor

Produces the following figures

Figure 1 Figure 2 Figure 3 Figure 4 Figure 5 Figure 6

Package: level-set