# Cavity

## Overview

The Cavity distribution selects an area based on the cavity of the terrain. The distribution can either use a convex or concave cavity.

## Parameters

<table><thead><tr><th width="199.7999267578125">Properties</th><th>Description</th></tr></thead><tbody><tr><td><strong>Strength</strong></td><td>Controls the contrast of the resulting selection.</td></tr><tr><td><strong>Threshold</strong></td><td>Allows you to create a sharper and wider cavity selection.</td></tr><tr><td><strong>Step Size</strong></td><td>Influences the sampling algorithm. Smaller step sizes lead to finer details and larger step sizes lead to wider features.</td></tr><tr><td><strong>Type</strong></td><td>Allows you to switch between concave and convex cavity.</td></tr></tbody></table>

## Results

<div><figure><img src="https://2837684122-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM6zsxw2jbMYEZbKqEwpa%2Fuploads%2F5Lf6sqWwzr0vBe9jTLdb%2Freference_distributions_cavity_01.webp?alt=media&#x26;token=cf032008-5774-4196-a234-07949d014359" alt=""><figcaption></figcaption></figure> <figure><img src="https://2837684122-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM6zsxw2jbMYEZbKqEwpa%2Fuploads%2FIC99ojcPt3C8UmujRAhf%2Freference_distributions_cavity_02.webp?alt=media&#x26;token=6d83120e-fd8c-4f86-af85-042bfa37e18c" alt=""><figcaption></figcaption></figure></div>
