lib module

simplify function

#let simplify(
  cell,
  tolerance: none,
  preserve-type-changes: true,
  preserve-soma: true,
  protected-nodes: (),
)

Documentation

Topology-preserving 3D Ramer–Douglas–Peucker simplification.

Parameters

  • cell (dictionary): The source morphology.
  • tolerance (int, float): Maximum spatial deviation in cell.units. Default: none.
  • preserve-type-changes (bool): Whether nodes at SWC type transitions must be retained. Default: true.
  • preserve-soma (bool): Whether soma nodes must be retained. Default: true.
  • protected-nodes (array): Additional integer node IDs that must be retained. Default: ().

Returns

dictionary

Defined in lib.typ:347.

Source

Module
lib
Defined in
lib.typ:347
Source
View source