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