Skip to main content

ico_source_space

Function ico_source_space 

Source
pub fn ico_source_space(
    n_subdivisions: usize,
    radius: f64,
    center: [f64; 3],
) -> (Array2<f64>, Array2<f64>)
Expand description

Generate a source space by subdividing an icosahedron.

§Arguments

  • n_subdivisions — Number of recursive subdivisions (0 → 12 vertices, 1 → 42, 2 → 162, 3 → 642, 4 → 2562, 5 → 10242).
  • radius — Radius of the sphere in metres (e.g., 0.07 for cortex).
  • center — Centre of the sphere [x, y, z] in metres.

§Returns

(positions, normals) where both have shape [n_sources, 3]. Normals point radially outward from the centre.