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
4e5f6931
Commit
4e5f6931
authored
Sep 02, 2016
by
Kai Westerkamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small subdiv changes
parent
885e3f3d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
subdivision.cpp
QTProject/subdivision.cpp
+6
-2
No files found.
QTProject/subdivision.cpp
View file @
4e5f6931
...
...
@@ -420,10 +420,12 @@ QVector<unsigned int> Subdivision::getPatchIndexBuffer(QVector<unsigned int> ib_
totalTimer
.
start
();
qCDebug
(
log_timing
)
<<
"PatchIndexBuffer started"
;
QVector
<
unsigned
int
>
pib
;
if
(
ib_regular
.
size
()
==
0
)
return
pib
;
QVector
<
unsigned
int
>
ib_combined
=
ib_regular
+
ib_irregular
;
//DO NOT swap regular and irregular! iteration over ib_combined starting from index in ib_regular
QMap
<
Triangle
,
QVector
<
Triangle
>>
adj
;
// qDebug()<<"combined lenght"<<ib_combined.length();
for
(
int
i
=
0
;
i
<
ib_combined
.
length
()
-
2
;
i
+=
3
){
// qDebug()<<"Index"<<i;
unsigned
int
i3
,
i6
,
i7
;
//alles gegen den uzs
...
...
@@ -431,6 +433,7 @@ QVector<unsigned int> Subdivision::getPatchIndexBuffer(QVector<unsigned int> ib_
i6
=
ib_combined
[
i
+
1
];
i7
=
ib_combined
[
i
+
2
];
if
(
log_subdiv_trace
().
isDebugEnabled
()){
if
(
i
<
ib_regular
.
length
()){
Vertex
v3
=
vb
[
i3
];
...
...
@@ -469,13 +472,14 @@ QVector<unsigned int> Subdivision::getPatchIndexBuffer(QVector<unsigned int> ib_
neighbors
.
push_back
(
t367
);
adj
.
insert
(
tj
,
neighbors
);
neighbors
=
adj
.
value
(
t367
,
QVector
<
Triangle
>
());
if
(
neighbors
.
length
()
==
3
)
break
;
neighbors
.
push_back
(
tj
);
adj
.
insert
(
t367
,
neighbors
);
}
}
if
(
adj
.
value
(
t367
,
QVector
<
Triangle
>
()).
size
()
!=
3
){
qCDebug
(
log_subdiv
)
<<
"no 3 adjacent triangles found"
;
qCDebug
(
log_subdiv
_trace
)
<<
"no 3 adjacent triangles found"
;
}
}
...
...
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