Skip to content
Snippets Groups Projects
Commit f5b88f78 authored by Julius Nehring-Wirxel's avatar Julius Nehring-Wirxel
Browse files

Add add_line for pm edges and halfedges

parent decfd2e3
No related branches found
No related tags found
1 merge request!139Add add_line for polymesh (half)edge handles
......@@ -897,6 +897,16 @@ public:
{
return add_lines(tg::segment(p, p + dir), mat);
}
template <class PosT>
line_ref add_line(pm::edge_handle edge, pm::vertex_attribute<PosT> const& pos, material const& mat = {})
{
return add_lines(tg::segment(pos[edge.vertexA()], pos[edge.vertexB()]), mat);
}
template <class PosT>
line_ref add_line(pm::halfedge_handle edge, pm::vertex_attribute<PosT> const& pos, material const& mat = {})
{
return add_lines(tg::segment(pos[edge.vertex_from()], pos[edge.vertex_to()]), mat);
}
// lines
public:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment