Go to the documentation of this file.
23 #ifndef USE_GENERIC_READER_WRITER
54 #ifdef USE_GENERIC_READER_WRITER
61 if(!(pm = in.
read(input_file_path)))
63 std::cout <<
"reading failed";
72 auto pos_pm =
get(boost::vertex_point, m);
74 BarycenterMap barycenters_pm =
77 m, pos_pm, barycenters_pm, 0.2f);
81 m, pos_pm, barycenters_pm, 0.2f);
85 m, pos_pm, barycenters_pm, 0.2f);
88 catch(
const std::exception &e)
90 std::cout <<
"processing failed: " << e.what();
93 #ifdef USE_GENERIC_READER_WRITER
112 std::cout <<
"writing failed";
116 std::cout <<
"Done." << std::endl;
126 std::cout <<
"Usage: " << argv[0]
127 <<
" filename; filename being an off file." << std::endl;
This class represents an AIFMesh object writer. An AIFMeshWriter writes a mesh file (....
void calculate_vertices_one_ring_geometric_laplacian(const FaceGraph &g, const PointMap &pm, CentroidMap geom_laplacians_pm, const typename GeometryTraits::Scalar smoothing_factor, const GeometryTraits >)
Compute geometric laplacians for all vertices and store them in geom_laplacians_pm.
ptr_output read(const std::string &filePath)
static pmap_type create(const MeshT &)
std::map< std::string, boost::any > PMapsContainer
std::string get_file_name(const std::string &file_name)
int main(int narg, char **argv)
AIF specialization. Refer to for concrete usage .
void reposition_vertices(const PropertyGraph &g, PointMap pm, const NewPointMap &smoothed_pm, const GeometryTraits &)
Apply new vertex positions to vertex position property map.
void write(const ptr_input inputMesh, const std::string &filePath)
FEVV::DataStructures::AIF::AIFMesh::ptr_mesh PtrMeshT
void read_mesh(const std::string &filename, FEVV::CGALPointSet &g, PMapsContainer &pmaps, bool=false)
Load mesh from file.
boost::shared_ptr< Self > ptr_mesh
std::string get_file_extension(const std::string &file_name)
void write_mesh(const std::string &filename, FEVV::CGALPointSet &g, PMapsContainer &pmaps)
Write mesh to file.
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 (....
void test_calculate_scaling_aif(const std::string &input_file_path)
void calculate_vertices_one_ring_angles_based_centroid(const FaceGraph &g, const PointMap &pm, CentroidMap angles_based_centroids_pm, const typename GeometryTraits::Scalar smoothing_factor, const GeometryTraits >)
Compute angle-based centroids for all vertices and store them in bangles_based_centroids_pm.
FEVV::DataStructures::AIF::AIFMesh AIFMesh
void calculate_vertices_one_ring_barycenter(const FaceGraph &g, const PointMap &pm, CentroidMap barycenters_pm, const typename GeometryTraits::Scalar smoothing_factor, const GeometryTraits >)
Compute barycenters for all vertices and store them in barycenters_pm.