Subject: CGAL users discussion list
List archive
Re: [cgal-discuss] How to do Edge collapse on surface mesh using user defined cost value?
Chronological Thread
- From: "Audette, Michel A." <>
- To: Shrabani Ghosh <>, "" <>
- Subject: Re: [cgal-discuss] How to do Edge collapse on surface mesh using user defined cost value?
- Date: Tue, 3 Sep 2019 20:40:55 +0000
- Accept-language: en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=odu.edu; dmarc=pass action=none header.from=odu.edu; dkim=pass header.d=odu.edu; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2MP28GsM2tt/4blM/vA2KiF9WT8LzDqe5gejTsqGv0U=; b=eo0biOu+I/ryPg27XVJxXk6NsHNgVGN7dfKB9yVtyl24sGb3ISoo9KmPX4hKyHBB04bETwwfuEC78nJCWm20ko7nrlrfYUuKluWmuW7/XUcfg+R/nWKO7qjdGpDmoVlbSpTr3xCWrylPZPdtI5QRo5TAlJQHdSxeaxqu/LYB1xZ0WdfEqib8TQ1b/SPuZ5n5iTHnIOnL2KCmK+iWZc7rRsowsjuOE2oSsQx+ENxt1b8Z9R1wdYcFdKF5COA5KzuKC5r4Uh2z5SLwF23NHBZOhEdN4vundWWIkoAqhtyfLbdKYuYFY4+3GvgYtr7E/0rzoe9O3cWnU4jc6g/7Sjkt6g==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TDyWhvfOR42bEjKXnhUyZQ+M9IXcmuvQL8oTzDWqxuMg2yO0eAQKeSny8GwnhR9X0QTWDnTeWss7ohbmVBjjU2tv6tJaDq79i6VYo6Oqa/+T9aCWcDc7Ey2Bpk4uFhinvBjX8OGiWWV9ZLFnvv238qkWCd53Als+tD2GLjKw7laW4H/MgSN79qYn42MXcmjeXmJRfJkv49M63yVN+b3/ZniSCHngEdvQEtfP86pyFGWR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1HSPv/3Eeu/g1WrkDdt3fzGOaDhAonJLnjEl7fhfqxx5FJbyAo21dxf5pRUBa8dIP/rVUL9qMbUAgIlPwG22erqC8hx2pkcVG+PGqOZNbndsV6M5uIhOemMY4oVtS74K/c/+v7hkGE2mUMBfaa3xpYXb223Hul8L0qHfHXsn88NEX0WsQomUOzqlFqCXCZPaHa9Ra084ig3B5+nDYfYWo+tnaeB3DygE51NZmFGD0iMHm3ye4WFXfcMciOSLdV7njwKT7jyA7MmgCqurgbwwrxmZsXU/TYY/cb4ztJzoeLTkgoypG1cAMGU0mXLRGZxyCdADTQ51aQ6rU1mwUqYyoB5heZZHJpd/bkBBgw1PJqZw+1hAM3pQSrAeM2IQRCoWIP1Lys2S4d76sICblphFpHqqxHI3yeuS5ZT3fTfAZUp/q/Aw3XZIMpgjXvKyf9y3BEdXsJTODj+1eZE/A/JCtuMyh3Bzvv4ReEnxCfIsVy74y+OsUVfDFEid4zgBSlaTHqM6NPz6wXFUqOkDqkhPk1Z08meJ6BWa9rvy1JbWPPkP9eYaGW0yT7pWUS4g4iUZY+vQF0zmT3HARlWlAwOu3uKKFpmX3bzkyflFDVrUGnXTQbp+Oh6pmm8Sx5myA2XKUBtyujs9w==
You have to remember the strategy that we discussed. You need to figure things out for yourself, as your question is not very detailed. I makes it look like you want someone else to do your implementation. You need to think about your program and plan it accordingly.
No one on CGAL land is going to do your work.
- Input meshes from holes FHi, EHj, VHk,and bone FBl, EBm, VBn, each of which should also have a corresponding label.
- First, your program should enhance the CGAL vertex, edge and face data structure to add the label of the corresponding opposite vertex, edge or face. Call it match-label or something like that. The edge data structure is found here: https://doc.cgal.org/latest/Surface_mesh_simplification/classEdgeProfile.html .
- I.e.: if there is a double edge EH1 and EB2 then under EH1 -> match_label = EB2 , and EB2 -> match_label = EH1 . Do the same for faces. You may also want to do the same for vertices, maybe.
float mi = std::numeric_limits<float>::max();
If you SetCost(xxx) with a large value like that, this edge will not be collapsable, if I understand correctly.
I would like you to develop more willingness to think through the algorithm and roll up your sleeves. You have the ability, but you need to take an active role, rather than wait for Prince Charming to show up on his white horse.
Keep pinging me as you develop this.
Michel Audette, Ph.D.
Associate Professor,
Department of Computational Modeling and Simulation Engineering,
Old Dominion University,
Norfolk, VA.
From: Shrabani Ghosh <>
Sent: Tuesday, September 3, 2019 4:12 PM
To: <>
Cc: Audette, Michel A. <>
Subject: How to do Edge collapse on surface mesh using user defined cost value?
Sent: Tuesday, September 3, 2019 4:12 PM
To: <>
Cc: Audette, Michel A. <>
Subject: How to do Edge collapse on surface mesh using user defined cost value?
Hi,
I'm coding mesh simplification using edge collapse method with two different cost functions
The GetCost function calculates the cost of collapsing an edge. I want to assign a user-defined cost value so that some edges will not collapse.
Or if there is any other way to keep some edges untouched during the simplification process.
Please advise on how to proceed with this.
Best Regards to CGAL-ers
Shrabani
I'm coding mesh simplification using edge collapse method with two different cost functions
The GetCost function calculates the cost of collapsing an edge. I want to assign a user-defined cost value so that some edges will not collapse.
Or if there is any other way to keep some edges untouched during the simplification process.
Please advise on how to proceed with this.
Best Regards to CGAL-ers
Shrabani
- [cgal-discuss] How to do Edge collapse on surface mesh using user defined cost value?, Shrabani Ghosh, 09/03/2019
- Re: [cgal-discuss] How to do Edge collapse on surface mesh using user defined cost value?, Audette, Michel A., 09/03/2019
- Re: [cgal-discuss] How to do Edge collapse on surface mesh using user defined cost value?, Sartaj Hundal, 09/03/2019
- Re: [cgal-discuss] How to do Edge collapse on surface mesh using user defined cost value?, Audette, Michel A., 09/03/2019
Archive powered by MHonArc 2.6.18.