Subject: CGAL users discussion list
List archive
- From: Piero Toffanin <>
- To:
- Subject: Re: [cgal-discuss] How To Remove Spikes From 2.5D Mesh?
- Date: Mon, 27 Mar 2017 09:01:41 -0400
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=Pass
- Ironport-phdr: 9a23:6MPCVhblxS9OumWKIlkMZJn/LSx+4OfEezUN459isYplN5qZoMW6bnLW6fgltlLVR4KTs6sC0LuK9fi4EUU7or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRpOOv1BpTSj8Oq3Oyu5pHfeQtFiT6ybL9oMBm6sRjau9ULj4dlNqs/0AbCrGFSe+RRy2NoJFaTkAj568yt4pNt8Dletuw4+cJYXqr0Y6o3TbpDDDQ7KG81/9HktQPCTQSU+HQRVHgdnwdSDAjE6BH6WYrxsjf/u+Fg1iSWIdH6QLYpUjul86pmRh3lhSkeOzIl/2zcl8h8gaJHrB6koRF03ozab5yPNPdmY63TY90aS2pCUMhfWSNODYGzYJcAAecaIeZVrZPwq0cSoRawBwShAv7kxD9Shn/x2K03y/4vEQDY0ww6GNIFrWrarNL7NKccS++1yqjIzTPeZP5RwTf99JPFchU7rvGXRrJ/b9DRxlMpFwPCilWfs5fqPyiP2usRtGib6vNtWOSygGAprAFxpyKgxsYqioTRmo0VxUrL9SFjzIYyP924R0h2asOnHptIryyWKpd6T8w4T212tis3y6cKtJ+7cSQQyJkqxQbTZv2HfoSS7B/vSvydLSp3iX9rYr6yiQq+/E69wePmTMa0ykxFri9dn9nMqH8N0xvT59CCSvRn5UehwiiA1xrJ5eFCJkA0kbDUJIU6wrIqipUTtkHDEjf3mEXwkqCWal0p9vW05+noeLnquJGROo5uhgz/MqkigMyyDOYgPggLRWeb+OC81LP5/U3+RbVHluU2krXCvZDfP8sbvbW5DBFP0ok57Ra/CDOm384DknkcNl5KZBWHj43xN1HUPP/4Feu/g0irkDpz2//GMafuApHUInfekbfhZqpy61NHyAoo1t1f/JJVCrQZIP3pQEPxtdrYDgU4MwOu2ernBs99hcsiXjeEDaadda/TqlSV/fkHIu+WZYZTtiyuBeIi4qvWjHIjnhcheqen1J0WbjjsBuhOJkyCenf2i9EGFW4ApUw1S+m82w7KaiJae3vnB/F03To8Eo/zUN/O
Simon,
thank you for the explanation! It makes sense. Like you suggested, I would probably choose to use the median height rather than eliminating the vertices. I will attempt to write your proposed solution and I'll come back if I have questions.
On 03/27/2017 01:38 AM, Simon Giraudot wrote:
Hello,
Don't worry, this is the right place to ask this question.
From what I see in your pictures, I would use the connectivity information of the triangulation to remove these artifacts. More specifically, circulate over the incident vertices: http://doc.cgal.org/latest/Triangulation_2/classCGAL_1_1Triangulation__2.html#aba34806b0052ed4d1b7c07f2626b1a38
(For an example on how to use the circulator, see here: http://doc.cgal.org/latest/Triangulation_2/index.html#title9 )
For each vertex, you can check if the height between this vertex and its incident vertices is greater than a threshold and remove it if this is the case. If you don't want to remove points, I think replacing the height of the vertex by the median height of its incident vertices can be a good solution too.
Let me know if I'm not clear or if you need more help.
Best,
- [cgal-discuss] How To Remove Spikes From 2.5D Mesh?, Piero Toffanin, 03/26/2017
- Re: [cgal-discuss] How To Remove Spikes From 2.5D Mesh?, Simon Giraudot, 03/27/2017
- Re: [cgal-discuss] How To Remove Spikes From 2.5D Mesh?, Piero Toffanin, 03/27/2017
- Re: [cgal-discuss] How To Remove Spikes From 2.5D Mesh?, Sebastien Loriot (GeometryFactory), 03/27/2017
- Re: [cgal-discuss] How To Remove Spikes From 2.5D Mesh?, Piero Toffanin, 03/27/2017
- Re: [cgal-discuss] How To Remove Spikes From 2.5D Mesh?, Simon Giraudot, 03/27/2017
Archive powered by MHonArc 2.6.18.