Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] update of power diagram vertices

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] update of power diagram vertices


Chronological Thread 
  • From: Haibo Chen <>
  • To: "" <>
  • Subject: Re: [cgal-discuss] update of power diagram vertices
  • Date: Wed, 22 May 2013 13:32:14 +0800

well,the doc of regular triangulation 2 defines  Trait:point2 as point2, and the weighted point mapper2 maps Geotraits: weighted point2 to point2. Hence, I believe wloroit that it will work. I havent tried it, but i definitely will. I'll let u know then. It's tempting to try.

在 2013年5月22日星期三,杨成林 写道:

I don't think the inherited move function can work well in Regular_triangulation_2 while all the other triangulations implement their own move functions. Is this a bug?

在 2013-5-22 上午12:09,"Sebastien Loriot (GeometryFactory)" <>写道:
Yes it should work.

Sebastien.

On 05/21/2013 06:01 PM, liudaisuda wrote:
Based on my understanding of your information, when in cases where I am
not sure about whether a vertex would be hidden after movement, it is
inappropriate to call move() to update positions of vertices. What do
you think?


On Tue, May 21, 2013 at 3:39 PM, Sebastien Loriot (GeometryFactory) [via
cgal-discuss] <[hidden email]
</user/SendEmail.jtp?type=node&node=4657539&i=0>> wrote:

    After digging a bit, I found out that the move function is not
    documented on purpose for regular triangulations as it does not work as
    soon as a vertex gets hidden.

    Sebastien.



    On 05/20/2013 05:34 PM, Sebastien Loriot (GeometryFactory) wrote:

     > On 05/20/2013 05:04 PM, 杨成林 wrote:
     >> I may be wrong. I have not noticed Weighted_point_mapper_2. Is this
     >> another self-reference in CGAL? I don't understand the usage of
    Self and
     >> Base.
     > In Regular_triangulation_2.h, it is used to define the Traits of the
     > base class Triangulation_2< Weighted_point_mapper_2<Gt> >.
     >
     > Sebastien.
     >
     >>
     >>
     >> The doc is lying then.
     >> Anyway, it is working thanks to Weighted_point_mapper_2.
     >>
     >> Sebastien.
     >>
     >>
     >>
     >>
     >>
     >> 2013/5/20 Sebastien Loriot (GeometryFactory)
     >> <[hidden email]
    <http://user/SendEmail.jtp?type=node&node=4657523&i=0>
    <mailto:[hidden email]
    <http://user/SendEmail.jtp?type=node&node=4657523&i=1>>
     >> <mailto:[hidden email]
    <http://user/SendEmail.jtp?type=node&node=4657523&i=2>
    <mailto:[hidden email]
    <http://user/SendEmail.jtp?type=node&node=4657523&i=3>>>>
     >>
     >> On 05/20/2013 04:15 PM, 杨成林 wrote:

     >> > Why does only Regular_triangulation_2 inherit the function, but
     >> others
     >> > redefine it?
     >> > In Regular_triangulation_3, the type of the second parameter of
     >> move()
     >> > function is Gt::Weighted_point_3. But the type in the function
     >> inherited
     >> > from Triangulation_2 is Gt::Point_2. They do not match.
     >> The Point type is Traits::Point_2 which is the weighted
     >> point if you
     >> use the regular traits.
     >>
     >> Sebastien.
     >>
     >> >
     >> >
     >> > 2013/5/20 Sebastien Loriot (GeometryFactory)
     >> <[hidden email]
    <http://user/SendEmail.jtp?type=node&node=4657523&i=4>
    <mailto:[hidden email]
    <http://user/SendEmail.jtp?type=node&node=4657523&i=5>>
     >> <mailto:[hidden email]
    <http://user/SendEmail.jtp?type=node&node=4657523&i=6>
    <mailto:[hidden email]
    <http://user/SendEmail.jtp?type=node&node=4657523&i=7>>>
     >> > <mailto:[hidden email]
    <http://user/SendEmail.jtp?type=node&node=4657523&i=8>
    <mailto:[hidden email]
    <http://user/SendEmail.jtp?type=node&node=4657523&i=9>>
     >> <mailto:[hidden email]
    <



Archive powered by MHonArc 2.6.18.

Top of Page