Go to the documentation of this file.
30 std::cout <<
"Asking to Curvature mesh ! " << std::endl;
32 auto pm =
get(boost::vertex_point, *mesh);
55 double min_nrm_min_curvature, max_nrm_min_curvature, min_nrm_max_curvature,
56 max_nrm_max_curvature;
58 bool value_is_geod =
false;
59 double value_radius = 0.001;
68 min_nrm_min_curvature,
69 max_nrm_min_curvature,
70 min_nrm_max_curvature,
71 max_nrm_max_curvature);
75 std::cout <<
"Curvature mesh, isGeod: " << value_is_geod
76 <<
" - radius: " << value_radius <<
"." << std::endl;
82 main(
int narg,
char **argv)
86 std::cout <<
"Usage: " << argv[0] <<
" mesh_filename" << std::endl;
89 std::string filename(argv[1]);
92 auto m_ptr = reader.
read(filename);
96 std::cout <<
"failed to read file '" << filename << std::endl;
104 std::cout <<
"Done." << std::endl;
int main(int narg, char **argv)
ptr_output read(const std::string &filePath)
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.
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...
This class represents an AIFMesh object reader. An AIFMeshReader reads a mesh file (....
PMap_traits< PropertyT, MeshT >::pmap_type make_property_map(PropertyT, const MeshT &m)
void curvature(FEVV::DataStructures::AIF::AIFMesh *mesh)