Skip to content
GitLab
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
d1c71af7
Commit
d1c71af7
authored
Jul 23, 2018
by
Philip Trettner
Browse files
convenience conversion
parent
bfe307a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/polymesh/cursors.hh
View file @
d1c71af7
...
...
@@ -60,6 +60,7 @@ struct primitive_handle
bool
operator
!=
(
handle_t
const
&
rhs
)
const
{
return
mesh
!=
rhs
.
mesh
||
idx
!=
rhs
.
idx
;
}
explicit
operator
int
()
const
{
return
(
int
)
idx
;
}
operator
index_t
()
const
{
return
idx
;
}
/// indexes this primitive by a functor
/// also works for attributes
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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