snnib.blender.geo_nodes

custom geometry nodes node groups

  • defines geometry nodes (geo nodes) node trees

  • makes them available in the [blender](https://www.blender.org/)s geo nodes

  • naming pattern: Snnib<Name>

Exceptions

Classes

Functions
  • network_container() – geo nodes node tree for a network container

  • neurite_bends() – adds random bends to neurites

  • neurite_branches() – adds random branches to geometry

  • neurite_to_mesh() – converts neurite curves to mesh

  • neurite_twist() – adds twist to neurites

  • neuron_neurites() – combined group for a single neuron including its outgoing neurites

  • position_global() – returns position in global (world) coordinates

  • remesh() – similar to remesh modifier

  • scale_radial() – applies scaling in radial direction

  • spiketrain() – generates color-sequence for spiketrain encoding from given SNNIB spiketrain texture

Other Objects

Functions

network_container()

creates a geometry nodes node group to style the network container

neurite_bends()

applies random bends to some curve

neurite_branches()

creates a set of branches in random directions originating at Host Mesh

neurite_to_mesh()

converts some input neurite (curve) to a mesh

neurite_twist()

applies twist to some curve

neuron_neurites()

creates template geonodes node group for defining neurons, dendrites, and axons

position_global()

creates a geometry nodes node group that returns position in global (world) coordinates

register()

remesh()

creates a geometry nodes node group similar to remesh modifier

scale_radial()

creates a geometry nodes node group that scales input geometry radially

spiketrain()

creates a geometry nodes node group to generate colors for spiketrain

unregister()

snnib.blender.geo_nodes.network_container()[source]

creates a geometry nodes node group to style the network container

  • converts to wireframe

Parameters

Raises

Returns

Dependencies
  • bpy

  • logging

snnib.blender.geo_nodes.neurite_bends()[source]

applies random bends to some curve

  • controlled via noise texture

Parameters

Raises

Returns

Dependencies
  • bpy

  • logging

snnib.blender.geo_nodes.neurite_branches()[source]

creates a set of branches in random directions originating at Host Mesh

  • used to procedurally generate outgoing non-connections

Parameters

Raises

Returns

Dependencies
  • bpy

  • logging

snnib.blender.geo_nodes.neurite_to_mesh()[source]

converts some input neurite (curve) to a mesh

  • applies thickness to neurite

Parameters

Raises

Returns

Dependencies
  • bpy

  • logging

snnib.blender.geo_nodes.neurite_twist()[source]

applies twist to some curve

Parameters

Raises

Returns

Dependencies
  • bpy

  • logging

snnib.blender.geo_nodes.neuron_neurites()[source]

creates template geonodes node group for defining neurons, dendrites, and axons

  • this group is used to make created networks customizable in an intuitive, procedual manner

  • contains all basic tweakable parameters to customize the look of neurons in the SNNIB network

Parameters

Raises

Returns

Dependencies
  • bpy

  • logging

snnib.blender.geo_nodes.position_global()[source]

creates a geometry nodes node group that returns position in global (world) coordinates

  • useful for defining one GeoNodes modifier and applying it to different objects scattered throughout the scene
    • i.e., small random variations in each neuron

Parameters

Raises

Returns

Dependencies
  • bpy

  • logging

snnib.blender.geo_nodes.remesh()[source]

creates a geometry nodes node group similar to remesh modifier

  • achieved by voxelizing the input

Parameters

Raises

Returns

Dependencies
  • bpy

  • logging

snnib.blender.geo_nodes.scale_radial()[source]

creates a geometry nodes node group that scales input geometry radially

Parameters

Raises

Returns

Dependencies
  • bpy

  • logging

snnib.blender.geo_nodes.spiketrain()[source]

creates a geometry nodes node group to generate colors for spiketrain

  • result stored as attribute to be used downstream for texturing

Parameters

Raises

Returns

Dependencies
  • bpy

  • logging