DGtal 1.4.2
|
#include <iostream>
#include <algorithm>
#include "DGtal/base/Common.h"
#include "ConfigTest.h"
#include "DGtalCatch.h"
#include "DGtal/helpers/StdDefs.h"
#include "DGtal/kernel/PointVector.h"
#include "DGtal/graph/CUndirectedSimpleGraph.h"
#include "DGtal/graph/BreadthFirstVisitor.h"
#include "DGtal/shapes/TriangulatedSurface.h"
#include "DGtal/shapes/MeshHelpers.h"
Go to the source code of this file.
Typedefs | |
using | RealPoint = SH3::RealPoint |
typedef TriangulatedSurface< RealPoint > | TriMesh |
typedef TriMesh::VertexRange | VertexRange |
typedef TriMesh::ArcRange | ArcRange |
typedef TriMesh::Arc | ArcT |
typedef TriMesh::Face | Face |
typedef TriMesh::Vertex | Vertex |
typedef TriMesh::PositionsMap | PositionsMap |
Functions | |
TriMesh | makeTwoTriangles () |
SCENARIO ("TriangulatedSurface< RealPoint3 > build tests", "[trisurf][build]") | |
SCENARIO ("TriangulatedSurface< RealPoint3 > flip tests", "[trisurf][flip]") | |
SCENARIO ("TriangulatedSurface< RealPoint3 > concept check tests", "[trisurf][concepts]") | |
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 TriangulatedSurface.
This file is part of the DGtal library.
Definition in file testTriangulatedSurface.cpp.
typedef TriMesh::ArcRange ArcRange |
Definition at line 54 of file testTriangulatedSurface.cpp.
typedef TriMesh::Arc ArcT |
Definition at line 55 of file testTriangulatedSurface.cpp.
typedef SurfMesh::Face Face |
Definition at line 56 of file testTriangulatedSurface.cpp.
typedef TriMesh::PositionsMap PositionsMap |
Definition at line 58 of file testTriangulatedSurface.cpp.
typedef SurfMesh::RealPoint RealPoint = SH3::RealPoint |
Definition at line 51 of file testTriangulatedSurface.cpp.
typedef TriangulatedSurface< RealPoint > TriMesh |
Definition at line 52 of file testTriangulatedSurface.cpp.
typedef SurfMesh::Vertex Vertex |
Definition at line 57 of file testTriangulatedSurface.cpp.
typedef TriMesh::VertexRange VertexRange |
Definition at line 53 of file testTriangulatedSurface.cpp.
TriMesh makeTwoTriangles | ( | ) |
Definition at line 60 of file testTriangulatedSurface.cpp.
References DGtal::TriangulatedSurface< TPoint >::addTriangle(), DGtal::TriangulatedSurface< TPoint >::addVertex(), and DGtal::TriangulatedSurface< TPoint >::build().
Referenced by SCENARIO(), and SCENARIO().
SCENARIO | ( | "TriangulatedSurface< RealPoint3 > build tests" | , |
"" | [trisurf][build] ) |
Definition at line 73 of file testTriangulatedSurface.cpp.
References DGtal::TriangulatedSurface< TPoint >::allBoundaryArcs(), DGtal::TriangulatedSurface< TPoint >::allBoundaryVertices(), DGtal::TriangulatedSurface< TPoint >::arc(), DGtal::TriangulatedSurface< TPoint >::arcsAroundFace(), DGtal::TriangulatedSurface< TPoint >::begin(), DGtal::BreadthFirstVisitor< TGraph, TMarkSet >::current(), DGtal::TriangulatedSurface< TPoint >::degree(), DGtal::TriangulatedSurface< TPoint >::end(), DGtal::TriangulatedSurface< TPoint >::Euler(), DGtal::BreadthFirstVisitor< TGraph, TMarkSet >::expand(), DGtal::TriangulatedSurface< TPoint >::faceAroundArc(), DGtal::BreadthFirstVisitor< TGraph, TMarkSet >::finished(), GIVEN(), DGtal::TriangulatedSurface< TPoint >::head(), makeTwoTriangles(), DGtal::MeshHelpers::mesh2TriangulatedSurface(), DGtal::TriangulatedSurface< TPoint >::nbArcs(), DGtal::TriangulatedSurface< TPoint >::nbEdges(), DGtal::Mesh< TPoint >::nbFaces(), DGtal::TriangulatedSurface< TPoint >::nbFaces(), DGtal::Mesh< TPoint >::nbVertex(), DGtal::TriangulatedSurface< TPoint >::nbVertices(), DGtal::TriangulatedSurface< TPoint >::positions(), REQUIRE(), DGtal::TriangulatedSurface< TPoint >::size(), DGtal::MeshHelpers::triangulatedSurface2Mesh(), and DGtal::TriangulatedSurface< TPoint >::verticesAroundFace().
SCENARIO | ( | "TriangulatedSurface< RealPoint3 > concept check tests" | , |
"" | [trisurf][concepts] ) |
Definition at line 216 of file testTriangulatedSurface.cpp.
SCENARIO | ( | "TriangulatedSurface< RealPoint3 > flip tests" | , |
"" | [trisurf][flip] ) |
Definition at line 183 of file testTriangulatedSurface.cpp.
References DGtal::TriangulatedSurface< TPoint >::arc(), DGtal::TriangulatedSurface< TPoint >::flip(), GIVEN(), DGtal::TriangulatedSurface< TPoint >::isFlippable(), makeTwoTriangles(), DGtal::TriangulatedSurface< TPoint >::nbArcs(), DGtal::TriangulatedSurface< TPoint >::nbEdges(), DGtal::TriangulatedSurface< TPoint >::nbFaces(), DGtal::TriangulatedSurface< TPoint >::nbVertices(), REQUIRE(), and DGtal::TriangulatedSurface< TPoint >::verticesOfFacesAroundArc().