Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Re: Convert C3t3 to Polyhedron

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Re: Convert C3t3 to Polyhedron


Chronological Thread 
  • 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:


(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 map is needed to only select vertices contributing to the boundary of the desired subdomain.
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


But back to the more general question, how come that this c3t3 remesher
worked, while the c2t3 failed?
I don't know, parameters you passed to the surface mesher might be different from those passed to the volume mesher.
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.





Archive powered by MHonArc 2.6.16.

Top of Page