Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
OpenMesh
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
13
Issues
13
List
Boards
Labels
Service Desk
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenMesh
OpenMesh
Commits
3dbdbdde
Commit
3dbdbdde
authored
Feb 06, 2019
by
Jan Möbius
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Silence some VS2017 warnings due to double float conversion
parent
0eb788a5
Pipeline
#8478
failed with stage
in 3 minutes and 59 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/OpenMesh/Core/Mesh/PolyMeshT.cc
src/OpenMesh/Core/Mesh/PolyMeshT.cc
+5
-5
No files found.
src/OpenMesh/Core/Mesh/PolyMeshT.cc
View file @
3dbdbdde
...
...
@@ -161,7 +161,7 @@ PolyMeshT<Kernel>::calc_face_normal_impl(FaceHandle, PointIsNot3DTag) const
assert
(
false
);
Normal
normal
;
vectorize
(
normal
,
0
);
vectorize
(
normal
,
static_cast
<
typename
Normal
::
value_type
>
(
0.0
)
);
return
normal
;
}
...
...
@@ -229,7 +229,7 @@ PolyMeshT<Kernel>::calc_face_normal_impl(const Point&, const Point&, const Point
assert
(
false
);
Normal
normal
;
vectorize
(
normal
,
0
);
vectorize
(
normal
,
static_cast
<
typename
Normal
::
value_type
>
(
0.0
)
);
return
normal
;
}
...
...
@@ -241,7 +241,7 @@ PolyMeshT<Kernel>::
calc_face_centroid
(
FaceHandle
_fh
)
const
{
Point
_pt
;
vectorize
(
_pt
,
0
);
vectorize
(
_pt
,
static_cast
<
typename
Normal
::
value_type
>
(
0.0
)
);
Scalar
valence
=
0.0
;
for
(
ConstFaceVertexIter
cfv_it
=
this
->
cfv_iter
(
_fh
);
cfv_it
.
is_valid
();
++
cfv_it
,
valence
+=
1.0
)
{
...
...
@@ -404,7 +404,7 @@ template <class Kernel>
void
PolyMeshT
<
Kernel
>::
calc_vertex_normal_fast
(
VertexHandle
_vh
,
Normal
&
_n
)
const
{
vectorize
(
_n
,
0.0
);
vectorize
(
_n
,
static_cast
<
typename
Normal
::
value_type
>
(
0.0
)
);
for
(
ConstVertexFaceIter
vf_it
=
this
->
cvf_iter
(
_vh
);
vf_it
.
is_valid
();
++
vf_it
)
_n
+=
this
->
normal
(
*
vf_it
);
}
...
...
@@ -414,7 +414,7 @@ template <class Kernel>
void
PolyMeshT
<
Kernel
>::
calc_vertex_normal_correct
(
VertexHandle
_vh
,
Normal
&
_n
)
const
{
vectorize
(
_n
,
0.0
);
vectorize
(
_n
,
static_cast
<
typename
Normal
::
value_type
>
(
0.0
)
);
ConstVertexIHalfedgeIter
cvih_it
=
this
->
cvih_iter
(
_vh
);
if
(
!
cvih_it
.
is_valid
()
)
{
//don't crash on isolated vertices
...
...
Jan Möbius
@moebius
mentioned in commit
46e9e97a
·
Feb 06, 2019
mentioned in commit
46e9e97a
mentioned in commit 46e9e97a1b61a4181c2c0a38532837415b4130c5
Toggle commit list
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