[Insight-developers] Missing faces using Quad Edge Mesh

Dan Mueller dan.muel at gmail.com
Sun Jul 4 01:09:27 EDT 2010


Of course! Not sure how I missed this... Thanks.

Cheers, Dan

On 3 July 2010 12:09, wlzhu <wanlinzhu at gmail.com> wrote:
> 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);


More information about the Insight-developers mailing list