Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Is it convenient to change the surface_mesh_simplification a little?

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Is it convenient to change the surface_mesh_simplification a little?


Chronological Thread 
  • From: Mael <>
  • To:
  • Subject: Re: [cgal-discuss] Is it convenient to change the surface_mesh_simplification a little?
  • Date: Tue, 15 Oct 2019 11:41:12 +0200
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=None ; spf=None
  • Ironport-phdr: 9a23:UWHQ1xOsWejLnknoKgcl6mtUPXoX/o7sNwtQ0KIMzox0K/z6pcbcNUDSrc9gkEXOFd2Cra4d0KyJ6Ou5BiQp2tWoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6nK94iQPFRrhKAF7Ovr6GpLIj8Swyuu+54Dfbx9HiTagb75+Nhe7oAveusULg4ZpN7o8xAbOrnZUYepd2HlmJUiUnxby58ew+IBs/iFNsP8/9MBOTLv3cb0gQbNXEDopPWY15Nb2tRbYVguA+mEcUmQNnRVWBQXO8Qz3UY3wsiv+sep9xTWaMMjrRr06RTiu86FmQwLuhSwaNTA27XvXh9RtgqxFrhKvpx9xzYDab46aNvVxYqzTcMgGRWdDRMtdSzBND42+YoYJEuEPPfxYr474p1YWqhWxHxejBOfywTJPg3/5x7M10+A7HQHc2wwgAt0Pv2rQrNnvMKcdS/u6w7LWwjjYYPNZxzD96I3WfRA9u/GNXbxwftDNxkkzEAPFlFWRpZb5MDOS0+QAqm6W5PduW+Kojm4osQBxoj63y8cqkIbGnZkaylTa+ilj3Ik1Iti4RFZnbt6rCpRQszuWN4xsQsMtRWxjpSU0yqUetJKmfiUHy44ryhDRZvCdboSE/hDuWPyMLTp3in9pYKyziwyv/UWg0OHwS8a53VRQoiZbjtXBsnYA3AHJ5MedUPty5EKh1C6P1w/N7uFEJlg5mbfBJ54kxb48i5gevEbZEi/zgkr2jauWelwj+ui19+TreLLmpoGcN4NujAHxLLgultS+AeQ+LAcOQ3CW9fm+2bDg50H0TrtHgucrnqXFsp3WP9kXq6G3DgNN14Ys8Re/DzOo0NQCmnkHKUpIeBedgIf3P1HCOur4DfCig1Wjjjhrw+rKPrn7DZrWNXfMjqzsfblj5E5bzQo808xf54hUC7EPOv38RlPxtNvCDh45KQC73+HnCNBl2oMERW2PGrOZML/VsVKQ+u0vLPODZIsMtDngKvgl/OLhjWIimV8GZqSpxpsWaHWgHvt8OUmZYHzsgs0AEWgQpAY+Qvbq2xW/VyVObSOyQ74k/WN8T46hBsHISYmpxrub02C/F4FbfXwBMU2WH37jerKBVuwMXzmTJ9dlkzIFXrG9SognkiqzrgHzwLdQK+fP+hoDtJf70Nl75ubaiRA18wsuAsiS3laGSGVwl3sTSgg926ZkvVZ0y1G0yqhxmeRvGNBc6uh+AgwiLdvR3+V/E9T/HALde9PadFHzSdqvBXQ9T8k63sQVS0d7AdSryB7ZjASwBLpAsrWGANRg96vR2z7rINttxnKA0KArhVQOTcZIMGC6nL9x/gPPAJTY1U6ekvD5JuwnwCfR+TLbniK1t0ZCXVsoCPSXbTUkfkLT6O/ByAbHRr6qB64gN1EYm8GPLa5Hdsf4g1xNWPD5KZLVZGfjwz7sVybN/auFac/RQ0tYxD/UUhFWnA0U+HuaLxkwDyy9pHjPSjdpEAC3Oh6+waxFsHq+C3QM4USKYklmjeTno1gQgqXDFLUW17MA/SA8t3NzAlb72d/KWYKN

Hello,

You can constrain edges that you do not wish to be removed, see for example the following example : https://doc.cgal.org/latest/Surface_mesh_simplification/Surface_mesh_simplification_2edge_collapse_constrain_sharp_edges_8cpp-example.html.

For your second question, a cost is assigned to an edge, not a vertex. But you can independently assign vertex costs to your mesh and look up these cost in your placement. If you are using a Surface_mesh data structure, you can add properties like described in the following example : https://doc.cgal.org/latest/Surface_mesh/Surface_mesh_2sm_properties_8cpp-example.html.

Best,
Mael

On 15/10/2019 11:36, tdchen wrote:
Thank you so much MaelRL for the so detailed suggestion!
I will try the way you guided me, but it will spend me some time.
There is a difference on my mesh border that:
It is composed of some(usually 4)polylines, and I have to ensure the joint
ends not to be removed.
So I think I have to send some extra message to the mesh as the vertex
property.
Is it right?
And if 2 ends of an edge are both on the border(border edge), I want to
collapse it to the end with lower cost.
I think I can call the cost function in my placement function to make
decision, can't I?
Thank you again.



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




Archive powered by MHonArc 2.6.18.

Top of Page