Go to the documentation of this file.
19 template<
typename HalfedgeGraph >
23 std::cout <<
"Asking to Curvature mesh ! " << std::endl;
25 auto pm =
get(boost::vertex_point, *mesh);
48 double min_nrm_min_curvature, max_nrm_min_curvature, min_nrm_max_curvature,
49 max_nrm_max_curvature;
51 bool value_is_geod =
true;
52 double value_radius = 0.003;
61 min_nrm_min_curvature,
62 max_nrm_min_curvature,
63 min_nrm_max_curvature,
64 max_nrm_max_curvature);
68 std::cout <<
"Curvature mesh, isGeod: " << value_is_geod
69 <<
" - radius: " << value_radius <<
"." << std::endl;
74 template<
typename MeshT >
80 std::cout <<
"Usage: " << argv[0] <<
" mesh_filename" << std::endl;
83 std::string filename(argv[1]);
91 std::cout <<
"Done." << std::endl;
int test_curvature_filter(int narg, const char **argv)
void curvature(HalfedgeGraph *mesh)
std::map< std::string, boost::any > PMapsContainer
void calculate_curvature(const HalfedgeGraph &g, VertexCurvatureMap &v_cm, const PointMap &pm, const FaceNormalMap &f_nm, bool is_geod, double radius, double &min_nrm_min_curvature, double &max_nrm_min_curvature, double &min_nrm_max_curvature, double &max_nrm_max_curvature, const GeometryTraits >)
Calculate the curvature for a mesh.
void read_mesh(const std::string &filename, FEVV::CGALPointSet &g, PMapsContainer &pmaps, bool=false)
Load mesh from file.
Vertex_pmap_traits< MeshT, ValueT >::pmap_type make_vertex_property_map(const MeshT &m)
void calculate_face_normals(const HalfedgeGraph &g, const PointMap &pm, FaceNormalMap fnm, const GeometryTraits >)
Calculate "some" normal of all the faces of the considered mesh and populate the argument provided Fa...
boost::property_map< FEVV::DataStructures::AIF::AIFMesh, boost::vertex_index_t >::const_type get(const boost::vertex_index_t &, const FEVV::DataStructures::AIF::AIFMesh &)
Returns the vertex index property map of the mesh.
This class represents an AIF structure. AIF structure can deal with both manifold and non-manifold su...
PMap_traits< PropertyT, MeshT >::pmap_type make_property_map(PropertyT, const MeshT &m)