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
2e3de66d
Commit
2e3de66d
authored
8 years ago
by
Philipp Adolf
Browse files
Options
Browse Files
Download
Plain Diff
Merge refactor into master (using imerge)
parents
bb3551a1
1221b6c9
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
7 deletions
+19
-7
subdivision.cpp
QTProject/subdivision.cpp
+0
-0
subdivision.h
QTProject/subdivision.h
+19
-7
No files found.
QTProject/subdivision.cpp
View file @
2e3de66d
This diff is collapsed.
Click to expand it.
QTProject/subdivision.h
View file @
2e3de66d
...
...
@@ -16,16 +16,28 @@ public:
Mesh
*
subdivide
(
Mesh
*
mesh
);
private
:
struct
Input
{
GLuint
vb_handle
;
QVector
<
unsigned
int
>
index_buffer
;
QVector
<
Vertex
>
vertex_buffer
;
};
struct
Tables
{
QVector
<
GLuint
>
edge_indices
;
QVector
<
GLuint
>
vertex_indices
;
QVector
<
GLuint
>
vertex_offsets
;
QVector
<
GLuint
>
index_buffer
;
};
QOpenGLFunctions_4_3_Core
*
f
;
QOpenGLShaderProgram
*
edgeShader
;
QOpenGLShaderProgram
*
initEdgeComputeShaderProgram
();
void
precomputeTables
(
Mesh
*
mesh
,
QVector
<
QVector
<
unsigned
int
>
>
&
edgeIndices_base
,
QVector
<
unsigned
int
>
&
vertexIndices
,
QVector
<
unsigned
int
>
&
vertexIndicesOffsets
,
QVector
<
unsigned
int
>
&
newIndexBuffer
);
void
runShader
(
Mesh
*
mesh
,
QVector
<
QVector
<
unsigned
int
>
>
&
edgeIndices
);
QVector
<
unsigned
int
>
fillVector
(
unsigned
int
a
,
unsigned
int
b
,
unsigned
int
c
,
unsigned
int
d
);
QOpenGLShaderProgram
*
initComputeShaderProgram
(
QString
&
source
);
Tables
precomputeTables
(
Input
input
);
void
runShader
(
Input
input
,
Tables
&
tables
);
void
runEdgeShader
(
GLuint
size
,
GLuint
vb_handle
,
GLuint
edge_indices_handle
,
GLuint
output_handle
);
};
#endif
This diff is collapsed.
Click to expand it.
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