Method SaveMesh
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
SaveMesh(string, InputArray, IEnumerable<Mat>, InputArray, InputArray, InputArray)
Saves a mesh to a file (.ply / .obj). The file format is chosen by the extension.
public static void SaveMesh(string filename, InputArray vertices, IEnumerable<Mat> indices, InputArray normals = default, InputArray colors = default, InputArray texCoords = default)
Parameters
filenamestringName of the file.
verticesInputArrayVertex coordinates, each value contains 3 floats.
indicesIEnumerable<Mat>Per-face list of vertex indices; each element is a vector of ints.
normalsInputArrayPer-vertex normals, each value contains 3 floats (optional).
colorsInputArrayPer-vertex colors, each value contains 3 floats (optional).
texCoordsInputArrayPer-vertex texture coordinates, each value contains 2 or 3 floats (optional).