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
5579c275
Commit
5579c275
authored
Aug 29, 2016
by
Philipp Adolf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename member of Input
parent
194aa735
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
subdivision.cpp
QTProject/subdivision.cpp
+4
-4
subdivision.h
QTProject/subdivision.h
+1
-1
No files found.
QTProject/subdivision.cpp
View file @
5579c275
...
@@ -65,9 +65,9 @@ void Subdivision::subdivide(Mesh *mesh, int level) {
...
@@ -65,9 +65,9 @@ void Subdivision::subdivide(Mesh *mesh, int level) {
input
.
vb_handle
=
entry
->
VB_handle
;
input
.
vb_handle
=
entry
->
VB_handle
;
input
.
vertex_buffer
=
entry
->
vertices
;
input
.
vertex_buffer
=
entry
->
vertices
;
input
.
index_buffer
=
entry
->
indices_irregular
;
input
.
index_
irregular_
buffer
=
entry
->
indices_irregular
;
if
(
input
.
index_buffer
.
isEmpty
())
{
if
(
input
.
index_
irregular_
buffer
.
isEmpty
())
{
// current_mesh->update(input.vb_handle, input.vertex_buffer, input.index_buffer, entry->indices_regular);
// current_mesh->update(input.vb_handle, input.vertex_buffer, input.index_buffer, entry->indices_regular);
}
else
{
}
else
{
Tables
tables
=
precomputeTables
(
input
);
Tables
tables
=
precomputeTables
(
input
);
...
@@ -137,8 +137,8 @@ struct Edge {
...
@@ -137,8 +137,8 @@ struct Edge {
Subdivision
::
Tables
Subdivision
::
precomputeTables
(
Input
input
)
{
Subdivision
::
Tables
Subdivision
::
precomputeTables
(
Input
input
)
{
Tables
tables
;
Tables
tables
;
QVector
<
unsigned
int
>
ib
=
input
.
index_buffer
;
QVector
<
unsigned
int
>
ib
=
input
.
index_
irregular_
buffer
;
qCDebug
(
log_subdiv_trace
)
<<
"Index Buffer: "
<<
ib
;
qCDebug
(
log_subdiv_trace
)
<<
"Index Buffer: "
<<
ib
;
QVector
<
Vertex
>
vb
=
input
.
vertex_buffer
;
QVector
<
Vertex
>
vb
=
input
.
vertex_buffer
;
qCDebug
(
log_subdiv_trace
)
<<
"Vertex Buffer: "
<<
vb
;
qCDebug
(
log_subdiv_trace
)
<<
"Vertex Buffer: "
<<
vb
;
...
...
QTProject/subdivision.h
View file @
5579c275
...
@@ -22,7 +22,7 @@ private:
...
@@ -22,7 +22,7 @@ private:
struct
Input
struct
Input
{
{
GLuint
vb_handle
;
GLuint
vb_handle
;
QVector
<
unsigned
int
>
index_buffer
;
QVector
<
unsigned
int
>
index_
irregular_
buffer
;
QVector
<
Vertex
>
vertex_buffer
;
QVector
<
Vertex
>
vertex_buffer
;
};
};
...
...
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