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: Thu, 17 Dec 2009 11:40:44 -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:content-transfer-encoding; b=vDhljnK1f7wvZqIQufH5rXPiUPWJLzCfi8FEldf89M90yIZN+sidfmkkVlFakBaJu+ za7JMG92D6OIQXsdo3R1gMFTYwGPhIkgpDvJhgwcn+m6USRjImwtA51EaKHtVMglSBND yMj4DClO4NS1JzabAa8Fe6mUd88bGMvNEomVI=

This has turned into a monologue. I wonder if my questions are trivial
or everyone is already on vacation :)

Simply put: to provide a non-constant meshing criteria to drive Mesh_3
process, can I use the existing Mesh_criteria_3.h or I have implement
a new class, say, Mesh_criteria_parametric_3.h?

-Ramin

On Wed, Dec 16, 2009 at 12:04 PM, Ramin H
<>
wrote:
> 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