Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Re: parametric mesh criteria for 3D mesh

Subject: CGAL users discussion list

List archive

[cgal-discuss] Re: parametric mesh criteria for 3D mesh


Chronological Thread 
  • From: Ramin H <>
  • To:
  • Subject: [cgal-discuss] Re: parametric mesh criteria for 3D mesh
  • Date: Wed, 16 Dec 2009 12:04:56 -0500
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=C9e8UudOV7oKUY8NE/jrPe2S6e+QnjCk9V+c5ZN4Y/OolBc1ntVR+PV6awjFfrVZwv PwdK23qQQGqACloKRZq4vE+yCgzloLwPOSKKkMEQCsLZ1ivw0kdS2flRD1FWxIdPC7iQ /7HdZ8O117BebD4bHDfD7USFpCHDpE5K3qHx0=

I looked at Mesh_criteria_3.h, Mesh_facet_criteria_3.h and
Mesh_cell_criteria_3.h. As far as I understand, these are the default
meshing criteria defined in CGAL package for Mesh_3 process.

This is how Mesh_cell_criteria_3's constructor looks like:
Mesh_cell_criteria_3(const FT& radius_edge_bound,
const FT& radius_bound)

so, we realize that radius_edge_bound and radius_bound are functors.

Now, going back to
CGAL-3.5/examples/Mesh_3/mesh_polyhedral_domain.cpp, is it possible to
define the following and expect this to just work?

typedef K::FT FT;
typedef FT (Function)(const Point&);

FT function_1 (const Point& p)
{
const FT x1=p.x();
const FT y1=p.y();
const FT z1=p.z();
return x1+y1+z1+1;
}

and then in main.cpp,
int main()
{
// ...
Cell_criteria cell_criteria(function_1, 0.2);
// ...
}

I appreciate your feedback.
Thanks,
-Ramin


On Tue, Dec 15, 2009 at 3:21 PM, Ramin H
<>
wrote:
> Hi everyone,
>
> CGAL-3.5/examples/Mesh_3/mesh_polyhedral_domain.cpp shows using
> constants for defining meshing criteria for 3D mesh generation.
>
> Facet_criteria facet_criteria(25, 0.15, 0.008); // angle, size,
> approximation
> Cell_criteria cell_criteria(4, 0.2); // radius-edge ratio, size
>
> Is it possible to use a function f(x, y, x) instead of a constant
> number to define meshing criteria?
> I appreciate any example/pointer.
>
> Thanks,
> -Ramin
>



Archive powered by MHonArc 2.6.16.

Top of Page