Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] How to find the adjacent faces of every edge?

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] How to find the adjacent faces of every edge?


Chronological Thread 
  • From: Shankar Kulumani <>
  • To:
  • Subject: Re: [cgal-discuss] How to find the adjacent faces of every edge?
  • Date: Fri, 22 Jun 2018 05:55:03 -0400
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:l2Ny0xL2g9bz8o9TG9mcpTZWNBhigK39O0sv0rFitYgeKP7xwZ3uMQTl6Ol3ixeRBMOHs68C07KempujcFRI2YyGvnEGfc4EfD4+ouJSoTYdBtWYA1bwNv/gYn9yNs1DUFh44yPzahANS47xaFLIv3K98yMZFAnhOgppPOT1HZPZg9iq2+yo9JDffwVFiCChbb9uMR67sRjfus4KjIV4N60/0AHJonxGe+RXwWNnO1eelAvi68mz4ZBu7T1et+ou+MBcX6r6eb84TaFDAzQ9L281/szrugLdQgaJ+3ART38ZkhtMAwjC8RH6QpL8uTb0u+ZhxCWXO9D9QLYpUjqg8qhrUgflhygJNzE78G/ZhM9+gr9Frh29vBFw2ZLYbZuPOfZiYq/Qf9UXTndBUMZLUCxBB5uxYZYPD+UbO+ZYrJPyp0ETphW7GAmsAP7vyjpSiX/w3K0xzuMsERrG3AM6GdIOs2/UoM/2NKoJXuC1ybPHzTTHb/9MxTj9743IfwknrPqRU7xwds/RxlMuFwPDlliQr5bqMCiO2eQJrWeX9fZvVeWqi2I/qgFxpCKvxsY2hYXTiIIV0FbJ/jh6zoYtPdC0VlJ3bNq+HJZTtyyWLZV6Tt0sTm1ypSo3yLILtJimdyYQ0psn3QTQa/mffoiI/B3jUOGRLC99hH1/ebK/gw++8UmnyuHgT8W03ktGoyhKn9XWuXAN0BvT6seDSvRj5EuuxTGP1wXL5uFFJ0A7i7bbJoY/zrIskpcfq0fOEy/slEnokqObeF8o9vWq5unoernmo4WTN45wigHwKKQuncm/DPwjMggORWeb/+e81Kb58U36W7hKgfg2nbPYsJDeP8gUuqm5AwpN3oY59xm/Fyum0MgfnXQfMF1FdwiIj4zwN17TIfD4Fuuwg0m3kDdw3P3GJb3gApDVLnfZirvhfLB961RdyAUp19xf6YhUWfk8JunuUBrxqMDAFU1+dBelxv7uTtR7zIIXH2yVRbSINbvb9l6O6OVoKOaFYMoZuS32NuM+tMLp2HQ2kFtYcaiy1oYMc1i5GO5nKgOXeynCmNAERFwKtww9Rfaiq0CGTDtaYXf6C7k87zc4E8SlJYjGT4GpxreG2XHoTdVtemlaBwXUQj/TfIKeVqJUMXPAEopaijUBEIOZZcok3BCquhX9zuM+fOXR8ywc85nk0YosvrGBpVQJ7TVxSv+l/SSVVWgtxzEHQjY32OZ0pkkvkg7eg5g9uORREJlo390MUgo+MsSCnelzCtS3WwWZO9nQFwrgTdKhDjU8CNk2xo1Wbg==

I think there's a circulator around the halfedges of each face. Then given a halfedge you can find the opposite face, by calling the opposite/inverse function, then store this face pointer ( since your dealing with the polyhedron mesh)

I'm not on my computer but can find the exact functions once I look at the docs again.


I have the following loop iterator:

void printAdjancenFaceToEdge(Polyhedron mesh)
{
    std::vector<int> nBorder(mesh.size_of_vertices(), 0);
    for (Polyhedron::Halfedge_const_iterator he = mesh.halfedges_begin(); he
!= mesh.halfedges_end(); he++) {
        if (!he->is_border())
            continue;

        // print here ids   
    }


    return true;
}
is it possible to print the adjacent faces index of every edge?



--
Sent from: http://cgal-discuss.949826.n4.nabble.com/

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss





Archive powered by MHonArc 2.6.18.

Top of Page