Fixed some warnings
This commit is contained in:
@@ -123,7 +123,7 @@ compute_new_positions_C0()
|
||||
u -= vector_cast<typename Mesh::Normal>(Base::mesh_.point(*v_it));
|
||||
|
||||
// damping
|
||||
u *= 0.5;
|
||||
u *= static_cast< typename Mesh::Scalar >(0.5);
|
||||
|
||||
// store new position
|
||||
p = vector_cast<typename Mesh::Normal>(Base::mesh_.point(*v_it));
|
||||
|
||||
@@ -863,7 +863,7 @@ void VF<M>::raise(typename M::FaceHandle& _fh, state_t _target_state)
|
||||
if (Base::number() == Base::subdiv_rule()->number() + 1 &&
|
||||
Base::mesh_.is_boundary(_fh) &&
|
||||
!MOBJ(_fh).final())
|
||||
position *= 0.5;
|
||||
position *= static_cast<typename M::Scalar>(0.5);
|
||||
|
||||
MOBJ(_fh).set_position(_target_state, position);
|
||||
MOBJ(_fh).inc_state();
|
||||
|
||||
@@ -309,7 +309,7 @@ CatmullClarkT<MeshType,RealType>::compute_midpoint( MeshType& _m, const EdgeHand
|
||||
// this yields the [1/2 1/2] mask
|
||||
if (_m.is_boundary(_eh) || !_update_points)
|
||||
{
|
||||
pos *= 0.5;
|
||||
pos *= static_cast<RealType>(0.5);
|
||||
}
|
||||
// else if (_m.status(_eh).selected() )
|
||||
// {
|
||||
@@ -321,7 +321,7 @@ CatmullClarkT<MeshType,RealType>::compute_midpoint( MeshType& _m, const EdgeHand
|
||||
{
|
||||
pos += _m.property(fp_pos_, _m.face_handle(heh));
|
||||
pos += _m.property(fp_pos_, _m.face_handle(opp_heh));
|
||||
pos *= 0.25;
|
||||
pos *= static_cast<RealType>(0.25);
|
||||
}
|
||||
_m.property( ep_pos_, _eh ) = pos;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user