DGtal 1.4.0
|
#include <iostream>
#include <string>
#include <DGtal/base/Common.h>
#include <DGtal/helpers/StdDefs.h>
#include <DGtal/helpers/Shortcuts.h>
#include <DGtal/helpers/ShortcutsGeometry.h>
#include <DGtal/shapes/SurfaceMesh.h>
#include <DGtal/geometry/surfaces/DigitalSurfaceRegularization.h>
#include <DGtal/dec/PolygonalCalculus.h>
#include <DGtal/math/linalg/DirichletConditions.h>
#include <polyscope/polyscope.h>
#include <polyscope/surface_mesh.h>
#include <polyscope/point_cloud.h>
#include <Eigen/Dense>
#include <Eigen/Sparse>
#include "ConfigExamples.h"
Go to the source code of this file.
Typedefs | |
typedef Shortcuts< Z3i::KSpace > | SH3 |
typedef ShortcutsGeometry< Z3i::KSpace > | SHG3 |
typedef SurfaceMesh< RealPoint, RealVector > | SurfMesh |
typedef SurfMesh::Face | Face |
typedef SurfMesh::Vertex | Vertex |
Functions | |
double | phiVertex (const Vertex v) |
PolygonalCalculus< SH3::RealPoint, SH3::RealVector >::Vector | phi (const Face f) |
void | initPhi () |
void | initQuantities () |
void | initQuantitiesCached () |
void | computeLaplace () |
void | myCallback () |
int | main () |
Variables | |
polyscope::SurfaceMesh * | psMesh |
SurfMesh | surfmesh |
float | scale = 0.1 |
PolygonalCalculus< SH3::RealPoint, SH3::RealVector >::Vector | phiEigen |
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/.
This file is part of the DGtal library.
Definition in file dgtalCalculus-bunny.cpp.
typedef SurfMesh::Face Face |
Definition at line 53 of file dgtalCalculus-bunny.cpp.
typedef Shortcuts<Z3i::KSpace> SH3 |
Definition at line 49 of file dgtalCalculus-bunny.cpp.
typedef ShortcutsGeometry<Z3i::KSpace> SHG3 |
Definition at line 50 of file dgtalCalculus-bunny.cpp.
typedef SurfaceMesh< RealPoint, RealVector > SurfMesh |
Definition at line 52 of file dgtalCalculus-bunny.cpp.
typedef SurfMesh::Vertex Vertex |
Definition at line 54 of file dgtalCalculus-bunny.cpp.
void computeLaplace | ( | ) |
Definition at line 167 of file dgtalCalculus-bunny.cpp.
References DGtal::Trace::beginBlock(), calculus, DGtal::Trace::endBlock(), DGtal::PolygonalCalculus< TRealPoint, TRealVector >::globalLaplaceBeltrami(), DGtal::SurfaceMesh< TRealPoint, TRealVector >::nbVertices(), psMesh, surfmesh, and DGtal::trace.
Referenced by myCallback().
void initPhi | ( | ) |
Definition at line 83 of file dgtalCalculus-bunny.cpp.
References DGtal::SurfaceMesh< TRealPoint, TRealVector >::nbVertices(), phiEigen, phiVertex(), psMesh, and surfmesh.
Referenced by myCallback().
void initQuantities | ( | ) |
Definition at line 91 of file dgtalCalculus-bunny.cpp.
References DGtal::Trace::beginBlock(), calculus, DGtal::PolygonalCalculus< TRealPoint, TRealVector >::coGradient(), DGtal::Trace::endBlock(), DGtal::PolygonalCalculus< TRealPoint, TRealVector >::faceArea(), DGtal::PolygonalCalculus< TRealPoint, TRealVector >::faceNormalAsDGtalVector(), DGtal::PolygonalCalculus< TRealPoint, TRealVector >::gradient(), DGtal::SurfaceMesh< TRealPoint, TRealVector >::nbFaces(), phi(), psMesh, surfmesh, DGtal::trace, and DGtal::PolygonalCalculus< TRealPoint, TRealVector >::vectorArea().
Referenced by myCallback().
void initQuantitiesCached | ( | ) |
Definition at line 129 of file dgtalCalculus-bunny.cpp.
References DGtal::Trace::beginBlock(), calculus, DGtal::PolygonalCalculus< TRealPoint, TRealVector >::coGradient(), DGtal::Trace::endBlock(), DGtal::PolygonalCalculus< TRealPoint, TRealVector >::faceArea(), DGtal::PolygonalCalculus< TRealPoint, TRealVector >::faceNormalAsDGtalVector(), DGtal::PolygonalCalculus< TRealPoint, TRealVector >::gradient(), DGtal::SurfaceMesh< TRealPoint, TRealVector >::nbFaces(), phi(), psMesh, surfmesh, DGtal::trace, and DGtal::PolygonalCalculus< TRealPoint, TRealVector >::vectorArea().
Referenced by myCallback().
int main | ( | void | ) |
Definition at line 224 of file dgtalCalculus-bunny.cpp.
References binary_image, DGtal::SurfaceMesh< TRealPoint, TRealVector >::computeNonManifoldEdges(), DGtal::Shortcuts< TKSpace >::defaultParameters(), DGtal::ShortcutsGeometry< TKSpace >::defaultParameters(), DGtal::Shortcuts< TKSpace >::getKSpace(), K, DGtal::Shortcuts< TKSpace >::makeBinaryImage(), DGtal::Shortcuts< TKSpace >::makeDigitalSurface(), DGtal::Shortcuts< TKSpace >::makePrimalSurfaceMesh(), myCallback(), DGtal::ShortcutsGeometry< TKSpace >::parametersGeometryEstimation(), psMesh, surface, and surfmesh.
void myCallback | ( | ) |
Definition at line 207 of file dgtalCalculus-bunny.cpp.
References computeLaplace(), initPhi(), initQuantities(), and initQuantitiesCached().
Referenced by main().
PolygonalCalculus< SH3::RealPoint, SH3::RealVector >::Vector phi | ( | const Face | f | ) |
Definition at line 69 of file dgtalCalculus-bunny.cpp.
References DGtal::SurfaceMesh< TRealPoint, TRealVector >::incidentVertices(), phiVertex(), and surfmesh.
Referenced by checkFullConvexityCharacterization(), checkProjectionFullConvexity(), initQuantities(), initQuantitiesCached(), DGtal::functors::SphericalHoughNormalVectorEstimator< TSurfel, TEmbedder >::randomRotation(), TEST_CASE(), and TEST_CASE().
double phiVertex | ( | const Vertex | v | ) |
Definition at line 63 of file dgtalCalculus-bunny.cpp.
References DGtal::SurfaceMesh< TRealPoint, TRealVector >::position(), and surfmesh.
Definition at line 60 of file dgtalCalculus-bunny.cpp.
Referenced by initPhi().
polyscope::SurfaceMesh* psMesh |
Definition at line 57 of file dgtalCalculus-bunny.cpp.
Referenced by computeLaplace(), initPhi(), initQuantities(), initQuantitiesCached(), and main().
float scale = 0.1 |
Definition at line 59 of file dgtalCalculus-bunny.cpp.
SurfMesh surfmesh |
Definition at line 58 of file dgtalCalculus-bunny.cpp.
Referenced by DGtal::GeodesicsInHeat< TPolygonalCalculus >::compute(), DGtal::VectorsInHeat< TPolygonalCalculus >::compute(), computeLaplace(), DGtal::functors::EmbedderFromNormalVectors< TRealPoint, TRealVector >::EmbedderFromNormalVectors(), DGtal::GeodesicsInHeat< TPolygonalCalculus >::init(), DGtal::VectorsInHeat< TPolygonalCalculus >::init(), initPhi(), initQuantities(), initQuantitiesCached(), main(), main(), phi(), phiVertex(), saveToObj(), and TEST_CASE().