Subject: CGAL users discussion list
List archive
- From: Peter Hachenberger <>
- To:
- Subject: Re: [cgal-discuss] Re: how to remove a vertex from a polyhedron.
- Date: Fri, 22 Aug 2008 11:25:41 +0200
- Importance: Normal
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
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.