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
c1ad9f41
Commit
c1ad9f41
authored
Nov 07, 2016
by
Jan Möbius
Browse files
Some casts
parent
7175cd8c
Pipeline
#3530
canceled with stage
in 10 minutes and 17 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/OpenMesh/Tools/Decimater/ModEdgeLengthT.cc
View file @
c1ad9f41
...
...
@@ -91,7 +91,7 @@ void ModEdgeLengthT<MeshT>::set_error_tolerance_factor(double _factor) {
// the smaller the factor, the smaller edge_length_ gets
// thus creating a stricter constraint
// division by error_tolerance_factor_ is for normalization
float
edge_length
=
edge_length_
*
_factor
/
this
->
error_tolerance_factor_
;
typename
Mesh
::
Scalar
edge_length
=
edge_length_
*
static_cast
<
typename
Mesh
::
Scalar
>
(
_factor
/
this
->
error_tolerance_factor_
)
;
set_edge_length
(
edge_length
);
this
->
error_tolerance_factor_
=
_factor
;
}
...
...
src/OpenMesh/Tools/Decimater/ModEdgeLengthT.hh
View file @
c1ad9f41
...
...
@@ -94,7 +94,7 @@ class ModEdgeLengthT: public ModBaseT<MeshT> {
}
/// set edge_length
void
set_edge_length
(
float
_f
)
{
void
set_edge_length
(
typename
Mesh
::
Scalar
_f
)
{
edge_length_
=
_f
;
sqr_edge_length_
=
_f
*
_f
;
}
...
...
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