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
cafe17aa
Commit
cafe17aa
authored
Sep 28, 2016
by
Philipp Adolf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use sharpness information when building triangles
This reverts commit 997c0ac1e92033f93be3e3d280e8f00dc41b18b5.
parent
7a757ec4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
subdivision.cpp
QTProject/subdivision.cpp
+4
-3
No files found.
QTProject/subdivision.cpp
View file @
cafe17aa
...
...
@@ -95,7 +95,7 @@ void Subdivision::subdivide(Mesh *mesh, int level) {
Result
result
=
runShader
(
input
,
tables
);
QVector
<
Triangle
>
triangles
;
regularIbToTriangles
(
&
result
.
vertex_buffer
,
tables
.
index_buffer
,
triangles
);
ibToTriangles
(
&
result
.
vertex_buffer
,
tables
.
index_buffer
,
tables
.
sharp_edges
,
triangles
);
QVector
<
Triangle
>
all_triangles
;
regularIbToTriangles
(
&
result
.
vertex_buffer
,
tables
.
extra_triangles
,
all_triangles
);
all_triangles
+=
triangles
;
...
...
@@ -155,7 +155,7 @@ Subdivision::Tables Subdivision::precomputeTables(Input input) {
QTime
subTimer
;
subTimer
.
start
();
QVector
<
Triangle
>
triangles
;
regularIbToTriangles
(
&
vb
,
ib
,
triangles
);
ibToTriangles
(
&
vb
,
ib
,
se
,
triangles
);
QVector
<
Triangle
>
triangles_regular
;
regularIbToTriangles
(
&
vb
,
ib_regular
,
triangles_regular
);
...
...
@@ -721,8 +721,9 @@ void Subdivision::splitRegular(Mesh *mesh) {
Mesh
::
MeshEntry
*
current_mesh
=
mesh
->
getMeshEntry
(
first_mesh_index
);
QVector
<
Triangle
>
all_triangles
;
regularI
bToTriangles
(
&
current_mesh
->
buffers
[
0
]
->
vertices
,
i
bToTriangles
(
&
current_mesh
->
buffers
[
0
]
->
vertices
,
current_mesh
->
buffers
[
0
]
->
indices_irregular
,
current_mesh
->
buffers
[
0
]
->
m_sharp_edges
,
all_triangles
);
QVector
<
unsigned
int
>
old_regular_ib
=
patchIBToTriangleIB
(
current_mesh
->
buffers
[
0
]
->
indices_regular
);
regularIbToTriangles
(
&
current_mesh
->
buffers
[
0
]
->
vertices
,
old_regular_ib
,
all_triangles
);
...
...
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