Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Re: how to remove a vertex from a polyhedron.

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Re: how to remove a vertex from a polyhedron.


Chronological Thread 
  • From: "Shi Yan" <>
  • To:
  • Subject: Re: [cgal-discuss] Re: how to remove a vertex from a polyhedron.
  • Date: Fri, 22 Aug 2008 15:36:04 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=VnSF0OSGHfWmR0KrubMfCeqwtPxBvGgcCYn4xxdgMnmulaojUsAX5lz8X39yfG0mS6 lMwfcvA3HKQiONDGKScdmQArO/qIYwW99kPJuPbar7/+Kusj0PK6+scge8QvnkyUvOaN B3YUCazxr5VMThZUlXT2A27p4Uee5Wa4cRV9A=

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
>
>



--
Dept. of Computer Science
University of California, Davis
Homepage:http://wwwcsif.cs.ucdavis.edu/~yans/



Archive powered by MHonArc 2.6.16.

Top of Page