Subject: CGAL users discussion list
List archive
- From: tang <>
- To:
- Subject: [cgal-discuss] Question about CGAL example: mesh_implicit_domains
- Date: Sat, 5 Apr 2014 22:23:55 -0700 (PDT)
Dear all,
I am trying to test the CGAL example 'mesh_implicit_domains'. The sphere and
torus are replaced by two boxes and the code run successfully. However, when
I changed the function 'cube_function' to follows, tens of errors appear
when compiling the code:
//template <int x0,int y0,int z0,int r0> //// when use this line,
the code is successfully compiled
template <double x0,double y0,double z0,double r0>
double cube_function (double x, double y, double z) // (c=(x0,y0,z0),
r=Sq_radius)
{
double r=r0/2.0;
if( x-x0 < r && -(x-x0) < r &&
y-y0 < r && -(y-y0) < r &&
z-z0 < r && -(z-z0) < r )
return -1.;
return 1.;
}
could anyone help me to take a look at it?
Thanks,
Tang Laoya
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Question-about-CGAL-example-mesh-implicit-domains-tp4659082.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- [cgal-discuss] Question about CGAL example: mesh_implicit_domains, tang, 04/06/2014
- Re: [cgal-discuss] Question about CGAL example: mesh_implicit_domains, tang, 04/06/2014
- Re: [cgal-discuss] Question about CGAL example: mesh_implicit_domains, tang, 04/06/2014
- Re: [cgal-discuss] Question about CGAL example: mesh_implicit_domains, tang, 04/06/2014
- Re: [cgal-discuss] Question about CGAL example: mesh_implicit_domains, Laurent Rineau (CGAL/GeometryFactory), 04/07/2014
- Re: [cgal-discuss] Question about CGAL example: mesh_implicit_domains, tang, 04/10/2014
- Re: [cgal-discuss] Question about CGAL example: mesh_implicit_domains, Laurent Rineau (CGAL/GeometryFactory), 04/11/2014
- Re: [cgal-discuss] Question about CGAL example: mesh_implicit_domains, tang, 04/10/2014
- Re: [cgal-discuss] Question about CGAL example: mesh_implicit_domains, tang, 04/10/2014
Archive powered by MHonArc 2.6.18.