Subject: CGAL users discussion list
List archive
[cgal-discuss] Fwd: fair() from polygon mesh processing package produces NaN points
Chronological Thread
- From: Yajie Yan <>
- To:
- Subject: [cgal-discuss] Fwd: fair() from polygon mesh processing package produces NaN points
- Date: Thu, 30 May 2019 15:09:33 -0700
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:6XNV+R2xCKrBqTyVsmDT+DRfVm0co7zxezQtwd8Zse0RKPad9pjvdHbS+e9qxAeQG9mCsrQd0LKd6/2ocFdDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXdrXKo8DEdBAj0OxZrKeTpAI7SiNm82/yv95HJbAhEmSexbalvIBi4sQndudUajIt/Iast1xXFpWdFdf5Lzm1yP1KTmBj85sa0/JF99ilbpuws+c1dX6jkZqo0VbNXAigoPGAz/83rqALMTRCT6XsGU2UZiQRHDg7Y5xznRJjxsy/6tu1g2CmGOMD9UL45VSi+46ptVRTljjoMOTwk/2HNksF/g6xbrxChqRJxwIDafZ+bO+Zlc6zHYd8XX3BMUtpNWyFDBI63cosBD/AGPeZdt4TypUEBrRm/BQayGejgyCVHhnnr1qA9zusuCwfG3A0+ENIKsHXbttP1OaQTXOyo0qXFyS7Ob/xT2Tjn6YjIdgotru2LXbJ1aMfcz1QkGQ3CjlWVs4PlPjWV2/wCs2ic6OpgWuavhHA9pw5tpTivw8EhgZTKiIIN0l3I6zl1zYIvKdC7SEN3e8CoHIdTui2AKod7Qd0uTmd1sygg0LIGo4S0fC0SxZQn2RHfb/uHfpCN4h35VeaRJS50hHZneL6inhqy/1Wsx+7iWsWu31ZKqS1FktbItn8TzRDc9s+HSv5l8keg3zaAyRzT5/laLUwokafXMZ0sz74qmpYNrUjOHTX6lFj1gaOIbkkk//Kn6+XjYrXovJ+cMIp0hxnjPas0nMy/APo3MgwOXmeB/+Sx17zu8VDnTLhOlfA2nazZv4rbJcQfvKK2HwhV0oM75xalEzimyMgYnWUALF9dZB2HgJLmO1XXLP/lDPe/mEijkCpwx/DdJbDhGZXMLn3bkLj7Z7p96khcyBAyzd9F/Z5UBKsBc7rPXRr6u9XcSxM4KAep2P3PCdNn14pYV3jcLLWeNfbjuF2J66oeKu/EMIMcvjfwL+ks4a6w1CVosVAYdKitm5AQbSbrTbxdP0yFbC+00Z86GmAQs19mFbC4uBi5STdWIk2Kceck/DhiUdCpCI7CQsamh7nThH7qTK0TXXhPDxW3KVmtcoyFX/kWbyfLe51ulzUFUf6qTIpzjEjz5j+/8KJuK6/vwgNdtZ/n04IrtejalBV38T4tSsrEgzvLQGZzkWcFATQx2fInrA==
Dear CGAL,
I'm trying to use the fair() function in the polygon mesh processing package to fair the patch of a hole. I have the patch P, and I grabbed the N-rings of the vertices on the hole boundary to use as the constraint faces S. Denote the CGAL mesh M to be the union of P and S. I can then fair only the vertices of the patch using some pseudo-code like this:
fair_vtsRange <- vts(P) \ vts(S) // S is not changing at all
fair(M, fair_vtsRange, fairing_continuity(C)); // C = 0, 1, 2
When C == 0, and the result looks fine (wireframe is shown):
This shows the fair'ed patch and the constraint faces (used 10-rings, but even 1-ring would work).
However I couldn't get fair() to produce any meaningful result when I set C = 1 or 2, no matter how big N-rings I have (below I also use 10-rings, which should be enough constraint).
Meshlab gives me this error indicating the vertices of the patched region after fairing are invalid: "Warning mesh contains 92 vertices with NAN coords and 0 degenerate faces". Even though the hole appears to be not-patched, meshlab tells me there is 0 boundary. So the patch does exist, it's just the geometry is really bad.
I know the fair() might be not be using the best linear solver and cotangent computation can give bad values if the angles are close to 0, but in this test example numerics should be fine.
Any help is appreciated!
- Yajie
- [cgal-discuss] Fwd: fair() from polygon mesh processing package produces NaN points, Yajie Yan, 05/31/2019
- Re: [cgal-discuss] Fwd: fair() from polygon mesh processing package produces NaN points, Andreas fabri, 05/31/2019
- Re: [cgal-discuss] Fwd: fair() from polygon mesh processing package produces NaN points, danielyan86129, 05/31/2019
- Re: [cgal-discuss] Fwd: fair() from polygon mesh processing package produces NaN points, Andreas fabri, 05/31/2019
Archive powered by MHonArc 2.6.18.