mirror of https://github.com/CGAL/cgal
spaces
This commit is contained in:
parent
58fead22b1
commit
8e93b8ccbc
|
|
@ -86,7 +86,7 @@ void compute_elements(const FG &fg,
|
||||||
for (auto e : edges(fg))
|
for (auto e : edges(fg))
|
||||||
{
|
{
|
||||||
if(m_drawing_functor.colored_edge(fg, e)) // edge is colored
|
if(m_drawing_functor.colored_edge(fg, e)) // edge is colored
|
||||||
{
|
{
|
||||||
graphic_buffer.add_segment(get(point_pmap, source(halfedge(e, fg), fg)),
|
graphic_buffer.add_segment(get(point_pmap, source(halfedge(e, fg), fg)),
|
||||||
get(point_pmap, target(halfedge(e, fg), fg)),
|
get(point_pmap, target(halfedge(e, fg), fg)),
|
||||||
m_drawing_functor.edge_color(fg, e));
|
m_drawing_functor.edge_color(fg, e));
|
||||||
|
|
@ -104,12 +104,12 @@ void compute_elements(const FG &fg,
|
||||||
for (auto v : vertices(fg))
|
for (auto v : vertices(fg))
|
||||||
{
|
{
|
||||||
if(m_drawing_functor.colored_vertex(fg, v)) // vertex is colored
|
if(m_drawing_functor.colored_vertex(fg, v)) // vertex is colored
|
||||||
{
|
{
|
||||||
graphic_buffer.add_point(get(point_pmap, v),
|
graphic_buffer.add_point(get(point_pmap, v),
|
||||||
m_drawing_functor.vertex_color(fg, v));
|
m_drawing_functor.vertex_color(fg, v));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
graphic_buffer.add_point(get(point_pmap, v));
|
graphic_buffer.add_point(get(point_pmap, v));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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.
|
// Specialization of draw function: require Qt and the CGAL basic viewer.
|
||||||
#ifdef CGAL_USE_BASIC_VIEWER
|
#ifdef CGAL_USE_BASIC_VIEWER
|
||||||
|
|
||||||
template<class PolyhedronTraits_3,
|
template<class PolyhedronTraits_3,
|
||||||
class PolyhedronItems_3,
|
class PolyhedronItems_3,
|
||||||
template < class T, class I, class A>
|
template < class T, class I, class A>
|
||||||
|
|
@ -82,7 +82,7 @@ void draw(const CGAL_POLY_TYPE& apoly,
|
||||||
draw_buffer(buffer, title);
|
draw_buffer(buffer, title);
|
||||||
}
|
}
|
||||||
#endif // CGAL_USE_BASIC_VIEWER
|
#endif // CGAL_USE_BASIC_VIEWER
|
||||||
|
|
||||||
#undef CGAL_POLY_TYPE
|
#undef CGAL_POLY_TYPE
|
||||||
|
|
||||||
} // End namespace CGAL
|
} // End namespace CGAL
|
||||||
|
|
|
||||||
|
|
@ -44,12 +44,12 @@ void add_in_graphic_buffer(const Surface_mesh<K>& amesh,
|
||||||
CGAL::Graphic_buffer<BufferType> &graphic_buffer,
|
CGAL::Graphic_buffer<BufferType> &graphic_buffer,
|
||||||
const DrawingFunctor &drawing_functor)
|
const DrawingFunctor &drawing_functor)
|
||||||
{ add_in_graphic_buffer_for_fg(amesh, graphic_buffer, drawing_functor); }
|
{ add_in_graphic_buffer_for_fg(amesh, graphic_buffer, drawing_functor); }
|
||||||
|
|
||||||
template<class K, typename BufferType=float>
|
template<class K, typename BufferType=float>
|
||||||
void add_in_graphic_buffer(const Surface_mesh<K>& amesh,
|
void add_in_graphic_buffer(const Surface_mesh<K>& amesh,
|
||||||
CGAL::Graphic_buffer<BufferType> &graphic_buffer)
|
CGAL::Graphic_buffer<BufferType> &graphic_buffer)
|
||||||
{ add_in_graphic_buffer_for_fg(amesh, graphic_buffer); }
|
{ add_in_graphic_buffer_for_fg(amesh, graphic_buffer); }
|
||||||
|
|
||||||
#ifdef CGAL_USE_BASIC_VIEWER
|
#ifdef CGAL_USE_BASIC_VIEWER
|
||||||
|
|
||||||
// Specialization of draw function.
|
// Specialization of draw function.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue