---
name: "Terrain Processor: Area: Low-density Cluster (circle)"
type: topic
source: https://community.bistudio.com/wiki/Terrain_Processor:_Area:_Low-density_Cluster_(circle)
revid: 349809
updated: 2023-11-20T22:10:21Z
---

# Terrain Processor: Area: Low-density Cluster (circle)

#### Task details

**Task name** : Area: Low-density Cluster (circle)

**Dll plugin name** : BITasksPlugin.dll

**Geometry type** : Polygon, PolygonM, PolygonZ

**Heightmap** : No

#### Description

Algorithm used for populating low-density areas. Objects are organized in circle clusters.

#### Task parameters

- **RANDOM SEED** - number used to initialize pseudorandom number generator.
- **CDENSHA** - The density of the filling in number of clusters for hectare.

#### Object prototype parameters

- **OBJECT** - Object's prototype name
- **MINHEIGHT** - Minimal size in %
- **MAXHEIGHT** - Maximal size in %
- **MINDIST** - Minimal distance in meters
- **GROUPID** - Cluster group id
- **MINCOUNT** - Minimal count of objects in one cluster
- **MAXCOUNT** - Maximal count of objects in one cluster

#### Usage

Use this algorithm for placing small object clusters in open areas. Suitable for "peeppering" the landscape with occasional small group of bushes with occassional tree in it, or clusters of small stones with bigger ones closer to the cluster centers.

#### Algorithm

For each shape (areal) do :

1. clusters_count = HECTARES * CDENSHA
1. For clusters_count :
   1. Get random prototypes group.
   1. Find position inside shape = cluster_center.
   1. For each object prototype do :
      1. prototypes_count = random MINCOUNT - MAXCOUNT
      1. For prototypes_count :
         1. Get random direction_vector with random length (0 - MAXCRADIUS) from cluster_center.
         1. If position = cluster_center + direction_vector id inside shape and condition MINDIST[n] is ok, then 3. else 1.
         1. Create new instance for object prototype in position.

#### Sample

<sub>Source: [BI Community Wiki — Terrain Processor: Area: Low-density Cluster (circle)](https://community.bistudio.com/wiki/Terrain_Processor:_Area:_Low-density_Cluster_(circle)) (revision 349809).</sub>
