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
abf3e05e
Commit
abf3e05e
authored
Mar 17, 2021
by
TheNumbat
Browse files
fix edge viz transform
parent
4d040e6e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/gui/model.cpp
View file @
abf3e05e
...
...
@@ -253,7 +253,7 @@ void Model::edge_viz(Halfedge_Mesh::EdgeRef e, Mat4& transform) {
float
v0s
=
vert_sizes
[
v_0
->
id
()],
v1s
=
vert_sizes
[
v_1
->
id
()];
float
s
=
0.5
f
*
std
::
min
(
v0s
,
v1s
);
if
(
dir
.
y
==
1.0
f
||
dir
.
y
==
-
1.0
f
)
{
if
(
1.0
f
-
std
::
abs
(
dir
.
y
)
<
EPS_F
)
{
l
*=
sign
(
dir
.
y
);
transform
=
Mat4
{
Vec4
{
s
,
0.0
f
,
0.0
f
,
0.0
f
},
Vec4
{
0.0
f
,
l
,
0.0
f
,
0.0
f
},
Vec4
{
0.0
f
,
0.0
f
,
s
,
0.0
f
},
Vec4
{
v0
,
1.0
f
}};
...
...
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