Commit 820e6372 authored by Jan Möbius's avatar Jan Möbius

Explicitly use real_t in subdivider to avoid Windows compiler error due to...

Explicitly use real_t in subdivider to avoid Windows compiler error due to ambigous template. ( Thanks to  Mathias Teich )

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@184 fdac6126-5c0c-442c-9429-916003d36597
parent 9ecdd850
......@@ -329,9 +329,9 @@ private:
vhl = _m.add_vertex(zero);
vhr = _m.add_vertex(zero);
_m.property(vp_pos_, vhl ) = (P1 + 16.0f*P2 + 10.0f*P3) * _1over27;
_m.property(vp_pos_, vhr ) = (10.0f*P2 + 16.0f*P3 + P4) * _1over27;
_m.property(vp_pos_, vhl ) = (P1 + real_t(16.0f) * P2 + real_t(10.0f) * P3) * _1over27;
_m.property(vp_pos_, vhr ) = ( real_t(10.0f) * P2 + real_t(16.0f) * P3 + P4) * _1over27;
_m.property(ep_nv_, _eh).first = vhl;
_m.property(ep_nv_, _eh).second = vhr;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment