Method LoadMesh
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
LoadMesh(string, OutputArray, out Mat[], OutputArray, OutputArray, OutputArray)
Loads a mesh from a file (.ply / .obj). The file format is chosen by the extension.
public static void LoadMesh(string filename, OutputArray vertices, out Mat[] indices, OutputArray normals = default, OutputArray colors = default, OutputArray texCoords = default)
Parameters
filenamestringName of the file.
verticesOutputArrayOutput vertex coordinates, each value contains 3 floats.
indicesMat[]Output per-face list of vertex indices; each element is a vector of ints.
normalsOutputArrayOutput per-vertex normals, each value contains 3 floats (optional).
colorsOutputArrayOutput per-vertex colors, each value contains 3 floats (optional).
texCoordsOutputArrayOutput per-vertex texture coordinates, each value contains 2 or 3 floats (optional).