This commit is contained in:
Guillaume Damiand 2022-10-17 18:02:52 +02:00
parent 58fead22b1
commit 8e93b8ccbc
3 changed files with 7 additions and 7 deletions

View File

@ -86,7 +86,7 @@ void compute_elements(const FG &fg,
for (auto e : edges(fg))
{
if(m_drawing_functor.colored_edge(fg, e)) // edge is colored
{
{
graphic_buffer.add_segment(get(point_pmap, source(halfedge(e, fg), fg)),
get(point_pmap, target(halfedge(e, fg), fg)),
m_drawing_functor.edge_color(fg, e));
@ -104,12 +104,12 @@ void compute_elements(const FG &fg,
for (auto v : vertices(fg))
{
if(m_drawing_functor.colored_vertex(fg, v)) // vertex is colored
{
{
graphic_buffer.add_point(get(point_pmap, v),
m_drawing_functor.vertex_color(fg, v));
}
else
{
{
graphic_buffer.add_point(get(point_pmap, v));
}
}

View File

@ -51,7 +51,7 @@ void add_in_graphic_buffer(const CGAL_POLY_TYPE& apoly,
// Specialization of draw function: require Qt and the CGAL basic viewer.
#ifdef CGAL_USE_BASIC_VIEWER
template<class PolyhedronTraits_3,
class PolyhedronItems_3,
template < class T, class I, class A>
@ -82,7 +82,7 @@ void draw(const CGAL_POLY_TYPE& apoly,
draw_buffer(buffer, title);
}
#endif // CGAL_USE_BASIC_VIEWER
#undef CGAL_POLY_TYPE
} // End namespace CGAL

View File

@ -44,12 +44,12 @@ void add_in_graphic_buffer(const Surface_mesh<K>& amesh,
CGAL::Graphic_buffer<BufferType> &graphic_buffer,
const DrawingFunctor &drawing_functor)
{ add_in_graphic_buffer_for_fg(amesh, graphic_buffer, drawing_functor); }
template<class K, typename BufferType=float>
void add_in_graphic_buffer(const Surface_mesh<K>& amesh,
CGAL::Graphic_buffer<BufferType> &graphic_buffer)
{ add_in_graphic_buffer_for_fg(amesh, graphic_buffer); }
#ifdef CGAL_USE_BASIC_VIEWER
// Specialization of draw function.