DGtal 1.4.0
|
#include <iostream>
#include <queue>
#include "DGtal/base/Common.h"
#include "DGtal/shapes/Shapes.h"
#include "DGtal/shapes/SurfaceMesh.h"
#include "DGtal/helpers/StdDefs.h"
#include "DGtal/helpers/Shortcuts.h"
#include "DGtal/images/ImageContainerBySTLVector.h"
#include "DGtal/io/writers/SurfaceMeshWriter.h"
#include "DGtal/geometry/volumes/TangencyComputer.h"
Go to the source code of this file.
Typedefs | |
typedef Z3i::Space | Space |
typedef Z3i::KSpace | KSpace |
typedef Z3i::Domain | Domain |
typedef Z3i::SCell | SCell |
typedef Shortcuts< KSpace > | SH3 |
typedef Space::Point | Point |
typedef Space::RealPoint | RealPoint |
typedef Space::RealVector | RealVector |
typedef Space::Vector | Vector |
typedef SurfaceMesh< RealPoint, RealVector > | SMesh |
typedef SurfaceMeshWriter< RealPoint, RealVector > | SMeshWriter |
typedef SMesh::Index | Index |
typedef SMesh::Vertices | Vertices |
Functions | |
void | saveToObj (const std::string &output, const SMesh &surfmesh, const std::vector< double > &vvalues, int nb_isolines_per_unit=10, const double thickness=0.1) |
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/.
An example file named fullConvexitySphereGeodesics
This file is part of the DGtal library.
Definition in file fullConvexitySphereGeodesics.cpp.
typedef Z3i::Domain Domain |
Definition at line 108 of file fullConvexitySphereGeodesics.cpp.
typedef SMesh::Index Index |
Definition at line 117 of file fullConvexitySphereGeodesics.cpp.
typedef Z3i::KSpace KSpace |
Definition at line 107 of file fullConvexitySphereGeodesics.cpp.
typedef Space::Point Point |
Definition at line 111 of file fullConvexitySphereGeodesics.cpp.
typedef Space::RealPoint RealPoint |
Definition at line 112 of file fullConvexitySphereGeodesics.cpp.
typedef Space::RealVector RealVector |
Definition at line 113 of file fullConvexitySphereGeodesics.cpp.
typedef Z3i::SCell SCell |
Definition at line 109 of file fullConvexitySphereGeodesics.cpp.
Definition at line 110 of file fullConvexitySphereGeodesics.cpp.
typedef SurfaceMesh< RealPoint, RealVector > SMesh |
Definition at line 115 of file fullConvexitySphereGeodesics.cpp.
typedef SurfaceMeshWriter< RealPoint, RealVector > SMeshWriter |
Definition at line 116 of file fullConvexitySphereGeodesics.cpp.
typedef Z3i::Space Space |
Definition at line 106 of file fullConvexitySphereGeodesics.cpp.
typedef Space::Vector Vector |
Definition at line 114 of file fullConvexitySphereGeodesics.cpp.
typedef SMesh::Vertices Vertices |
Definition at line 118 of file fullConvexitySphereGeodesics.cpp.
int main | ( | int | argc, |
char ** | argv ) |
Definition at line 158 of file fullConvexitySphereGeodesics.cpp.
References DGtal::Trace::beginBlock(), binary_image, DGtal::Shortcuts< TKSpace >::defaultParameters(), DGtal::Trace::endBlock(), DGtal::Shortcuts< TKSpace >::getCellEmbedder(), DGtal::Shortcuts< TKSpace >::getKSpace(), DGtal::Shortcuts< TKSpace >::getPointelRange(), DGtal::Trace::info(), DGtal::SurfaceMesh< TRealPoint, TRealVector >::init(), K, DGtal::KhalimskySpaceND< dim, TInteger >::lowerBound(), DGtal::Shortcuts< TKSpace >::makeBinaryImage(), DGtal::Shortcuts< TKSpace >::makeDigitalSurface(), DGtal::Shortcuts< TKSpace >::makeDigitizedImplicitShape3D(), DGtal::Shortcuts< TKSpace >::makeImplicitShape3D(), saveToObj(), surface, DGtal::trace, DGtal::KhalimskySpaceND< dim, TInteger >::uCoords(), and DGtal::KhalimskySpaceND< dim, TInteger >::upperBound().
void saveToObj | ( | const std::string & | output, |
const SMesh & | surfmesh, | ||
const std::vector< double > & | vvalues, | ||
int | nb_isolines_per_unit = 10, | ||
const double | thickness = 0.1 ) |
Definition at line 120 of file fullConvexitySphereGeodesics.cpp.
References DGtal::Trace::beginBlock(), DGtal::Color::Black, DGtal::SurfaceMesh< TRealPoint, TRealVector >::computeFaceValuesFromVertexValues(), DGtal::Trace::endBlock(), DGtal::Shortcuts< TKSpace >::getColorMap(), DGtal::Trace::info(), DGtal::SurfaceMesh< TRealPoint, TRealVector >::nbFaces(), DGtal::Color::Red, surfmesh, DGtal::trace, DGtal::SurfaceMeshWriter< TRealPoint, TRealVector >::writeIsoLinesOBJ(), and DGtal::SurfaceMeshWriter< TRealPoint, TRealVector >::writeOBJ().
Referenced by main().