Skip to content
Snippets Groups Projects
Commit 31fccb3e authored by Zain Selman's avatar Zain Selman :speech_balloon:
Browse files

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

parent 68d76e47
Branches
No related tags found
No related merge requests found
......@@ -38,8 +38,8 @@ Extracting Edges as Segments
// classical style
std::vector<tg::segment3> edges;
edges.reserve(m.edges().size());
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment