surf2patch
SURF2PATCH Convert surface data to patch faces, vertices and colours. FVC = SURF2PATCH (H), SURF2PATCH (Z), SURF2PATCH (Z, C), SURF2PATCH (X, Y, Z), SURF2PATCH (X, Y, Z, C) return a struct with fields faces and vertices, plus facevertexcdata when colour is given. A trailing option starting with 't' asks for triangles, not quads. [F, V, C] = SURF2PATCH (...) returns the parts separately.