convert tabs to spaces again

This commit is contained in:
Dmitry Anisimov 2021-04-22 18:34:34 +02:00
parent 96a806b467
commit a653dccd46
3 changed files with 32 additions and 32 deletions

View File

@ -340,7 +340,7 @@ void create_random_polygons(
// std::cout << "OFF" << std::endl;
// std::cout << "4 1 0" << std::endl;
// for (auto it_p = k_poly.vertices_begin(); it_p != k_poly.vertices_end(); ++it_p) {
// std::cout << *it_p << " 0" << std::endl;
// std::cout << *it_p << " 0" << std::endl;
// }
// std::cout << "4 0 1 2 3" << std::endl;

View File

@ -540,16 +540,16 @@ private:
const std::size_t size) const {
stream <<
"ply" + std::string(_NL_) + "" <<
"format ascii 1.0" + std::string(_NL_) + "" <<
"ply" + std::string(_NL_) + "" <<
"format ascii 1.0" + std::string(_NL_) + "" <<
"element vertex " << size << "" + std::string(_NL_) + "" <<
"property double x" + std::string(_NL_) + "" <<
"property double y" + std::string(_NL_) + "" <<
"property double z" + std::string(_NL_) + "" <<
"property uchar red" + std::string(_NL_) + "" <<
"property uchar green" + std::string(_NL_) + "" <<
"property uchar blue" + std::string(_NL_) + "" <<
"property uchar alpha" + std::string(_NL_) + "" <<
"property double x" + std::string(_NL_) + "" <<
"property double y" + std::string(_NL_) + "" <<
"property double z" + std::string(_NL_) + "" <<
"property uchar red" + std::string(_NL_) + "" <<
"property uchar green" + std::string(_NL_) + "" <<
"property uchar blue" + std::string(_NL_) + "" <<
"property uchar alpha" + std::string(_NL_) + "" <<
"end_header" + std::string(_NL_) + "";
}
@ -558,15 +558,15 @@ private:
const std::size_t size) const {
stream <<
"ply" + std::string(_NL_) + "" <<
"format ascii 1.0" + std::string(_NL_) + "" <<
"ply" + std::string(_NL_) + "" <<
"format ascii 1.0" + std::string(_NL_) + "" <<
"element vertex " << size << "" + std::string(_NL_) + "" <<
"property double x" + std::string(_NL_) + "" <<
"property double y" + std::string(_NL_) + "" <<
"property double z" + std::string(_NL_) + "" <<
"property double nx" + std::string(_NL_) + "" <<
"property double ny" + std::string(_NL_) + "" <<
"property double nz" + std::string(_NL_) + "" <<
"property double x" + std::string(_NL_) + "" <<
"property double y" + std::string(_NL_) + "" <<
"property double z" + std::string(_NL_) + "" <<
"property double nx" + std::string(_NL_) + "" <<
"property double ny" + std::string(_NL_) + "" <<
"property double nz" + std::string(_NL_) + "" <<
"end_header" + std::string(_NL_) + "";
}
@ -576,18 +576,18 @@ private:
const std::size_t num_faces) const {
stream <<
"ply" + std::string(_NL_) + "" <<
"format ascii 1.0" + std::string(_NL_) + "" <<
"ply" + std::string(_NL_) + "" <<
"format ascii 1.0" + std::string(_NL_) + "" <<
"element vertex " << num_vertices << "" + std::string(_NL_) + "" <<
"property double x" + std::string(_NL_) + "" <<
"property double y" + std::string(_NL_) + "" <<
"property double z" + std::string(_NL_) + "" <<
"property double x" + std::string(_NL_) + "" <<
"property double y" + std::string(_NL_) + "" <<
"property double z" + std::string(_NL_) + "" <<
"element face " << num_faces << "" + std::string(_NL_) + "" <<
"property list uchar int vertex_indices" + std::string(_NL_) + "" <<
"property uchar red" + std::string(_NL_) + "" <<
"property uchar green" + std::string(_NL_) + "" <<
"property uchar blue" + std::string(_NL_) + "" <<
"property uchar alpha" + std::string(_NL_) + "" <<
"property uchar red" + std::string(_NL_) + "" <<
"property uchar green" + std::string(_NL_) + "" <<
"property uchar blue" + std::string(_NL_) + "" <<
"property uchar alpha" + std::string(_NL_) + "" <<
"end_header" + std::string(_NL_) + "";
}
};

View File

@ -40,14 +40,14 @@ namespace KSR_3 {
public:
using Kernel = GeomTraits;
using FT = typename Kernel::FT;
using Point_3 = typename Kernel::Point_3;
using FT = typename Kernel::FT;
using Point_3 = typename Kernel::Point_3;
using Triangle_2 = typename Kernel::Triangle_2;
using Indices = std::vector<std::size_t>;
using Indices = std::vector<std::size_t>;
using Data_structure = KSR_3::Data_structure<Kernel>;
using Volume_cell = typename Data_structure::Volume_cell;
using PFace = typename Data_structure::PFace;
using PFace = typename Data_structure::PFace;
using Visibility_label = KSR::Visibility_label;
@ -217,7 +217,7 @@ namespace KSR_3 {
const double compute_edge_cost(const FT edge_weight) const {
CGAL_assertion(m_beta >= FT(0) && m_beta <= FT(1));
CGAL_assertion(m_beta >= FT(0) && m_beta <= FT(1));
CGAL_assertion(edge_weight >= FT(0) && edge_weight <= FT(1));
return CGAL::to_double(m_beta * edge_weight);
}