DGtal 1.3.0
|
#include <iostream>
#include "DGtal/base/Common.h"
#include "DGtal/helpers/StdDefs.h"
#include "DGtal/io/writers/MeshWriter.h"
#include "DGtal/shapes/Mesh.h"
Go to the source code of this file.
Functions | |
bool | testMesh () |
bool | testMeshGeneration () |
bool | testVisualTubularMesh () |
int | main (int argc, char **argv) |
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Functions for testing class 3DMeshFromPoints.
This file is part of the DGtal library.
Definition in file testMesh.cpp.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 404 of file testMesh.cpp.
References DGtal::Trace::beginBlock(), DGtal::Trace::emphase(), DGtal::Trace::endBlock(), DGtal::Trace::info(), testMesh(), testMeshGeneration(), testVisualTubularMesh(), and DGtal::trace.
bool testMesh | ( | ) |
Test the mesh object construction.
Definition at line 51 of file testMesh.cpp.
References DGtal::Mesh< TPoint >::addQuadFace(), DGtal::Mesh< TPoint >::addTriangularFace(), DGtal::Mesh< TPoint >::addVertex(), DGtal::Trace::beginBlock(), DGtal::Mesh< TPoint >::changeScale(), DGtal::Trace::endBlock(), DGtal::Mesh< TPoint >::faceBegin(), DGtal::Mesh< TPoint >::faceEnd(), DGtal::Mesh< TPoint >::getBoundingBox(), DGtal::Mesh< TPoint >::getFace(), DGtal::Mesh< TPoint >::getFaceBarycenter(), DGtal::Mesh< TPoint >::getFaceColor(), DGtal::Mesh< TPoint >::getVertex(), DGtal::Trace::info(), DGtal::Mesh< TPoint >::invertVertexFaceOrder(), DGtal::Mesh< TPoint >::nbFaces(), DGtal::Mesh< TPoint >::nbVertex(), DGtal::Mesh< TPoint >::quadToTriangularFaces(), DGtal::Color::Red, DGtal::Mesh< TPoint >::removeFaces(), DGtal::Mesh< TPoint >::setFaceColor(), DGtal::Mesh< TPoint >::subDivideTriangularFaces(), DGtal::trace, DGtal::Mesh< TPoint >::vertexBegin(), DGtal::Mesh< TPoint >::vertexEnd(), and DGtal::Color::White.
Referenced by main().
bool testMeshGeneration | ( | ) |
Test mesh generation from static fonctions.
[testMeshCreateSkeleton]
[testMeshCreateSkeleton]
[testMeshCreateTubeMesh]
[testMeshCreateTubeMesh]
[testMeshCreateHeightSequence]
[testMeshCreateHeightSequence]
[testMeshCreateSequenceMesh]
[testMeshCreateSequenceMesh]
[testMeshExport]
[testMeshExport]
Definition at line 221 of file testMesh.cpp.
References DGtal::Trace::beginBlock(), DGtal::Color::Blue, DGtal::Mesh< TPoint >::createMeshFromHeightSequence(), DGtal::Mesh< TPoint >::createTubularMesh(), DGtal::Trace::endBlock(), DGtal::MeshWriter< TPoint >::export2OFF(), DGtal::Color::Green, DGtal::Trace::info(), DGtal::Mesh< TPoint >::nbFaces(), DGtal::Mesh< TPoint >::nbVertex(), DGtal::trace, and DGtal::Color::Yellow.
Referenced by main().
bool testVisualTubularMesh | ( | ) |
Test the mesh object construction.
Definition at line 311 of file testMesh.cpp.
References DGtal::Trace::beginBlock(), DGtal::Color::Blue, DGtal::Mesh< TPoint >::createTubularMesh(), DGtal::Trace::endBlock(), DGtal::Trace::info(), DGtal::Mesh< TPoint >::nbFaces(), and DGtal::trace.
Referenced by main().