Subject: CGAL users discussion list
List archive
- From: Simon Giraudot <>
- To:
- Subject: Re: [cgal-discuss] How To Remove Spikes From 2.5D Mesh?
- Date: Mon, 27 Mar 2017 07:38:17 +0200
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=None ; spf=None
- Ironport-phdr: 9a23:HvbD2hNLvNhrgX9BORUl6mtUPXoX/o7sNwtQ0KIMzox0I/7yrarrMEGX3/hxlliBBdydsKMYzbKO+4nbGkU4qa6bt34DdJEeHzQksu4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2aFLduGC94iAPERvjKwV1Ov71GonPhMiryuy+4ZPebgFHiTanfb9+MAi9oBnMuMURnYZsMLs6xAHTontPdeRWxGdoKkyWkh3h+Mq+/4Nt/jpJtf45+MFOTav1f6IjTbxFFzsmKHw65NfqtRbYUwSC4GYXX3gMnRpJBwjF6wz6Xov0vyDnuOdxxDWWMMvrRr0yRD+s7bpkSAXwhSkaKTA5/mHZhM9+gq1Vrx2upQBwzYHPbYGJN/dzZL/Rcc8USGdDWMtaSixPApm7b4sKF+cPIOdYr4z6p1sIsBCwBAisBPn1xT9Vm3D22rE62PkmHAHd3QwgGtUOsHLOoNX6NacSS/q6zLTVwjXEc/Nbwjj955bPchAkv/6MQahwcMrfyUY1CwzFklKQqZblPj+PyusNtG2b4vNmWOmyhWAnrARxrSKuxscqkoTJiYMVykzE9SVk24k1OMa4R1BhYdG4F5tQsT2aOJVwQsM+WW1npCE6yrgetZGncygF0pAnywTYa/ydfIiE+h3jW/iWITd9mn1lZKi/hha88Ue61uL8Ss600ExKryZfjtbMsXUN2hrO4caEUvtw5kSs1DSV2w3X6exIO104mKrYJpI737I8i4YfvVzMEyL3gkn6kaybe0s+9uWn7+nreKjqq5GTOoJylwrwKL4hmtalDuQ9KgUOX3aU+eC71LD7/0D1WrBKjvornqXDtZDVP8UbpqqgDw9Sz4Yj9wyzDzC40NQYh3UHKkxKeA6fg4joPVHBPuz4AO+8jlmuijtmw/PLMqf8DpjNLXXPiqrtcath50JEzQo819Ff55ZaCrEbJ/LzX1f8tMfZDh88NAy0xfzrCNp81oMEQ22PH7KWMKTOsVKT6eIgPe6MZIoLtzbhMfgk5/DugmUlll8Beqmpx5sWZGqkEfRhJkWVeWDsjcsZEWcWogo+S/Tnh0GNUTFJY3a+Rr8z5jAgCI26EIfDXZutjaea3Ca7G51WfnpJBkqNEXfubYWEWu0DZDicIs97wXQ4Uu2qRIYlkB2vrwTn0KFPL+zO+yReu4iw+sJy4rjolBQ183RbDt6Uzm2KUykghWINQDlw06FlqFFxzUur3qV/hvFED81d7vhVVR0rc5XbyropWJjJRgvdc4LRGx6dSdK8DGRpQw==
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,
--
Simon Giraudot, PhD
R&D Engineer
GeometryFactory - http://geometryfactory.com/
Le 26/03/2017 à 01:23, Piero Toffanin a écrit :
Hello,
I apologize if this is not the right place to ask this question.
I'm using CGAL to compute a constrained delaunay triangulation over the XY plane for the purpose of turning a point cloud into a 2.5D mesh. Here are two screenshots to illustrate:
Point cloud: https://cloud.githubusercontent.com/assets/1951843/24327134/0bc19458-1197-11e7-96ae-4df1c1bd99a1.png
2.5D mesh calculated from the point cloud: https://cloud.githubusercontent.com/assets/1951843/24327136/1448b174-1197-11e7-8678-e2e2c0bb5292.png
My goal at this moment is to smooth the resulting mesh as to remove some of the "spikes" that appear after the 2.5D mesh is computed. I've circled a few examples in this screenshot: https://cloud.githubusercontent.com/assets/1951843/24327146/6203f9dc-1197-11e7-9c19-11e41d4e6d2c.png
I'm fairly new to CGAL and meshing algorithms, so I was hoping some more experienced users could point me in the right direction?
Thank you!
- [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.