Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] add 0-d features

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] add 0-d features


Chronological Thread 
  • From: Jane Tournois <>
  • To:
  • Subject: Re: [cgal-discuss] add 0-d features
  • Date: Thu, 8 Sep 2016 16:12:39 +0200
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=None ; spf=None
  • Ironport-phdr: 9a23:1xN1JR8l6KWYo/9uRHKM819IXTAuvvDOBiVQ1KB80e8cTK2v8tzYMVDF4r011RmSDNydtagP1Lae8/i5HzdRudDZ6DFKWacPfidNsd8RkQ0kDZzNImzAB9muURYHGt9fXkRu5XCxPBsdMs//Y1rPvi/6tmZKSV3BPAZ4bt74BpTVx5zukbvjotuNOU4X2HL9Oeo0d0Tu612J94E/ushLEu4J0BzHo39FKax95FhDAhatpSv6/dq655V58i5d6LoL/s9EVrjmLexjFeQLRGduDmYu+ce+tQXfVRDdoTwHQ2AOm1xJBRLE5Vf0RNDqoy7iv6183iedesb5RLRxVTW55LpwU0zUj3IMODc9tW3Wkcdtl7lzoRS7phU5zZSHTpuSMa9cd6XQNe8dWHBHWcdKH3hDC4WxKZcIEvAHOudDh4bwoF4DsQGvCwCnGOT123lDgXqgjv5y6PgoDQyThF9oJNkJqnmB9Ng=

Yes, the one I sent you.

You need to dig in the example files of Mesh_3 to find the associated .h file

Jane.


Le 08/09/2016 à 15:51, Nico Schlömer a écrit :
> So, the function `initialize_triangulation_from_labeled_image` is the function you need to replace with your own initialization procedure.

Aha! Is there an example for a custom initialization available?

Cheers,
Nico

On Thu, Sep 8, 2016 at 3:48 PM Jane Tournois <> wrote:

Hi Nico,

The basic meshing algorithm is :

- initialize the triangulation with a small number of points to help the refinement process start
- refine the bad elements (faces, tets) until there is no bad elements left.

The protection of features is a part of the initialization procedure, and you can decide to make your own initialization by following the same framework as this example.  So, the function `initialize_triangulation_from_labeled_image` is the function you need to replace with your own initialization procedure.

It requires inserting the feature vertices as weighted points, maybe also protect some polylines, and basically put some points on important areas of the object to be meshed.

Hope it helps,

Jane.

Le 08/09/2016 à 11:30, Nico Schlömer a écrit :
Thanks Jane for the reply!

I've checked out the example [1] but didn't find it very enlightening. `random_labeled_image()`, `initialize_triangulation_from_labeled_image`? Perhaps a wrong link.

Cheers,
Nico

[1] http://doc.cgal.org/4.9/Mesh_3/Mesh_3_2mesh_3D_image_with_custom_initialization_8cpp-example.html

On Thu, Sep 8, 2016 at 10:22 AM Jane Tournois <> wrote:
Hi Nico,

the functions that are available so far only allow to add polyline-features.

In CGAL-4.9-beta1 [1], we have published an example showing how to
customize the initialization of the meshing process [2].

Using the same framework, you can add a 0-d feature by inserting a
weighted point at the tip of your cone. This way you can make sure it
will be present in the output mesh.

Best,

Jane


[1] http://www.cgal.org/2016/08/04/cgal49-beta1/
[2]
http://doc.cgal.org/4.9/Mesh_3/Mesh_3_2mesh_3D_image_with_custom_initialization_8cpp-example.html


Le 30/08/2016 à 12:27, Nico Schlömer a écrit :
> Hi everyone,
>
> I'd like to mark the tip of a cone as a 0-dimensional feature; how to
> do that? So far, I've only found 1D-feature addition [1].
>
> Cheers,
> Nico
>
> [1]
> http://doc.cgal.org/latest/Mesh_3/classCGAL_1_1Mesh__domain__with__polyline__features__3.html#a2e99457765c639ab583d2dd1057160ea

--
Jane Tournois, PhD
R&D Engineer at GeometryFactory
http://www.geometryfactory.com/


--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss



-- 
Jane Tournois, PhD
R&D Engineer at GeometryFactory
http://www.geometryfactory.com/

-- 
Jane Tournois, PhD
R&D Engineer at GeometryFactory
http://www.geometryfactory.com/



Archive powered by MHonArc 2.6.18.

Top of Page