OpenCV  3.1.0
Open Source Computer Vision
Public Types | Static Public Member Functions | Public Attributes | List of all members
cv::viz::Mesh Class Reference

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
 

Detailed Description

This class wraps mesh attributes, and it can load a mesh from a ply file. :

Member Function Documentation

static Mesh cv::viz::Mesh::load ( const String file,
int  type = LOAD_PLY 
)
static

Loads a mesh from a ply or a obj file.

Parameters
fileFile name
typeFile type (for now only PLY and OBJ are supported)

File type** can be one of the following:

  • LOAD_PLY
  • LOAD_OBJ

Member Data Documentation

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

The documentation for this class was generated from the following file: