Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Re: Mesh generation question

Subject: CGAL users discussion list

List archive

[cgal-discuss] Re: Mesh generation question


Chronological Thread 
  • From: Ram <>
  • To:
  • Subject: [cgal-discuss] Re: Mesh generation question
  • Date: Wed, 25 Jan 2012 12:53:16 -0800 (PST)

Hi Laurent,

I am now iterating the tetrahedrons using:

for ( typename C3t3::Cells_in_complex_iterator cit =
c3t3.cells_in_complex_begin();
cit != c3t3.cells_in_complex_end(); ++cit){
gv << 4 << " "
<< V[cit->vertex(0)] << " "
<< V[cit->vertex(1)] << " "
<< V[cit->vertex(2)] << " "
<< V[cit->vertex(3)] << " "
<< "\n"; // without color.
// << 4 << drand48() << drand48() << drand48() << 1.0; // random
color.
}

With the modification you suggested, I am able to triangulate the data I
have. Here are the criterions I'm using

Mesh_criteria criteria(edge_size = 25.0,
facet_angle = 15, facet_size = 15.0,
facet_distance = 0.05,
cell_radius_edge_ratio = 3, cell_size = 50.0);

(This is just for the cube, after detect_features)

And then I insert points and then use:

Mesh_criteria new_criteria(facet_angle=20.0, cell_radius_edge=3,
cell_size=125.0);

// Mesh refinement
CGAL::refine_mesh_3(c3t3, domain, new_criteria);


But when I output, I get the attached picture (capture.jpg). What am I doing
wrong? Why these large skinny triangles on the surface?

http://cgal-discuss.949826.n4.nabble.com/file/n4328481/Capture.jpg

Thanks for the help,
--Ram.


--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Mesh-generation-question-tp4300233p4328481.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.16.

Top of Page