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
f0257839
Commit
f0257839
authored
Sep 28, 2016
by
Philipp Adolf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add get_sharpness with name
parent
3ead38ca
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
triangle.cpp
QTProject/triangle.cpp
+13
-0
triangle.h
QTProject/triangle.h
+1
-0
No files found.
QTProject/triangle.cpp
View file @
f0257839
...
...
@@ -62,6 +62,19 @@ unsigned int Triangle::get_sharpness_wu() const {
return
sharpness_wu
;
}
unsigned
int
Triangle
::
get_sharpness
(
Triangle
::
Edge
::
Name
name
)
const
{
switch
(
name
)
{
case
Triangle
:
:
Edge
::
Name
::
uv
:
return
sharpness_uv
;
case
Triangle
:
:
Edge
::
Name
::
vw
:
return
sharpness_uv
;
case
Triangle
:
:
Edge
::
Name
::
wu
:
return
sharpness_uv
;
default
:
return
0
;
}
}
bool
Triangle
::
has_sharp_edge
()
const
{
return
(
sharpness_uv
>
0
||
sharpness_vw
>
0
||
sharpness_wu
>
0
);
}
...
...
QTProject/triangle.h
View file @
f0257839
...
...
@@ -54,6 +54,7 @@ class Triangle {
unsigned
int
get_sharpness_uv
()
const
;
unsigned
int
get_sharpness_vw
()
const
;
unsigned
int
get_sharpness_wu
()
const
;
unsigned
int
get_sharpness
(
Triangle
::
Edge
::
Name
name
)
const
;
bool
has_sharp_edge
()
const
;
...
...
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