Polarith AI
1.8

◆ CreateIcoSphere()

static SpatialSensor CreateIcoSphere ( int  subdivisions,
float  radius 
)
static

Constructs a sensor shape such that its receptors resemble an icosphere.

Note that the receptor count grows exponentially with the subdivision level, so a number greater than 5 is not advised.

Parameters
subdivisionsThe icosphere is constructed iteratively. The first layer (subdivisions = 0) starts with 12 receptors and is then subdivided subsequently.
radiusThe radius of the sphere.
Returns
The constructed icosphere sensor.
Imprint