Subject: CGAL users discussion list
List archive
- From: <>
- To:
- Subject: [cgal-discuss] Accessing facet from facet iterator
- Date: Thu, 22 Oct 2009 13:13:59 +0200 (CEST)
Hi everybody!
I am surfacing in polyhedron for hit the facets tahat are not triangular I am
using this code:
cont=0;
for( Surface::Facet_iterator fb = surface.facets_begin()
, fe = surface.facets_end()
; fb != fe
; ++ fb
){
HF_circulator h = fb->facet_begin();
std::size_t order = 0;
do{
++order;
}while( ++h != fb->facet_begin());
if( order == 3)
std::cout << cont << " -TRIANGULAR ->" << order << "\n";
else{
std::cout << cont << " -NÃO TRIANGULAR ->" << order << "\n";
break;
}
cont++;
}
But I have read that the Facet have some methods that, I believe, do the same
job.
I can do this:
Surface::Facet f;
or
Surface::Facet::Facet_handle F;
but I can not use (inside FOR cicle)
f=fb;
guives me
1>c:\users\rlam\desktop\importante copy of
edgecolapse2_16out\edgecolapse2\edgecolapse2.cpp(300) : error C2679: binary
'='
: no operator found which takes a right-hand operand of type
'CGAL::CGALi::In_place_list_iterator<T,Alloc>' (or there is no acceptable
conversion)
and
F=fb;
originate the error
1>c:\users\rlam\desktop\importante copy of
edgecolapse2_16out\edgecolapse2\edgecolapse2.cpp(307) : error C2039:
'is_triangle' : is not a member of
'CGAL::CGALi::In_place_list_iterator<T,Alloc>'
thanks in advance
rlam
- [cgal-discuss] Accessing facet from facet iterator, robertolam, 10/22/2009
- Re: [cgal-discuss] Accessing facet from facet iterator, Laurent Rineau (GeometryFactory), 10/22/2009
Archive powered by MHonArc 2.6.16.