OpenCV  3.3.1
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 Enumeration Documentation

§ anonymous enum

anonymous enum
Enumerator
LOAD_AUTO 
LOAD_PLY 
LOAD_OBJ 

Member Function Documentation

§ load()

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

§ cloud

Mat cv::viz::Mesh::cloud

§ colors

Mat cv::viz::Mesh::colors

§ normals

Mat cv::viz::Mesh::normals

§ polygons

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.

§ tcoords

Mat cv::viz::Mesh::tcoords

§ texture

Mat cv::viz::Mesh::texture

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