Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
Scotty3D
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Courses
Scotty3D
Commits
0985b440
Commit
0985b440
authored
4 years ago
by
TheNumbat
Browse files
Options
Downloads
Patches
Plain Diff
give < op by default
parent
a9939f7c
Branches
Branches containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/student/meshedit.cpp
+10
-0
10 additions, 0 deletions
src/student/meshedit.cpp
with
10 additions
and
0 deletions
src/student/meshedit.cpp
+
10
−
0
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
...
...
This diff is collapsed.
Click to expand it.
Preview
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!
Save comment
Cancel
Please
register
or
sign in
to comment