Subject: CGAL users discussion list
List archive
- From: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] Re: Convert C3t3 to Polyhedron
- Date: Mon, 26 Mar 2012 10:40:40 +0200
On 03/25/2012 10:18 PM, Zohar wrote:
The map is needed to only select vertices contributing to the boundary of the desired subdomain.
(So these are the demoDLLs I was missing...)
Good job Sebastien, I included your source in Io_c3t3_plugin.cpp, and added
to Io_c3t3_plugin::save()
std::string fname = qPrintable(path);
fname += ".off";
std::cout<< "Writing "<< fname<< std::endl;
std::ofstream ofs(fname);
output_boundary_of_c3t3_to_off(c3t3_item->c3t3(), 0, ofs);
and now the mesh_3 demo functions as a robust remesher, which doesn't have a
problem with the camel model above for instance, and is better than Graphite
IMO.
Concerning your code, get_vertex_index() saves the v_handle in a map, and
you iterate the faces, but I didn't understand the iterator type, and the
tests you made. I think I need answers to my previous questions first, or go
over the library source.
The test with the two incident tetrahedra is to make sure the facet is
on the boundary of the desired subdomain.
See here for a description of the representation of cells, facets and
edges in a triangulation data structure:
http://www.cgal.org/Manual/latest/doc_html/cgal_manual/TriangulationDS_3_ref/Concept_TriangulationDataStructure_3.html#Cross_link_anchor_1387
http://www.cgal.org/Manual/latest/doc_html/cgal_manual/TriangulationDS_3/Chapter_main.html
I don't know, parameters you passed to the surface mesher might be different from those passed to the volume mesher.
But back to the more general question, how come that this c3t3 remesher
worked, while the c2t3 failed?
If you don't make a proper bug report with a minimal and reproducible
example there are little chance someone can answer.
Sebastien.
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Convert-C3t3-to-Polyhedron-tp4467182p4503965.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- Re: [cgal-discuss] Re: Convert C3t3 to Polyhedron, (continued)
- Re: [cgal-discuss] Re: Convert C3t3 to Polyhedron, Sebastien Loriot (GeometryFactory), 03/22/2012
- [cgal-discuss] Re: Convert C3t3 to Polyhedron, Zohar, 03/23/2012
- Re: [cgal-discuss] Re: Convert C3t3 to Polyhedron, Sebastien Loriot (GeometryFactory), 03/23/2012
- [cgal-discuss] Re: Convert C3t3 to Polyhedron, Zohar, 03/24/2012
- Re: [cgal-discuss] Re: Convert C3t3 to Polyhedron, Sebastien Loriot (GeometryFactory), 03/25/2012
- Re:Re: [cgal-discuss] Re: Convert C3t3 to Polyhedron, Yan Shijiang, 03/25/2012
- Re: [cgal-discuss] Re: Convert C3t3 to Polyhedron, Philipp Moeller, 03/25/2012
- Re:Re: [cgal-discuss] Re: Convert C3t3 to Polyhedron, Yan Shijiang, 03/25/2012
- Re: [cgal-discuss] Re: Convert C3t3 to Polyhedron, Sebastien Loriot (GeometryFactory), 03/25/2012
- Re: [cgal-discuss] Re: Convert C3t3 to Polyhedron, Sebastien Loriot (GeometryFactory), 03/23/2012
- [cgal-discuss] Re: Convert C3t3 to Polyhedron, Zohar, 03/23/2012
- [cgal-discuss] Re: Convert C3t3 to Polyhedron, Zohar, 03/25/2012
- Re: [cgal-discuss] Re: Convert C3t3 to Polyhedron, Sebastien Loriot (GeometryFactory), 03/26/2012
- [cgal-discuss] Re: Convert C3t3 to Polyhedron, Zohar, 03/27/2012
- Re: [cgal-discuss] Re: Convert C3t3 to Polyhedron, Laurent Rineau (GeometryFactory), 03/27/2012
- Re: [cgal-discuss] Re: Convert C3t3 to Polyhedron, Sebastien Loriot (GeometryFactory), 03/22/2012
Archive powered by MHonArc 2.6.16.