Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenMesh
OpenMesh
Commits
6f9589dc
Commit
6f9589dc
authored
Oct 24, 2016
by
Jan Möbius
Browse files
Merge branch 'warnings' into 'master'
Warning fixed See merge request
!98
parents
14305523
3183ac53
Pipeline
#3338
passed with stage
in 74 minutes and 17 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
src/OpenMesh/Core/Mesh/PolyMeshT.cc
View file @
6f9589dc
...
@@ -136,9 +136,12 @@ PolyMeshT<Kernel>::calc_face_normal_impl(FaceHandle _fh, PointIs3DTag) const
...
@@ -136,9 +136,12 @@ PolyMeshT<Kernel>::calc_face_normal_impl(FaceHandle _fh, PointIs3DTag) const
const
Point
a
=
this
->
point
(
*
fv_it
)
-
this
->
point
(
*
fv_itn
);
const
Point
a
=
this
->
point
(
*
fv_it
)
-
this
->
point
(
*
fv_itn
);
const
Point
b
=
this
->
point
(
*
fv_it
)
+
this
->
point
(
*
fv_itn
);
const
Point
b
=
this
->
point
(
*
fv_it
)
+
this
->
point
(
*
fv_itn
);
n
[
0
]
+=
a
[
1
]
*
b
[
2
];
n
[
1
]
+=
a
[
2
]
*
b
[
0
];
// Due to traits, the value types of normals and points can be different.
n
[
2
]
+=
a
[
0
]
*
b
[
1
];
// Therefore we cast them here.
n
[
0
]
+=
static_cast
<
typename
Normal
::
value_type
>
(
a
[
1
]
*
b
[
2
]);
n
[
1
]
+=
static_cast
<
typename
Normal
::
value_type
>
(
a
[
2
]
*
b
[
0
]);
n
[
2
]
+=
static_cast
<
typename
Normal
::
value_type
>
(
a
[
0
]
*
b
[
1
]);
}
}
const
typename
vector_traits
<
Normal
>::
value_type
norm
=
n
.
length
();
const
typename
vector_traits
<
Normal
>::
value_type
norm
=
n
.
length
();
...
...
Write
Preview
Supports
Markdown
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