get incident facets in Triangulation_3

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

get incident facets in Triangulation_3

sanlington
Hi everyone,
 
 the function
 
template<class Outputiterator>
Outputiterator incident_facets(Vertex_handle v,Outputiterator facets) in
 
CGAL::Triangulation_3<TriangulationTraits_3,TriangulationDataStructure_3>
requires some preconditions,one of them is:dimension()==3.
 
if all the input points of Triangulation_3 is on a plane,that means dimension==2,but i still need to get all the facets incident to one vertex,is there some other ways to get them ?
thanks.
 
 
 



三盘联动,起价4300
Reply | Threaded
Open this post in threaded view
|

Re: get incident facets in Triangulation_3

Camille Wormser
>  the function
>
> template<class Outputiterator>
> Outputiterator incident_facets(Vertex_handle v,Outputiterator  
> facets) in
>
> CGAL
> ::Triangulation_3<TriangulationTraits_3,TriangulationDataStructure_3>
> requires some preconditions,one of them is:dimension()==3.
>
> if all the input points of Triangulation_3 is on a plane,that means  
> dimension==2,but i still need to get all the facets incident to one  
> vertex,is there some other ways to get them ?

In such a case (dimension == 2), you are expected to call  
incident_cells, which does not have this precondition, and which will  
return the degenerate cells around the vertex.
--
Camille

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss
Reply | Threaded
Open this post in threaded view
|

Re: get incident facets in Triangulation_3

Camille Wormser
> In such a case (dimension == 2), you are expected to call  
> incident_cells, which does not have this precondition, and which  
> will return the degenerate cells around the vertex.

By the way, the documentation is wrong on this subject ("If  
t.dimension() <3, then do nothing"). It has already  been updated  
internally, but the change has not been propagated to the public  
documentation yet.
--
Camille

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