Workbench Command is a set of command-line tools that can be used to perform simple and complex operations within Connectome Workbench.
COMPUTE SIGNED DISTANCE FROM ONE SURFACE TO ANOTHER wb_command -signed-distance-to-surface <surface-comp> - the comparison surface to measure the signed distance on <surface-ref> - the reference surface that defines the signed distance function <metric> - output - the output metric [-winding] - winding method for point inside surface test <method> - name of the method (default EVEN_ODD) Compute the signed distance function of the reference surface at every vertex on the comparison surface. NOTE: this relation is NOT symmetric, the line from a vertex to the closest point on the 'ref' surface (the one that defines the signed distance function) will only align with the normal of the 'ref' surface. Valid specifiers for winding methods are as follows: EVEN_ODD (default) NEGATIVE NONZERO NORMALS The NORMALS method uses the normals of triangles and edges, or the closest triangle hit by a ray from the point. This method may be slightly faster, but is only reliable for a closed surface that does not cross through itself. All other methods count entry (positive) and exit (negative) crossings of a vertical ray from the point, then counts as inside if the total is odd, negative, or nonzero, respectively.