
Returns a map in the range of 0 to 1 in relation to the Cavity of the original map.
- Cavity Size: Defines how big the cavity detected is. A value of 1 in the map represents a fully convex point, while a value of 0 is a fully concave point.
- Feature Mode: Defines if the cavities should be defined by the world normal or the terrain normal. In doubt it is recommended to leave it as default and tweak it in the Mesh Generation Settings.
- World: It will take into account the rotation of the generation.
- Terrain: It will not take into account the rotation of the world.

Cavity Size 10

Cavity Size 50
Examples
Feature Extraction
Notes
We start by creating the terrain using a simple Perlin Noise with a few octaves.
Next, we connect it to the Height Output to ensure the data will be used, and then extract features using the Get Slope and Get Cavity nodes. We use the data generated by these nodes to select specific regions—such as areas with high slope or regions where the terrain is relatively flat—and paint them using the Color Output.
Finally, using the Fold node, we transform the flat region mask into a selection of all concave and convex areas.

Node system

Result