added support of texture for mesh
This commit is contained in:
@@ -98,6 +98,11 @@ namespace cv
|
||||
CV_EXPORTS void writeCloud(const String& file, InputArray cloud, InputArray colors = noArray(), InputArray normals = noArray(), bool binary = false);
|
||||
CV_EXPORTS Mat readCloud (const String& file, OutputArray colors = noArray(), OutputArray normals = noArray());
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||
/// Read mesh. Only ply format is supported now
|
||||
|
||||
CV_EXPORTS Mesh readMesh (const String& file);
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||
/// Read/write poses and trajectories
|
||||
|
||||
|
@@ -113,6 +113,8 @@ namespace cv
|
||||
//! where n is the number of points in the poligon, and id is a zero-offset index into an associated cloud.
|
||||
Mat polygons;
|
||||
|
||||
Mat texture, tcoords;
|
||||
|
||||
//! Loads mesh from a given ply file
|
||||
static Mesh load(const String& file);
|
||||
};
|
||||
|
Reference in New Issue
Block a user