Commit 31fccb3e authored by Zain Selman's avatar Zain Selman 💬
Browse files

omit explicit ctor for segment, as emplace_back makes it redundant. fix copy paste error

parent 68d76e47
......@@ -38,8 +38,8 @@ Extracting Edges as Segments
// classical style
std::vector<tg::segment3> edges;
for (auto const& e : m.edges().to_vector())
edges.emplace_back(tg::segment3(pos[e.vertexA()], pos[e.vertexB()]));
for (auto const& e : m.edges())
edges.emplace_back(pos[e.vertexA()], pos[e.vertexB()]);
Add Triangle Faces to Mesh
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