OpenCV  2.4.13.3
Open Source Computer Vision
cv::Mesh3D Class Reference

#include <contrib.hpp>

Classes

struct  EmptyMeshException
 

Public Member Functions

 Mesh3D ()
 
 Mesh3D (const vector< Point3f > &vtx)
 
 ~Mesh3D ()
 
void buildOctree ()
 
void clearOctree ()
 
float estimateResolution (float tryRatio=0.1f)
 
void computeNormals (float normalRadius, int minNeighbors=20)
 
void computeNormals (const vector< int > &subset, float normalRadius, int minNeighbors=20)
 
void writeAsVrml (const String &file, const vector< Scalar > &colors=vector< Scalar >()) const
 

Public Attributes

vector< Point3fvtx
 
vector< Point3fnormals
 
float resolution
 
Octree octree
 

Static Public Attributes

static const Point3f allzero
 

Constructor & Destructor Documentation

§ Mesh3D() [1/2]

cv::Mesh3D::Mesh3D ( )

§ Mesh3D() [2/2]

cv::Mesh3D::Mesh3D ( const vector< Point3f > &  vtx)

§ ~Mesh3D()

cv::Mesh3D::~Mesh3D ( )

Member Function Documentation

§ buildOctree()

void cv::Mesh3D::buildOctree ( )

§ clearOctree()

void cv::Mesh3D::clearOctree ( )

§ computeNormals() [1/2]

void cv::Mesh3D::computeNormals ( float  normalRadius,
int  minNeighbors = 20 
)

§ computeNormals() [2/2]

void cv::Mesh3D::computeNormals ( const vector< int > &  subset,
float  normalRadius,
int  minNeighbors = 20 
)

§ estimateResolution()

float cv::Mesh3D::estimateResolution ( float  tryRatio = 0.1f)

§ writeAsVrml()

void cv::Mesh3D::writeAsVrml ( const String file,
const vector< Scalar > &  colors = vector< Scalar >() 
) const

Member Data Documentation

§ allzero

const Point3f cv::Mesh3D::allzero
static

§ normals

vector<Point3f> cv::Mesh3D::normals

§ octree

Octree cv::Mesh3D::octree

§ resolution

float cv::Mesh3D::resolution

§ vtx

vector<Point3f> cv::Mesh3D::vtx

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