Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Question about CGAL example: mesh_implicit_domains

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Question about CGAL example: mesh_implicit_domains


Chronological Thread 
  • From: tang <>
  • To:
  • Subject: Re: [cgal-discuss] Question about CGAL example: mesh_implicit_domains
  • Date: Wed, 9 Apr 2014 15:28:05 -0700 (PDT)

Hi Sebastien,

Thank you very much for your kindly reply. Is there any good method to pass
double data to this kind of function?

On the other hand, I have tested the example "mesh_implicit_domains.cpp"
(with integer data passed in) but found it can't generate multiple domains
meshes with the given feature. For example, by this way:

int main()
{
// Define functions
//Function f1(&torus_function);
//Function f2(&sphere_function<5>);
//Function f3(&sphere_function<2>);
Function f1(&cube_function<-1,0,0,2>);
Function f2(&cube_function<1,0,0,2>);
Function_vector v;
v.push_back(&f1);
v.push_back(&f2);
//v.push_back(&f3);
// Domain (Warning: Sphere_3 constructor uses square radius !)
Mesh_domain domain(v, K::Sphere_3(CGAL::ORIGIN, 5.*5.), 1e-6);
// Set mesh criteria
Facet_criteria facet_criteria(30, 0.2, 0.0001); // angle, size,
approximation


The output mesh is only one cube. I expect 3 sub-domains: one large sphere
with two small cubes inside its.

Thanks,
Tang Laoya



--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Question-about-CGAL-example-mesh-implicit-domains-tp4659082p4659102.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.18.

Top of Page