Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
Unterteilungsalgorithmen
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kai Westerkamp
Unterteilungsalgorithmen
Commits
2d463f33
Commit
2d463f33
authored
Sep 28, 2016
by
Philipp Adolf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move Edge to vertex.h
parent
07f07b7a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
16 deletions
+28
-16
subdivision.cpp
QTProject/subdivision.cpp
+0
-15
vertex.h
QTProject/vertex.h
+28
-1
No files found.
QTProject/subdivision.cpp
View file @
2d463f33
...
@@ -125,21 +125,6 @@ void Subdivision::subdivide(Mesh *mesh, int level) {
...
@@ -125,21 +125,6 @@ void Subdivision::subdivide(Mesh *mesh, int level) {
}
}
}
}
struct
Edge
{
unsigned
int
a
;
unsigned
int
b
;
friend
bool
operator
<
(
const
Edge
&
l
,
const
Edge
&
r
)
{
if
(
l
.
a
<
r
.
a
)
{
return
true
;
}
else
if
(
l
.
a
>
r
.
a
)
{
return
false
;
}
else
{
return
l
.
b
<
r
.
b
;
}
}
};
/**
/**
* @brief Subdivision::precomputeTables
* @brief Subdivision::precomputeTables
* @param mesh
* @param mesh
...
...
QTProject/vertex.h
View file @
2d463f33
...
@@ -26,6 +26,33 @@ struct Vertex
...
@@ -26,6 +26,33 @@ struct Vertex
};
};
#pragma pack(pop)
#pragma pack(pop)
QDebug
operator
<<
(
QDebug
d
,
const
Vertex
&
v
);
struct
Edge
{
unsigned
int
a
;
unsigned
int
b
;
Edge
(
unsigned
int
u
,
unsigned
int
v
){
a
=
u
;
b
=
v
;
}
Edge
(){
a
=
0
;
b
=
0
;
}
friend
bool
operator
<
(
const
Edge
&
l
,
const
Edge
&
r
)
{
if
(
l
.
a
<
r
.
a
)
{
return
true
;
}
else
if
(
l
.
a
>
r
.
a
)
{
return
false
;
}
else
{
return
l
.
b
<
r
.
b
;
}
}
};
QDebug
operator
<<
(
QDebug
d
,
const
Vertex
&
v
);
#endif
#endif
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