Subject: CGAL users discussion list
List archive
- From: Shrabani Ghosh <>
- To:
- Subject: [cgal-discuss] Conversion from VTK space to CGAL space
- Date: Thu, 3 Oct 2019 00:31:07 -0500 (CDT)
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=SoftFail ; spf=Pass
- Ironport-phdr: 9a23:Tu3s6h8AvHqInf9uRHKM819IXTAuvvDOBiVQ1KB41+gcTK2v8tzYMVDF4r011RmVBN6dt60P2rGempujcFRI2YyGvnEGfc4EfD4+ouJSoTYdBtWYA1bwNv/gYn9yNs1DUFh44yPzahANS47xaFLIv3K98yMZFAnhOgppPOT1HZPZg9iq2+yo9JDffgtFiCCybL5wIxm7qQvcvdQKjIV/Lao81gHHqWZSdeRMwmNoK1OTnxLi6cq14ZVu7Sdete8/+sBZSan1cLg2QrJeDDQ9LmA6/9brugXZTQuO/XQTTGMbmQdVDgff7RH6WpDxsjbmtud4xSKXM9H6QawyVD+/6apgVR3mhzodNzMh/m/ZitJ+gqFGrh2uuxNxzJXZYJ2XOfZiYq/RYc8WSXRHU81MVyJBGIS8b44XAuQcPeZYtZPyqEAUohu4BAmnGeLhyj9Phn/t3a0xzuMsERrc3AM7GdICqnvUrNXyNKcJUeC4yK3FwC7Mb/NTwzj96YzIfgo9rvGLWLJ9aMzcwlQhGQPCi1Wfs43lPzWN2+QLqWeU9PFvVeaxhGI9tw5xpT2vy8ExgYfKnoIY0k3I+CF9zYovK9C1S1R3bN2lHZdKtiyXNo17Sd44TW5yoiY10LgGtIa7fCcUzJQnwAbSa/qIfoSS5BLsTv2eLix8hH17Yr6wmxGy8U24xu39UMm7zkpKozJYntTIsn0BzRLe58udRvZ+/0qtwzeC2gHL5uFBO080lK7bK5A7wr43k5oeqV/DHjXtl0XwlqOWeUUk+u+z6+TnZrjrooSRN4Bxig7kM6QuntazDvg/MggLR2Sb4/iz1KX//U3lR7VHluE5kqbDv5DePMgUu6+5AxRJ3YY+8Ba/FCyr0M8YnHkCNFJKYgiLj4nvO1HUIfD3F+2zg1q2kGQj+/eTNbLoBtDBL2PIjaz6Vbd78U9VjgQpnv5F4JcBMbEbKfj6XE65m9zfFR9xZxeuyeChB9V6zYNPCEqAB6aYNOXZtlretbFnGPWFeIJA4GW1EPMi/fO71SZoy29YRrGg2N4sUF79G/1nJ0uDZn+124UOFG4Lukw1S+m40wTeAw4WXG67WucH3h9+EJivVN6RSYWkgbjH1yC+TMUPOzJ2T2uUGHKtTL2qHvcBbCXLf51nznoCXLKrT4Jn3har5lb3
Hi,
I am interested to convert a mesh from vtk space to cgal space.
In my vtk mesh, let's say two different information exists for vertices. I
used the same vertex id to assign a color to the CGAL mesh, but the CGAL
mesh does not look like the same.
<http://cgal-discuss.949826.n4.nabble.com/file/t376134/36.png>
<http://cgal-discuss.949826.n4.nabble.com/file/t376134/37.png>
The first picture is the vtk file. Here, all the vertices of one side of the
mesh are red. I assigned the same for the CGAL but I got the mesh look like
this.
I think, there is a is difference between CGAL and vtk vertex.
In my code, I used property_map.
Mesh::Property_map<vertex_descriptor,CGAL::Color> vcolors;
And assigned value something like this,
if(vtkFileVertexValue[i] == 2)
vcolors[vd] = CGAL::RED; // here i and vd are the same value
I have tried all the patterns, but could not get a pattern where
vtkFilevertex will be exactly the same place of CGAL vertex.
Another question, is it possible to increase the vertex_descriptor by more
than one in the loop? Like below here
BOOST_FOREACH( vertex_descriptor vd, m.vertices())
how can I increase the vd by 5 in the loop?
Regards
Shrabani Ghosh
--
Sent from: http://cgal-discuss.949826.n4.nabble.com/
- [cgal-discuss] Conversion from VTK space to CGAL space, Shrabani Ghosh, 10/03/2019
Archive powered by MHonArc 2.6.18.