[Insight-developers] Missing faces using Quad Edge Mesh
wlzhu
wanlinzhu at gmail.com
Sat Jul 3 06:09:19 EDT 2010
Hi Dan,
I think your input polygon cell should be consistent in
orientation direction, which is required to ensure each QuadEdge belongs to
one polygon cell. I changed the point order of your input faces, it works.
/*Face0*/ f[0]=0; f[1]=4; f[2]=7; f[3]=3; AddFace<TMesh>(cid, f, mesh);
/*Face1*/ f[0]=0; f[1]=1; f[2]=5; f[3]=4; AddFace<TMesh>(cid, f, mesh);
/*Face2*/ f[0]=1; f[1]=2; f[2]=6; f[3]=5; AddFace<TMesh>(cid, f, mesh);
/*Face3*/ f[0]=3; f[1]=7; f[2]=6; f[3]=2; AddFace<TMesh>(cid, f, mesh);
/*Face4*/ f[0]=0; f[1]=3; f[2]=2; f[3]=1; AddFace<TMesh>(cid, f, mesh);
/*Face5*/ f[0]=4; f[1]=5; f[2]=6; f[3]=7; AddFace<TMesh>(cid, f, mesh);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20100703/653e5914/attachment.htm>
More information about the Insight-developers
mailing list