remove some conversion warnings

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1276 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Matthias Möller
2015-06-08 11:44:11 +00:00
parent 788e96474f
commit a7af0a5950
4 changed files with 11 additions and 11 deletions

View File

@@ -97,7 +97,7 @@ class ModAspectRatioT: public ModBaseT<MeshT> {
ModAspectRatioT(MeshT& _mesh, float _min_aspect = 5.0, bool _is_binary =
true) :
Base(_mesh, _is_binary), mesh_(Base::mesh()), min_aspect_(
1.0 / _min_aspect) {
1.f / _min_aspect) {
mesh_.add_property(aspect_);
}
@@ -108,12 +108,12 @@ class ModAspectRatioT: public ModBaseT<MeshT> {
/// get aspect ratio
float aspect_ratio() const {
return 1.0 / min_aspect_;
return 1.f / min_aspect_;
}
/// set aspect ratio
void set_aspect_ratio(float _f) {
min_aspect_ = 1.0 / _f;
min_aspect_ = 1.f / _f;
}
/// precompute face aspect ratio