Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Surface_mesh_parameterization didn't keep face information

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Surface_mesh_parameterization didn't keep face information


Chronological Thread 
  • From: Shankar Kulumani <>
  • To:
  • Subject: Re: [cgal-discuss] Surface_mesh_parameterization didn't keep face information
  • Date: Thu, 19 Apr 2018 21:09:09 -0400
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:uht3dRF1+H3ZoV5VO3lJkZ1GYnF86YWxBRYc798ds5kLTJ7zpsiwAkXT6L1XgUPTWs2DsrQY07GQ6/iocFdDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXdrXKo8DEdBAj0OxZrKeTpAI7SiNm82/yv95HJbAhEmDSwbaluIBmqsA7cqtQYjYx+J6gr1xDHuGFIe+NYxWNpIVKcgRPx7dqu8ZBg7ipdpesv+9ZPXqvmcas4S6dYDCk9PGAu+MLrrxjDQhCR6XYaT24bjwBHAwnB7BH9Q5fxri73vfdz1SWGIcH7S60/VDK/5KlpVRDokj8KODw38G/XhMJ+j79Vrgy9qBFk2YHYfJuYOeBicq/Bf94XQ3dKUMZLVyxGB4Oxd5YBD+obMuZerInyvUEOpga7CwmxAOPv1zpIiWXw3a07zu8sFhrG3Aw6ENIIs3TUt8/5NKQJXOC6yanH1zTDb/dM1Tjh74jIdwksrPeRVrx+dsrRzFMgFwLDjliIr4zqJSia2f8Js2eF9eZvSeWvi2s/pwFwpDiv3MYshZPTioIb0FDJ8zhyzoUtJdCgVkJ3fdqpHIFTuiyaLYd6XN4uTm5ytCs617ELv4OwcjIQx5Q93RHfbuSKc4iW7RLnU+acOTJ4i2hkeLK7nhqy8FSgxvHlWsm60FtGszBJktbLtnAK2BzT7taIRuFh8Uem3DaDzwHT6udaLkAojafXNYItz7oqmpcQsUnPBDH6lFj5gaOMdkgo5/Ck6+H9bbXnop+cOZV0igb7Mqk2gcy/Af43Mg4NX2iA4+i816bu/UL8QLpQj/02lrPVv4zdJcQevqK5GRNa0p4/6xajCDeryMgXnXYdI1JBYR6IkonpO0rSL/DlFve/mE+hkCxrxvDDJr3uGI/BLnnFkLf7fLZy8VRQyAQpzYMX2pRPF7tUIO7vQlSj85vDHxohOkq1xfzmAZNzzMQFSGeXC+iYNq3V9lSH7+ZqL+iXb5IOo2XBLK0u6PfqyHM4glQAZrKB3J0NaXn+EO41DV+eZC/Xgt4HEm4Q9ikjSPHvgVuDGWpIZ3+0XLl65Rk0DYunCcHIQYX70+/J5zuyApADPjMOMVuLC3q9L9zVCcdJUzqbJ4paqhJBULGgT4E70hT37V31zrNmKqzf/ShK7Mu/hugw3PXakFQJzRIxF96UijjfQGR9n2dOTDgzjvgm/B5Nj2yb2K09uMR2UNxe4/QTD1U/PJ/Yiu1mU5X8B1uHcdCOR1KrBN6hBGNpQw==

I believe that when you build the mesh you'll want to store some of the ids along with the other face/vertex information.

Here's an example using the Polyhedron class but I think others are similar

typedef CGAL::Polyhedron_3<Kernel, CGAL::Polyhedron_items_with_id_3> Polyhedron;
typedef Polyhedron::Facet_iterator Facet_iterator;
typedef Polyhedron::Vertex_iterator Vertex_iterator;


void build_polyhedron_index(Polyhedron &P) {
std::size_t ii = 0;
for (Vertex_iterator vert = P.vertices_begin(); vert != P.vertices_end(); ++vert) {
vert->id() = ii++;
}
ii = 0; // reset the counter
for (Facet_iterator facet = P.facets_begin(); facet != P.facets_end(); ++facet) {
facet->id() = ii++;
}
}


On Thu, Apr 19, 2018 at 8:37 PM, theidleman <> wrote:
I test several examples by using example mesh. The result is good. But when I
open the mesh file, I found the face in the mesh between input and result is
very different.

For example,

Input:
First three lines of face information.
3 170 169 218
3 304 259 871
3 299 298 8

Result:
First three lines of face information.
3 921 914 901
3 901 914 885
3 883 885 914

What I want is to change the face of the result as same as the input.

How can I deal with it?
Thank you very much.



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

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss






Archive powered by MHonArc 2.6.18.

Top of Page