Skip to content

Commit

Permalink
Closed issue #10 (Single layer poisson reconstruction)
Browse files Browse the repository at this point in the history
  • Loading branch information
cignoni committed Dec 1, 2016
1 parent 92982fe commit a6877a1
Showing 1 changed file with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,13 +228,16 @@ class MeshModelPointStream : public OrientedPointStreamWithData< Real, Point3m >
{
if(_curPos>=_m.vn)
return false;
Point3m &nn = _m.vert[_curPos].N();
Point3m tp = _m.Tr * _m.vert[_curPos].P();
Point4m np = _m.Tr * Point4m(nn[0],nn[1],nn[2],0);

pt.p[0] = _m.vert[_curPos].P()[0];
pt.p[1] = _m.vert[_curPos].P()[1];
pt.p[2] = _m.vert[_curPos].P()[2];
pt.n[0] = _m.vert[_curPos].N()[0];
pt.n[1] = _m.vert[_curPos].N()[1];
pt.n[2] = _m.vert[_curPos].N()[2];
pt.p[0] = tp[0];
pt.p[1] = tp[1];
pt.p[2] = tp[2];
pt.n[0] = np[0];
pt.n[1] = np[1];
pt.n[2] = np[2];

d[0]=Real(_m.vert[_curPos].C()[0]);
d[1]=Real(_m.vert[_curPos].C()[1]);
Expand Down

0 comments on commit a6877a1

Please sign in to comment.