whitespaces

This commit is contained in:
Guillaume Damiand 2020-04-09 17:45:41 +02:00
parent de6030aa78
commit 584a033e61
4 changed files with 17 additions and 17 deletions

View File

@ -454,7 +454,7 @@ public:
return internal::Index_from_halfedge_descriptor<HEG>:: return internal::Index_from_halfedge_descriptor<HEG>::
run(mmap.get_fg(), *it); run(mmap.get_fg(), *it);
} }
private: private:
const Self & mmap; const Self & mmap;
mutable typename Self::size_type msize; mutable typename Self::size_type msize;
@ -493,12 +493,12 @@ public:
Dart_handle dart_handle(size_type i) Dart_handle dart_handle(size_type i)
{ {
CGAL_assertion(darts().is_used(i)); CGAL_assertion(darts().is_used(i));
return internal::Halfedge_descriptor_from_index<HEG>::run(get_fg(), i); return internal::Halfedge_descriptor_from_index<HEG>::run(get_fg(), i);
} }
Dart_const_handle dart_handle(size_type i) const Dart_const_handle dart_handle(size_type i) const
{ {
CGAL_assertion(darts().is_used(i)); CGAL_assertion(darts().is_used(i));
return internal::Halfedge_descriptor_from_index<HEG>::run(get_fg(), i); return internal::Halfedge_descriptor_from_index<HEG>::run(get_fg(), i);
} }
template <unsigned int i> template <unsigned int i>

View File

