Using Workbench Command

Workbench Command is a set of command-line tools that can be used to perform simple and complex operations within Connectome Workbench.

Full Documentation:

Documentation Home
COMPUTE DISTANCE BETWEEN CORRESPONDING VERTICES
   wb_command -surface-to-surface-3d-distance
      <surface-comp> - the surface to compare to the reference
      <surface-ref> - the surface to use as the reference
      <dists-out> - output - the output distances

      [-vectors] - output the displacement vectors
         <vectors-out> - output - the output vectors

      Computes the vector difference between the vertices of each surface with
      the same index, as (comp - ref), and output the magnitudes, and
      optionally the displacement vectors.