Skip to content

surf2patch

matlab_compat · scripts/matlab_compat/surf2patch.m

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.