Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Courses
Scotty3D
Commits
0985b440
Commit
0985b440
authored
Oct 15, 2020
by
TheNumbat
Browse files
give < op by default
parent
a9939f7c
Changes
1
Show whitespace changes
Inline
Side-by-side
src/student/meshedit.cpp
View file @
0985b440
...
@@ -460,6 +460,16 @@ struct Edge_Record {
...
@@ -460,6 +460,16 @@ struct Edge_Record {
float
cost
;
float
cost
;
};
};
/* Comparison operator for Edge_Records so std::set will properly order them */
bool
operator
<
(
const
Edge_Record
&
r1
,
const
Edge_Record
&
r2
)
{
if
(
r1
.
cost
!=
r2
.
cost
)
{
return
r1
.
cost
<
r2
.
cost
;
}
Halfedge_Mesh
::
EdgeRef
e1
=
r1
.
edge
;
Halfedge_Mesh
::
EdgeRef
e2
=
r2
.
edge
;
return
&*
e1
<
&*
e2
;
}
/** Helper type for quadric simplification
/** Helper type for quadric simplification
*
*
* A PQueue is a minimum-priority queue that
* A PQueue is a minimum-priority queue that
...
...
Write
Preview
Markdown
is supported
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