Read a 3D mesh by inferring format from file name. Usage: [V, F] = readMesh(FILENAME) Read the data stored in file FILENAME and return the vertex and face arrays as NV-by-3 array and NF-by-N array respectively, where NV is the number of vertices and NF is the number of faces. MESH = readMesh(FILENAME) Read the data stored in file FILENAME and return the mesh into a struct with fields 'vertices' and 'faces'. Example mesh = readMesh('apple.ply'); figure; drawMesh(mesh); view([180 -70]); axis equal; See also meshes3d, writeMesh, readMesh_off, readMesh_ply, readMesh_stl
Package: matgeom