Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Courses
Scotty3D
Commits
7a98a7a1
Commit
7a98a7a1
authored
Sep 30, 2020
by
TheNumbat
Browse files
remove unused var
parent
68344084
Changes
1
Show whitespace changes
Inline
Side-by-side
src/gui/model.cpp
View file @
7a98a7a1
...
@@ -286,7 +286,6 @@ void Model::halfedge_viz(Halfedge_Mesh::HalfedgeRef h, Mat4 &transform) {
...
@@ -286,7 +286,6 @@ void Model::halfedge_viz(Halfedge_Mesh::HalfedgeRef h, Mat4 &transform) {
// Move to center of edge and away from edge
// Move to center of edge and away from edge
Vec3
offset
=
(
v1
-
v0
)
*
0.2
f
;
Vec3
offset
=
(
v1
-
v0
)
*
0.2
f
;
Vec3
face_n
=
h
->
face
()
->
normal
();
Vec3
face_n
=
h
->
face
()
->
normal
();
Vec3
avg
=
0.5
f
*
(
v0
+
v1
);
offset
+=
cross
(
face_n
,
dir
).
unit
()
*
s
*
0.2
f
+
face_n
*
s
*
0.05
f
;
offset
+=
cross
(
face_n
,
dir
).
unit
()
*
s
*
0.2
f
+
face_n
*
s
*
0.05
f
;
// Align edge
// Align edge
...
...
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