updated filter_colorize to float/double independence

This commit is contained in:
Paolo Cignoni cignoni 2014-06-19 08:49:26 +00:00
parent 0f261c354c
commit c43c1a5d51

View File

@ -338,7 +338,7 @@ break;
} break;
case 5: { //TEXTURE Area Distortion
float areaScaleVal, edgeScaleVal;
CMeshO::ScalarType areaScaleVal, edgeScaleVal;
if(m.hasDataMask(MeshModel::MM_WEDGTEXCOORD))
{
Distortion<CMeshO,true>::MeshScalingFactor(m.cm, areaScaleVal,edgeScaleVal);
@ -369,7 +369,7 @@ break;
for(size_t j=0;j<vertVec.size();++j)
pointVec.push_back(vertVec[j]->P());
Plane3f pl;
Plane3m pl;
vcg::FitPlaneToPointSet(pointVec,pl);
float maxDist = 0, sumDist=0, halfPerim=0;
for(size_t j=0;j<vertVec.size();++j)