diff --git a/Surface_mesh_segmentation/examples/Surface_mesh_segmentation/compute_sdf_values_and_segment_example.cpp b/Surface_mesh_segmentation/examples/Surface_mesh_segmentation/compute_sdf_values_and_segment_example.cpp index 86ada590806..5447ed4bd7f 100644 --- a/Surface_mesh_segmentation/examples/Surface_mesh_segmentation/compute_sdf_values_and_segment_example.cpp +++ b/Surface_mesh_segmentation/examples/Surface_mesh_segmentation/compute_sdf_values_and_segment_example.cpp @@ -34,6 +34,7 @@ int main() // print segment-ids for(Polyhedron::Facet_const_iterator facet_it = mesh.facets_begin(); facet_it != mesh.facets_end(); ++facet_it) { - std::cout << segment_property_map[facet_it] << std::endl; + std::cout << segment_property_map[facet_it] << " "; } -} \ No newline at end of file + std::cout << std::endl; +} diff --git a/Surface_mesh_segmentation/examples/Surface_mesh_segmentation/compute_sdf_values_and_segment_with_facet_ids_example.cpp b/Surface_mesh_segmentation/examples/Surface_mesh_segmentation/compute_sdf_values_and_segment_with_facet_ids_example.cpp index d6b66f660ee..0e34dab24c1 100644 --- a/Surface_mesh_segmentation/examples/Surface_mesh_segmentation/compute_sdf_values_and_segment_with_facet_ids_example.cpp +++ b/Surface_mesh_segmentation/examples/Surface_mesh_segmentation/compute_sdf_values_and_segment_with_facet_ids_example.cpp @@ -60,8 +60,9 @@ int main() // access SDF values (with constant-complexity) for(Polyhedron::Facet_const_iterator facet_it = mesh.facets_begin(); facet_it != mesh.facets_end(); ++facet_it) { - std::cout << sdf_property_map[facet_it] << std::endl; + std::cout << sdf_property_map[facet_it] << " "; } + std::cout << std::endl; // create a property-map for segment-ids std::vector segment_ids(mesh.size_of_facets()); @@ -72,6 +73,7 @@ int main() // access segment-ids (with constant-complexity) for(Polyhedron::Facet_const_iterator facet_it = mesh.facets_begin(); facet_it != mesh.facets_end(); ++facet_it) { - std::cout << segment_property_map[facet_it] << std::endl; + std::cout << segment_property_map[facet_it] << " "; } + std::cout << std::endl; } \ No newline at end of file diff --git a/Surface_mesh_segmentation/examples/Surface_mesh_segmentation/compute_sdf_values_example.cpp b/Surface_mesh_segmentation/examples/Surface_mesh_segmentation/compute_sdf_values_example.cpp index 86a6931f8d7..d2652bac261 100644 --- a/Surface_mesh_segmentation/examples/Surface_mesh_segmentation/compute_sdf_values_example.cpp +++ b/Surface_mesh_segmentation/examples/Surface_mesh_segmentation/compute_sdf_values_example.cpp @@ -46,6 +46,7 @@ int main() // print SDF values for(Polyhedron::Facet_const_iterator facet_it = mesh.facets_begin(); facet_it != mesh.facets_end(); ++facet_it) { - std::cout << sdf_property_map[facet_it] << std::endl; + std::cout << sdf_property_map[facet_it] << " "; } + std::cout << std::endl; } \ No newline at end of file diff --git a/Surface_mesh_segmentation/examples/Surface_mesh_segmentation/segment_from_sdf_values_example.cpp b/Surface_mesh_segmentation/examples/Surface_mesh_segmentation/segment_from_sdf_values_example.cpp index f969e476255..35534f23001 100644 --- a/Surface_mesh_segmentation/examples/Surface_mesh_segmentation/segment_from_sdf_values_example.cpp +++ b/Surface_mesh_segmentation/examples/Surface_mesh_segmentation/segment_from_sdf_values_example.cpp @@ -43,8 +43,9 @@ int main() for(Polyhedron::Facet_const_iterator facet_it = mesh.facets_begin(); facet_it != mesh.facets_end(); ++facet_it) { // ids are between [0, number_of_segments -1] - std::cout << segment_property_map[facet_it] << std::endl; + std::cout << segment_property_map[facet_it] << " "; } + std::cout << std::endl; const int number_of_clusters = 4; // use 4 clusters in soft clustering const double smoothing_lambda = 0.3; // importance of surface features, suggested to be in-between [0,1] @@ -53,4 +54,4 @@ int main() // This feature becomes important when we want to segment the mesh several times with different parameters. CGAL::segment_from_sdf_values( mesh, sdf_property_map, segment_property_map, number_of_clusters, smoothing_lambda); -} \ No newline at end of file +}