Subject: CGAL users discussion list
List archive
- From: Dennis Endt <>
- To:
- Subject: Re: [cgal-discuss] Facets_iterator
- Date: Thu, 09 Oct 2008 12:52:02 +0200
- Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=H3QjrWdkxZA8DVJ92Wy/OIwpdJb9jljtClCkT3I5SzRPxgP8n0CwOMCajtBqCF7jXw Xsfab8HTkRispbfGb+ilSPtEs2U97dV/2tIMIzHE9tas7b0SKnPadIggnK9anaKEOR02 xsbi2bmXeDmEKf3h7vFOBNG1s9li2Qu8DLkEA=
Hi,
I have to reply on this, because I didnt find a solution for this yet.
First I cannot use 2D Triangulation because I have Points with the same
x,y- but different z-Coordinates.
So I looked in the manual but I really don`t know what to use instead.
How can I triangulate my Points without to loose the structure of my
buildings? Can anyone give me an advice plz?
Best
Dennis
M. Hazegh schrieb:
> Did you bother looking at the manual?
> http://www.cgal.org/Manual/3.3/doc_html/cgal_manual/Mesh_2/Chapter_main.html
>
> On Sat, Oct 4, 2008 at 6:13 PM, Dennis Endt
> <>
> wrote:
>
>> Thanks for you help, I foudn a solution with
>>
>> Triangulation T;
>>
>> for(Triangulation::Finite_facets_iterator it = T.finite_facets_begin();
>> it != T.finite_facets_end(); it++)
>> {
>> T.triangle(*it).vertex(i)
>> }
>>
>> Bu another Question. I integrated CGAL into my Project about to
>> triangulate faces of different buildings.
>>
>> So I tried to use the 3D Delaunay Triangulation, but now I`ve the
>> problem, that he also triangulates *in* my Object and not only the
>> surfaces.
>>
>> For example I´ve an 3D Rectangle, what I have to do, to triangulate only
>> the surfaces, so that I will have two triangles for each side and no
>> triangles in my object?
>>
>> I tried also to adding the faces step by step about to triangulate them
>> afterwards but it didn`t helped:
>>
>> Triangulation T;
>>
>> for(map<vector<QString>,QString>::iterator fListIter=fList.begin();
>> fListIter != fList.end(); fListIter++)
>> {
>> vector<Triangulation::Point> triFacePoints;
>> vector<QString> fPoints = fListIter->first;
>> for(vector<QString>::iterator fPointsIter = fPoints.begin();
>> fPointsIter != fPoints.end(); fPointsIter++)
>> {
>> map<QString,Triangulation::Point> ::iterator iter =
>> pList.find(*fPointsIter);
>> if(iter != pList.end())
>> {
>> triFacePoints.push_back(iter->second);
>> }
>> }
>> T.insert(triFacePoints.begin(),triFacePoints.end());
>> }
>>
>> This is very important to me. I hope someone could help me.
>>
>> Greets...
>>
>> M. Hazegh schrieb:
>>
>>> Your code will iterate through all faces of the triangulation. since
>>> "it" is pointing to the current face, then
>>> CGAL::to_double(it->vertex(i).x())
>>> will return the x coordinate of the i'th vertex. For a triangle i = 0, 1,
>>> 2
>>>
>>> If you want to iterate through all vertices of the triangulation, you
>>> can use a Vertex_iterator. See the manual for more info.
>>>
>>> On Sat, Oct 4, 2008 at 2:41 PM, Dennis Endt
>>> <>
>>> wrote:
>>>
>>>
>>>> Can anyone plz tell me how to read the the points of a facet?
>>>>
>>>> I tried to use this:
>>>>
>>>> for(Triangulation::Finite_facets_iterator it = T.finite_facets_begin();
>>>> it != T.finite_facets_end(); it++)
>>>> {
>>>> }
>>>>
>>>> But I didn`t find anything then to read the points with their
>>>> coordinates.
>>>>
>>>> And what is the difference between finite and not finite faces/edges ...?
>>>>
>>>> I`m very thankful for every helpful information.
>>>>
>>>>
>>>>
>>>> --
>>>> 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
>>
>>
- [cgal-discuss] Facets_iterator, Dennis Endt, 10/04/2008
- Re: [cgal-discuss] Facets_iterator, M. Hazegh, 10/04/2008
- Re: [cgal-discuss] Facets_iterator, Dennis Endt, 10/05/2008
- Re: [cgal-discuss] Facets_iterator, M. Hazegh, 10/05/2008
- Re: [cgal-discuss] Facets_iterator, Dennis Endt, 10/09/2008
- Re: [cgal-discuss] Facets_iterator, Monique Teillaud, 10/09/2008
- Re: [cgal-discuss] Facets_iterator, Dennis Endt, 10/09/2008
- Re: [cgal-discuss] Facets_iterator, Manuel Caroli, 10/06/2008
- Re: [cgal-discuss] Facets_iterator, Dennis Endt, 10/06/2008
- Re: [cgal-discuss] Facets_iterator, Manuel Caroli, 10/06/2008
- Re: [cgal-discuss] Facets_iterator, Dennis Endt, 10/06/2008
- Re: [cgal-discuss] Facets_iterator, Manuel Caroli, 10/06/2008
- Re: [cgal-discuss] Facets_iterator, Dennis Endt, 10/06/2008
- Re: [cgal-discuss] Facets_iterator, M. Hazegh, 10/05/2008
- Re: [cgal-discuss] Facets_iterator, Dennis Endt, 10/05/2008
- Re: [cgal-discuss] Facets_iterator, M. Hazegh, 10/04/2008
Archive powered by MHonArc 2.6.16.