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