Improved float/double consistency removing some wrong Point3f and substitued with MeshType::CoordType

This commit is contained in:
Paolo Cignoni 2014-06-27 15:09:08 +00:00
parent 5ad487b740
commit 1491037631
1 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ private:
pVec.resize(m.vert.size());
for(size_t i=0;i<m.vert.size();++i) if(!m.vert[i].IsD())
{
pVec[i] = Proj(M, viewportF,m.vert[i].P());
pVec[i] = Proj(M, viewportF,Point3f::Construct(m.vert[i].P()));
}
}
@ -217,7 +217,7 @@ public:
float LocalEpsilon = 0.001f;
for(size_t i =0;i<result.size();++i)
{
Point3f p = Proj(M,vp,Barycenter(*(result[i])));
Point3f p = Proj(M,vp,Point3f::Construct(Barycenter(*(result[i]))));
if(p[0] >=0 && p[0]<screenW && p[1] >=0 && p[1]<screenH)
{
float bufZ = buffer[int(p[0])+int(p[1])*screenW];