Subject: CGAL users discussion list
List archive
- From: "Tyver Ray" <>
- To:
- Subject: Re: [cgal-discuss] Re: Triangle comparaison
- Date: Wed, 20 Jun 2007 15:14:55 +0200
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=RKAkqRhRhROGAj3zsxGsdbY34B/uxN76ZB8f02W9fpawNXezsGS/pMtisnLktvSI+RQm/IRylWf33ZFHX1q0nIVQlrMioe7CBV4n8Ggwt9HHGOnWWYJLO9u7UTbailLUzgPPMczhZ6aJQ5xWy+nU9esAednzHPvL/XIqLA4kqC4=
Hello!
After rereading the documentation I've created my own classes of vertex and face as Vb and Fb below. :)
But the triangulation I use is with Triangulation_euclidean_traits_xy_3 because I have x, y, z points.
Now I can just do Triangulation.insert(Point(0, 3)); and no more Triangulation.insert(Point(0, 3, 5));
My typedefs are :
struct K : CGAL::Exact_predicates_inexact_constructions_kernel {};
typedef CGAL::Triangulation_euclidean_traits_xy_3<K> Gt;
typedef My_vertex_base<K> Vb;
typedef My_face_base<K> Fb;
typedef CGAL::Triangulation_data_structure_2<Vb, Fb> Tds;
typedef CGAL::Delaunay_triangulation_2<Gt,Tds> Triangulation;
typedef Triangulation::Vertex_handle Vertex_handle;
typedef Triangulation::Point Point;
There's probably something I've missed...Do you know wrong with it?
Thank you for your attention!
2007/6/20, Andreas Fabri <>:
ok. At least it proves that you read the manual, which I almost
had recommended violently in my previous mail ==:>-
andreas
Tyver Ray wrote:
> It's from : http://www.cgal.org/Manual/3.3
> <http://www.cgal.org/Manual/3.3/doc_html/cgal_manual/Mesh_2_ref/Concept_DelaunayMeshFaceBase_2.html#Cross_link_anchor_1060 >
> /doc_html/cgal_manual/Mesh_2_re
> <http://www.cgal.org/Manual/3.3/doc_html/cgal_manual/Mesh_2_ref/Concept_DelaunayMeshFaceBase_2.html#Cross_link_anchor_1060 >f/Concept_DelaunayMeshFaceBase_
> <http://www.cgal.org/Manual/3.3/doc_html/cgal_manual/Mesh_2_ref/Concept_DelaunayMeshFaceBase_2.html#Cross_link_anchor_1060 >
> 2.html#Cross_link_anchor_1060
> <http://www.cgal.org/Manual/3.3/doc_html/cgal_manual/Mesh_2_ref/Concept_DelaunayMeshFaceBase_2.html#Cross_link_anchor_1060 >
>
> Thanks for the other idea...
>
> Tyv
>
> 2007/6/20, Andreas Fabri <
> <mailto: >>:
> > Hello,
> >
> > No idea where the set_in_domain method comes from, but you
> > might have a look at the section entitles Flexibility in
> > the user manual of the triangulation package
> >
> http://www.cgal.org/Manual/3.3/doc_html/cgal_manual/Triangulation_2/Chapter_main.html#Section_25.11
> >
> > It explains you and gives you example code for adding
> > information to vertices and faces.
> >
> > andreas
> >
> >
> >
> > Tyver Ray wrote:
> > > I've tried your relevant idea but I can't access the set_in_domain
> > > method...
> > > I coded as below:
> > >
> > > Line_face_circulator lfc = dt.line_walk(start, end), done(lfc);
> > > if (lfc != (CGAL_NULL_TYPE) NULL)
> > > {
> > > do
> > > {
> > > if( !dt.is_infinite(lfc) )
> > > {
> > > ((Tds::Face_base)lfc) -> set_in_domain(false);
> > > }
> > > }
> > > while (++lfc != done);
> > > }
> > >
> > > Thanks for your advice!
> > >
> > > Tyv
> > >
> > > 2007/6/19, Laurent Rineau <
> <mailto:>>:
> > >> On Tuesday 19 June 2007 05:45:31 pm Tyver Ray wrote:
> > >> > To be clear, my face_circulator is from the same delaunay dt.
> > >> > I want to scan only the triangles of dt which aren't in my
> > >> face_circulator.
> > >>
> > >> Use a face base with a special boolean.
> > >>
> > >> Travel through the face_circulator, and use that special boolean to
> > >> mark faces
> > >> that are in the face_circulator.
> > >>
> > >> Then you can scan all faces of the triangulation, and filter those how
> > >> have
> > >> the marker.
> > >>
> > >> --
> > >> Laurent Rineau
> > >> INRIA - Sophia Antipolis
> > >> BP 93, 2004 Route des Lucioles
> > >> 06902 Sophia Antipolis Cedex FRANCE
> > >> --
> > >> You are currently subscribed to cgal-discuss.
> > >> To unsubscribe or access the archives, go to
> > >> https://lists-sop.inria.fr/wws/info/cgal-discuss
> > >>
> >
> > --
> > You are currently subscribed to cgal-discuss.
> > To unsubscribe or access the archives, go to
> > https://lists-sop.inria.fr/wws/info/cgal-discuss
> <https://lists-sop.inria.fr/wws/info/cgal-discuss >
> >
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss
- Triangle comparaison, Tyver Ray, 06/19/2007
- Re: Triangle comparaison, Tyver Ray, 06/19/2007
- Re: [cgal-discuss] Re: Triangle comparaison, Laurent Rineau, 06/19/2007
- Re: [cgal-discuss] Re: Triangle comparaison, Tyver Ray, 06/20/2007
- Re: [cgal-discuss] Re: Triangle comparaison, Andreas Fabri, 06/20/2007
- Re: [cgal-discuss] Re: Triangle comparaison, Tyver Ray, 06/20/2007
- Re: [cgal-discuss] Re: Triangle comparaison, Andreas Fabri, 06/20/2007
- Re: [cgal-discuss] Re: Triangle comparaison, Tyver Ray, 06/20/2007
- Re: [cgal-discuss] Re: Triangle comparaison, Andreas Fabri, 06/20/2007
- Re: [cgal-discuss] Re: Triangle comparaison, Tyver Ray, 06/20/2007
- Re: [cgal-discuss] Re: Triangle comparaison, Andreas Fabri, 06/20/2007
- Re: [cgal-discuss] Re: Triangle comparaison, Tyver Ray, 06/20/2007
- Re: [cgal-discuss] Re: Triangle comparaison, Laurent Rineau, 06/19/2007
- Re: Triangle comparaison, Tyver Ray, 06/19/2007
Archive powered by MHonArc 2.6.16.