Usage: AimsTMSCone.py [options]

Creates a cone or other mesh representing the TMS active zone at the specified
target position along the head mesh

Options:
  -h, --help            show this help message and exit
  -i HEADMESHFILE, --input=HEADMESHFILE
                        input head mesh
  -o CONEFILE, --output=CONEFILE
                        output mesh
  -s STIMPOINT, --stimpoint=STIMPOINT
                        stimulation position in mm on head or cortex (3 float
                        numbers)
  -r BASERADIUS, --radius=BASERADIUS
                        stimulation cone base radius
  -d DEPTH, --depth=DEPTH
                        stimulation cone depth
  -n NORMALRADIUS, --normalradius=NORMALRADIUS
                        radius around stimulation point to average normal
                        [optional, default=20]
  -m NORMALMESH, --normalmesh=NORMALMESH
                        output mesh for the normal line (just for
                        visualization purpose) [optional]
  -t TARGETLINEMESH, --targetlinemesh=TARGETLINEMESH
                        output mesh for the target-head projection line, which
                        might be slightly different from the normal. If the
                        target is specified on the head, this line is by
                        defninition the normal. [optional]
  -b BRAIN, --brain=BRAIN
                        brain (or grey/white cortex) mask [optional, -z option
                        needed]
  -c CORTEXVALUE, --cortex=CORTEXVALUE
                        cortex value in grey/white mask image, [default: all
                        non-zero]
  -z STIMZONE, --zone=STIMZONE
                        stimulation zone output filename (.bck) [optional, -b
                        option needed]
  -w WRITERESULTS, --writeresults=WRITERESULTS
                        output text file where to write results (points and
                        directions) [optional]
