Object for computing distance along a surface mesh.
Adapted from Nikolaas Oosterhof’s code in PyMVPA.
-
__init__
(self, verts, faces)[source]
Initialize the measure object and cache vertex neighbors.
- Parameters
- vertsn x 3 float array
Array of vertex coordinates. Vertices will be identifed by their
row index in this array.
- facesn x 3 int array
Array of triangles defined by triples of vertex ids.