yet a couple of Proj->glProject that were forgotten
This commit is contained in:
parent
bdd25079ac
commit
b887f27e94
|
@ -108,7 +108,7 @@ public:
|
||||||
for(size_t i=0;i<m.face.size();++i) if(!m.face[i].IsD())
|
for(size_t i=0;i<m.face.size();++i) if(!m.face[i].IsD())
|
||||||
{
|
{
|
||||||
CoordType bary = vcg::Barycenter(m.face[i]);
|
CoordType bary = vcg::Barycenter(m.face[i]);
|
||||||
CoordType bz = Proj(M, viewportF,bary);
|
CoordType bz = glProject(M, viewportF,bary);
|
||||||
|
|
||||||
if(bz[2]<bzmin && reg.IsIn(bz))
|
if(bz[2]<bzmin && reg.IsIn(bz))
|
||||||
{
|
{
|
||||||
|
@ -131,7 +131,7 @@ public:
|
||||||
|
|
||||||
for(size_t i=0;i<m.vert.size();++i) if(!m.vert[i].IsD())
|
for(size_t i=0;i<m.vert.size();++i) if(!m.vert[i].IsD())
|
||||||
{
|
{
|
||||||
CoordType bz = Proj(M, viewportF,m.vert[i].P());
|
CoordType bz = glProject(M, viewportF,m.vert[i].P());
|
||||||
if(bz[2]<bzmin && reg.IsIn(bz))
|
if(bz[2]<bzmin && reg.IsIn(bz))
|
||||||
{
|
{
|
||||||
bzmin=bz[2];
|
bzmin=bz[2];
|
||||||
|
|
Loading…
Reference in New Issue