Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Philip Trettner
polymesh
Commits
31fccb3e
Commit
31fccb3e
authored
Mar 04, 2020
by
Zain Selman
💬
Browse files
omit explicit ctor for segment, as emplace_back makes it redundant. fix copy paste error
parent
68d76e47
Changes
1
Hide whitespace changes
Inline
Side-by-side
docs/cookbook.rst
View file @
31fccb3e
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment