Commit c5f1a2d7 authored by Philip Trettner's avatar Philip Trettner
Browse files

small cookbook fixes

parent e372aab3
......@@ -29,7 +29,7 @@ Extracting Edges as Segments
// pm::vertex_attribute<tg::pos3> pos;
// functional style
auto edges0 = m.edges().map([&](pm::edge_handle e) {
auto edges = m.edges().map([&](pm::edge_handle e) {
return tg::segment3(pos[e.vertexA()], pos[e.vertexB()]);
}).to_vector();
......@@ -38,7 +38,7 @@ Extracting Edges as Segments
// classical style
std::vector<tg::segment3> edges;
edges.reserve(m.edges().size());
for (auto const& e : m.edges())
for (auto e : m.edges())
edges.emplace_back(pos[e.vertexA()], pos[e.vertexB()]);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment