{"name":"Terrain Processor: Area: Low-density Cluster (strip)","title":"Terrain Processor: Area: Low-density Cluster (strip)","type":"topic","url":"https://community.bistudio.com/wiki/Terrain_Processor:_Area:_Low-density_Cluster_(strip)","revid":349819,"updated":"2023-11-20T22:10:25Z","aliases":[],"markdown":"#### Task details\n\n**Task name** : Area: Low-density Cluster (strip)\n\n**Dll plugin name** : BITasksPlugin.dll\n\n**Geometry type** : Polygon, PolygonM, PolygonZ\n\n**Heightmap** : No\n\n#### Description\n\nAlgorithm used for populating low-density areas. Objects are organized in linear clusters.\n\n#### Task parameters\n\n- **RANDOM SEED** - number used to initialize pseudorandom number generator.\n- **CDENSHA** - The density of the filling in number of clusters for hectare.\n\n#### Object prototype parameters\n\n- **OBJECT** - Object's prototype name\n- **MINHEIGHT** - Minimal size in %\n- **MAXHEIGHT** - Maximal size in %\n- **MINDIST** - Minimal distance in meters\n- **GROUPID** - Cluster group id\n- **MINCOUNT** - Minimal count of objects in one cluster\n- **MAXCOUNT** - Maximal count of objects in one cluster\n\n#### Usage\n\nSimilar to the \"Area: Low-density Cluster (circle)\", creates prolonged clusters of given width. Perfect for small tree groups, or for adding lines of undergrowth into forests.\n\n#### Algorithm\n\nFor each shape (areal) do :\n\n1. clusters_count = HECTARES * CDENSHA\n1. For clusters_count :\n   1. Get random prototypes group.\n   1. Find position inside shape = cluster_center.\n   1. For each object prototype do :\n      1. prototypes_count = random MINCOUNT - MAXCOUNT\n      1. For prototypes_count :\n         1. Get random direction_vector with random length (0 - MAXCRADIUS) from cluster_center.\n         1. If position = cluster_center + direction_vector id inside shape and condition MINDIST[n] is ok, then 3. else 1.\n         1. Create new instance for object prototype in position.\n\n#### Sample","sections":[{"heading":"Task details","level":4,"markdown":"**Task name** : Area: Low-density Cluster (strip)\n\n**Dll plugin name** : BITasksPlugin.dll\n\n**Geometry type** : Polygon, PolygonM, PolygonZ\n\n**Heightmap** : No"},{"heading":"Description","level":4,"markdown":"Algorithm used for populating low-density areas. Objects are organized in linear clusters."},{"heading":"Task parameters","level":4,"markdown":"- **RANDOM SEED** - number used to initialize pseudorandom number generator.\n- **CDENSHA** - The density of the filling in number of clusters for hectare."},{"heading":"Object prototype parameters","level":4,"markdown":"- **OBJECT** - Object's prototype name\n- **MINHEIGHT** - Minimal size in %\n- **MAXHEIGHT** - Maximal size in %\n- **MINDIST** - Minimal distance in meters\n- **GROUPID** - Cluster group id\n- **MINCOUNT** - Minimal count of objects in one cluster\n- **MAXCOUNT** - Maximal count of objects in one cluster"},{"heading":"Usage","level":4,"markdown":"Similar to the \"Area: Low-density Cluster (circle)\", creates prolonged clusters of given width. Perfect for small tree groups, or for adding lines of undergrowth into forests."},{"heading":"Algorithm","level":4,"markdown":"For each shape (areal) do :\n\n1. clusters_count = HECTARES * CDENSHA\n1. For clusters_count :\n   1. Get random prototypes group.\n   1. Find position inside shape = cluster_center.\n   1. For each object prototype do :\n      1. prototypes_count = random MINCOUNT - MAXCOUNT\n      1. For prototypes_count :\n         1. Get random direction_vector with random length (0 - MAXCRADIUS) from cluster_center.\n         1. If position = cluster_center + direction_vector id inside shape and condition MINDIST[n] is ok, then 3. else 1.\n         1. Create new instance for object prototype in position."},{"heading":"Sample","level":4,"markdown":""}],"categories":["Terrain Processor Manual"],"groups":["Tools and File Formats"]}