![]() |
OpenCV
3.1.0
Open Source Computer Vision
|
This class wraps mesh attributes, and it can load a mesh from a ply file. : More...
#include "types.hpp"
Public Types | |
| enum | { LOAD_AUTO = 0, LOAD_PLY = 1, LOAD_OBJ = 2 } |
Static Public Member Functions | |
| static Mesh | load (const String &file, int type=LOAD_PLY) |
| Loads a mesh from a ply or a obj file. More... | |
Public Attributes | |
| Mat | cloud |
| Mat | colors |
| Mat | normals |
| Mat | polygons |
| Mat | tcoords |
| Mat | texture |
This class wraps mesh attributes, and it can load a mesh from a ply file. :
Loads a mesh from a ply or a obj file.
| file | File name |
| type | File type (for now only PLY and OBJ are supported) |
File type** can be one of the following:
| Mat cv::viz::Mesh::cloud |
| Mat cv::viz::Mesh::colors |
| Mat cv::viz::Mesh::normals |
| Mat cv::viz::Mesh::polygons |
Raw integer list of the form: (n,id1,id2,...,idn, n,id1,id2,...,idn, ...) where n is the number of points in the poligon, and id is a zero-offset index into an associated cloud.
| Mat cv::viz::Mesh::tcoords |
| Mat cv::viz::Mesh::texture |
1.8.9.1