Fig. 28
From: A robust algorithm for implicit description of immersed geometries within a background mesh

Concept of ray casting to identify inside and outside of a closed geometry: Start from outside and determine the status of a given node by following the status of the ray, which changes after each intersection with the boundaries