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
a7ab78ce
Commit
a7ab78ce
authored
Aug 17, 2016
by
Philipp Adolf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add comment for extractPatches
parent
9f9fe8d8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
subdivision.cpp
QTProject/subdivision.cpp
+5
-3
No files found.
QTProject/subdivision.cpp
View file @
a7ab78ce
...
@@ -318,6 +318,11 @@ Subdivision::Tables Subdivision::precomputeTables(Input input) {
...
@@ -318,6 +318,11 @@ Subdivision::Tables Subdivision::precomputeTables(Input input) {
return
tables
;
return
tables
;
}
}
/*
* TODO: test code, use it
*
* Would probably be a good idea to store both regular and irregular patches.
*/
void
Subdivision
::
extractPatches
(
QVector
<
unsigned
int
>
index_buffer
,
QVector
<
Vertex
>
vertex_buffer
,
QVector
<
Subdivision
::
Patch
>
&
patches
){
void
Subdivision
::
extractPatches
(
QVector
<
unsigned
int
>
index_buffer
,
QVector
<
Vertex
>
vertex_buffer
,
QVector
<
Subdivision
::
Patch
>
&
patches
){
patches
.
clear
();
patches
.
clear
();
...
@@ -345,10 +350,7 @@ void Subdivision::extractPatches(QVector<unsigned int> index_buffer, QVector<Ver
...
@@ -345,10 +350,7 @@ void Subdivision::extractPatches(QVector<unsigned int> index_buffer, QVector<Ver
if
(
countx
!=
5
||
county
!=
5
||
countz
!=
5
){
if
(
countx
!=
5
||
county
!=
5
||
countz
!=
5
){
//triangle is irregular
//triangle is irregular
}
}
}
}
}
}
Subdivision
::
Result
Subdivision
::
runShader
(
Input
input
,
Tables
&
tables
)
{
Subdivision
::
Result
Subdivision
::
runShader
(
Input
input
,
Tables
&
tables
)
{
...
...
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