Class cv::viz::Mesh#

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

Collaboration diagram for cv::viz::Mesh:

Public Types#

enum cv::viz::Mesh {
    cv::viz::LOAD_AUTO = 0,
    cv::viz::LOAD_PLY = 1,
    cv::viz::LOAD_OBJ = 2
}

Detailed Description#

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

Member Enumeration Documentation#

enum Mesh

LOAD_AUTO

LOAD_PLY

LOAD_OBJ

Constructor & Destructor Documentation#

Mesh()#

cv::viz::Mesh::Mesh()

Python:

cv.viz.Mesh() -> <viz_Mesh object>

Member Function Documentation#

load()#

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

Loads a mesh from a ply or a obj file.

File type** can be one of the following:

  • LOAD_PLY

  • LOAD_OBJ

Parameters

  • file — File name

  • type — File type (for now only PLY and OBJ are supported)

Member Data Documentation#

cloud#

Mat cv::viz::Mesh::cloud

point coordinates of type CV_32FC3 or CV_64FC3 with only 1 row

colors#

Mat cv::viz::Mesh::colors

point color of type CV_8UC3 or CV_8UC4 with only 1 row

normals#

Mat cv::viz::Mesh::normals

point normals of type CV_32FC3, CV_32FC4, CV_64FC3 or CV_64FC4 with only 1 row

polygons#

Mat cv::viz::Mesh::polygons

CV_32SC1 with only 1 row.

Raw integer list of the form: (n,id1,id2,…,idn, n,id1,id2,…,idn, …) where n is the number of points in the polygon, and id is a zero-offset index into an associated cloud.

tcoords#

Mat cv::viz::Mesh::tcoords

CV_32FC2 or CV_64FC2 with only 1 row.

texture#

Mat cv::viz::Mesh::texture

Source file#

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