Subject: CGAL users discussion list
List archive
- From: Andreas Fabri <>
- To:
- Subject: Re: [cgal-discuss] Re: how to remove a vertex from a polyhedron.
- Date: Sat, 23 Aug 2008 11:35:08 +0200
Hello,
As it is "halfedges_begin" (plural form of halfedge)
it is also "vertices_begin" and not "vertex_begin".
andreas
Shi Yan wrote:
i know this, but you know,
there is no such thing like hds.vertex_begin()
i only find hds. faces_begin() hds.halfedges_begin()
so i was wondering, how to travel the whole vertex list with this hds????
On Fri, Aug 22, 2008 at 2:25 AM, Peter Hachenberger
<>
wrote:
Hi Shi,
Polyhedron_3 offers an interface that allows enhancing its functionality.
Instead of
adding a function to the HDS, you write a class C that inherits from
Modifier_class<HDS>
an has a function delegate(HDS& hds), which implements the function you
need. Then
you can use this function on a polyhedron P by calling
Polyhedron_3 P;
C c;
P.delegate(c).
You can find more on this mechanism in
http://www.cgal.org/Manual/3.3/doc_html/cgal_manual/Polyhedron/Chapter_main.html#Subsection_12.6.2
Peter
-----"Shi Yan"
<>
wrote: -----
To:
From: "Shi Yan"
<>
Date: 08/22/2008 03:14AM
Subject: [cgal-discuss] Re: how to remove a vertex from a polyhedron.
so this is how i do vertex removal:
i hacked the polyhedron_3.h and added this function
void eraseIsolatedVertex(Vertex_handle v)
{
HalfedgeDS_decorator<HDS> D(hds);
CGAL_precondition(v->halfedge()==0);
D.vertices_erase(v);
}
i don't think this is the right way to do this. but this is the only
way i can think of.
On Thu, Aug 21, 2008 at 4:43 PM, Shi Yan
<>
wrote:
hello guys,--
i have some isolated vertices in my polyhedron model that link to no
half-edges. now i want to remove them. but it seems that cgal has no
vertex erase function. so how should i do that ? thank you very much.
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] how to remove a vertex from a polyhedron., Shi Yan, 08/22/2008
- [cgal-discuss] Re: how to remove a vertex from a polyhedron., Shi Yan, 08/22/2008
- Re: [cgal-discuss] Re: how to remove a vertex from a polyhedron., Peter Hachenberger, 08/22/2008
- Re: [cgal-discuss] Re: how to remove a vertex from a polyhedron., Shi Yan, 08/23/2008
- Re: [cgal-discuss] Re: how to remove a vertex from a polyhedron., Andreas Fabri, 08/23/2008
- Re: [cgal-discuss] Re: how to remove a vertex from a polyhedron., Shi Yan, 08/24/2008
- Re: [cgal-discuss] Re: how to remove a vertex from a polyhedron., Andreas Fabri, 08/23/2008
- Re: [cgal-discuss] Re: how to remove a vertex from a polyhedron., Shi Yan, 08/23/2008
- Re: [cgal-discuss] Re: how to remove a vertex from a polyhedron., Peter Hachenberger, 08/22/2008
- [cgal-discuss] Re: how to remove a vertex from a polyhedron., Shi Yan, 08/22/2008
Archive powered by MHonArc 2.6.16.