Some documentation and cleanup for the add_face functions.
Unittests for add_face on triangle and quad meshes. git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@600 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
#include "unittests_decimater.hh"
|
||||
#include "unittests_trimesh_normal_calculations.hh"
|
||||
#include "unittests_trimesh_others.hh"
|
||||
#include "unittests_add_face.hh"
|
||||
|
||||
int main(int _argc, char** _argv) {
|
||||
|
||||
|
||||
@@ -5,12 +5,15 @@
|
||||
#include <OpenMesh/Core/IO/MeshIO.hh>
|
||||
|
||||
#include <OpenMesh/Core/Mesh/TriMesh_ArrayKernelT.hh>
|
||||
#include <OpenMesh/Core/Mesh/PolyMesh_ArrayKernelT.hh>
|
||||
|
||||
struct CustomTraits : public OpenMesh::DefaultTraits {
|
||||
};
|
||||
|
||||
typedef OpenMesh::TriMesh_ArrayKernelT<CustomTraits> Mesh;
|
||||
|
||||
typedef OpenMesh::PolyMesh_ArrayKernelT<CustomTraits> PolyMesh;
|
||||
|
||||
/*
|
||||
* Simple test setting.
|
||||
*/
|
||||
@@ -35,4 +38,30 @@ class OpenMeshBase : public testing::Test {
|
||||
Mesh mesh_;
|
||||
};
|
||||
|
||||
/*
|
||||
* Simple test setting.
|
||||
*/
|
||||
|
||||
class OpenMeshBasePoly : public testing::Test {
|
||||
|
||||
protected:
|
||||
|
||||
// This function is called before each test is run
|
||||
virtual void SetUp() {
|
||||
|
||||
// Do some initial stuff with the member data here...
|
||||
}
|
||||
|
||||
// This function is called after all tests are through
|
||||
virtual void TearDown() {
|
||||
|
||||
// Do some final stuff with the member data here...
|
||||
}
|
||||
|
||||
// This member will be accessible in all tests
|
||||
PolyMesh mesh_;
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif // INCLUDE GUARD
|
||||
|
||||
Reference in New Issue
Block a user