@ -29,7 +29,7 @@
namespace CGAL { namespace CGAL {
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
template<typename P> template<typename P>
class Surface_mesh; class Surface_mesh;
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
namespace internal { namespace internal {
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
@ -94,7 +94,7 @@ struct Index_from_halfedge_descriptor<CGAL::Surface_mesh<P> >
static size_type run(const Mesh& /*m*/, halfedge_descriptor h) static size_type run(const Mesh& /*m*/, halfedge_descriptor h)
{ std::cout<<"V2"<<std::endl; return (size_type)(h); } { std::cout<<"V2"<<std::endl; return (size_type)(h); }
}; };
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
template<typename Mesh> template<typename Mesh>
struct Halfedge_descriptor_from_index struct Halfedge_descriptor_from_index
@ -102,7 +102,7 @@ struct Halfedge_descriptor_from_index
typedef boost::uint32_t size_type; typedef boost::uint32_t size_type;
typedef typename boost::template graph_traits<Mesh>::halfedge_descriptor typedef typename boost::template graph_traits<Mesh>::halfedge_descriptor
halfedge_descriptor; halfedge_descriptor;
static halfedge_descriptor run(const Mesh& m, size_type i) static halfedge_descriptor run(const Mesh& m, size_type i)
{ {
for (typename boost::template graph_traits<Mesh>::halfedge_iterator for (typename boost::template graph_traits<Mesh>::halfedge_iterator
@ -116,18 +116,18 @@ struct Halfedge_descriptor_from_index<CGAL::Surface_mesh<P> >
{ {
using Mesh=CGAL::Surface_mesh<P>; using Mesh=CGAL::Surface_mesh<P>;
typedef boost::uint32_t size_type; typedef boost::uint32_t size_type;
typedef typename boost::template graph_traits<Mesh>::halfedge_descriptor typedef typename boost::template graph_traits<Mesh>::halfedge_descriptor
halfedge_descriptor; halfedge_descriptor;
static halfedge_descriptor run(const Mesh& /*m*/, size_type i) static halfedge_descriptor run(const Mesh& /*m*/, size_type i)
{ std::cout<<"V2"<<std::endl; return halfedge_descriptor(i); } { std::cout<<"V2"<<std::endl; return halfedge_descriptor(i); }
}; };
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
template<typename Mesh> template<typename Mesh>
struct Is_index_used struct Is_index_used
{ {
typedef boost::uint32_t size_type; typedef boost::uint32_t size_type;
static bool run(const Mesh& m, size_type i) static bool run(const Mesh& m, size_type i)
{ return i<m.size_of_halfedges(); } { return i<m.size_of_halfedges(); }
}; };
@ -140,7 +140,7 @@ struct Is_index_used<CGAL::Surface_mesh<P> >
static bool run(const Mesh& m, size_type i) static bool run(const Mesh& m, size_type i)
{ return i<(m.number_of_halfedges()+m.number_of_removed_halfedges()) && { return i<(m.number_of_halfedges()+m.number_of_removed_halfedges()) &&
!m.is_removed(typename Mesh::Halfedge_index(i)); } !m.is_removed(typename Mesh::Halfedge_index(i)); }
}; };
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
} // namespace internal } // namespace internal
} // namespace CGAL } // namespace CGAL

View File

@ -59,7 +59,7 @@ namespace internal {
CGAL_assertion(&mmap==&(other.mmap)); CGAL_assertion(&mmap==&(other.mmap));
m_it=other.m_it; m_it=other.m_it;
} }
operator Dart_handle() const operator Dart_handle() const
{ return operator*(); } { return operator*(); }
@ -93,7 +93,7 @@ namespace internal {
Self operator--(int) Self operator--(int)
{ Self res=*this; operator --(); return res; } { Self res=*this; operator --(); return res; }
Dart_handle operator*() const Dart_handle operator*() const
{ {
CGAL_assertion(m_it!=halfedges(this->mmap.get_fg()).end()); CGAL_assertion(m_it!=halfedges(this->mmap.get_fg()).end());

View File

@ -269,7 +269,7 @@ protected:
if (m_current_dart==lcc.darts().end()) if (m_current_dart==lcc.darts().end())
{ m_current_dart=lcc.darts().begin(); } { m_current_dart=lcc.darts().begin(); }
else else
{ ++m_current_dart; } { ++m_current_dart; }
if (m_current_dart==lcc.darts().end()) if (m_current_dart==lcc.darts().end())
{ displayMessage(QString("Draw all darts.")); } { displayMessage(QString("Draw all darts.")); }
else else
@ -279,7 +279,7 @@ protected:
} }
else if ((e->key()==::Qt::Key_D) && (modifiers==::Qt::ControlModifier)) else if ((e->key()==::Qt::Key_D) && (modifiers==::Qt::ControlModifier))
{ {
if (m_current_dart==lcc.darts().begin()) if (m_current_dart==lcc.darts().begin())
{ m_current_dart=lcc.darts().end(); } { m_current_dart=lcc.darts().end(); }
else else
{ --m_current_dart; } { --m_current_dart; }
@ -297,7 +297,7 @@ protected:
compute_elements(); compute_elements();
redraw(); redraw();
} }
else if ((e->key()==::Qt::Key_P) && (modifiers==::Qt::NoButton)) else if ((e->key()==::Qt::Key_P) && (modifiers==::Qt::NoButton))
{ {
m_current_path=(m_current_path+1)%(m_paths->size()+2); m_current_path=(m_current_path+1)%(m_paths->size()+2);
if (m_current_path==m_paths->size()) if (m_current_path==m_paths->size())
@ -311,7 +311,7 @@ protected:
compute_elements(); compute_elements();
redraw(); redraw();
} }
else if ((e->key()==::Qt::Key_P) && (modifiers==::Qt::ControlModifier)) else if ((e->key()==::Qt::Key_P) && (modifiers==::Qt::ControlModifier))
{ {
m_current_path=(m_current_path==0?m_paths->size()+1:m_current_path-1); m_current_path=(m_current_path==0?m_paths->size()+1:m_current_path-1);
if (m_current_path==m_paths->size()) if (m_current_path==m_paths->size())
@ -325,7 +325,7 @@ protected:
compute_elements(); compute_elements();
redraw(); redraw();
} }
else if ((e->key()==::Qt::Key_P) && (modifiers==::Qt::ShiftModifier)) else if ((e->key()==::Qt::Key_P) && (modifiers==::Qt::ShiftModifier))
{ {
m_current_path=m_paths->size(); m_current_path=m_paths->size();
displayMessage(QString("Draw all paths.")); displayMessage(QString("Draw all paths."));