Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] meshing 2d

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] meshing 2d


Chronological Thread 
  • From: Hansjoerg Seybold <>
  • To:
  • Subject: Re: [cgal-discuss] meshing 2d
  • Date: Sun, 16 May 2010 14:47:16 +0200

Hello,
i could not find a function /flag in the mesher that identifies the boundary
edges, meaning edges that are part of the initial PLGS.
I saw that for a 3D mesh a IS_BOUNDARY type exists. but for 2d meshes i could not find an equivalence.
Do i have to check the boundary query by hand using geometric queries for the vertex points of the mesh and the  edges of the original PLGS?

thanks a lot
    hansjoerg


On Thu, Apr 22, 2010 at 3:31 PM, Hansjoerg Seybold <> wrote:
Thanks for the reply.

 the mesh_domain thus is a simple triangulation object.

One question remains: how do i identify if the newly inserted vertices (edge) is lying on the original boundary
triangulation identify the boudnary of the mesh domain

thanks


On Thu, Apr 22, 2010 at 2:01 PM, Ramin H <> wrote:
Look here:
http://www.cgal.org/Manual/last/doc_html/cgal_manual/Triangulation_2_ref/Class_Triangulation_2.html

typedef Tds::Face_iterator All_faces_iterator; iterator over all faces.
typedef Tds::Edge_iterator All_edges_iterator; iterator over all edges
typedef Tds::Vertex_iterator All_vertices_iterator; iterator over all vertices


-Ramin


On Thu, Apr 22, 2010 at 5:44 AM, Hansjoerg Seybold <> wrote:
hello,
I am trying to make a simple 2D mesher for a FEM code using the cgal meshing capabilities.

 I experimenteeeed with the meshing examples and demos. What i could not find in the
documentation and the examples is

How can i iterate through the mesh, Faces, Vertices, Edges?

Is there a method to determine if a edge/vertex lies on a boundary (meaning part of the CDT which is used as input
for the mesher?

Are there default io streams for the meshs?

It would be nice if anybody has some suggestions references for  documentation etc on this topic.

Thanks a lot
   best hansjoerg






Archive powered by MHonArc 2.6.16.

Top of Page