Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] A simple question to get started with CGAL

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] A simple question to get started with CGAL


Chronological Thread 
  • From: Andreas Fabri <>
  • To:
  • Subject: Re: [cgal-discuss] A simple question to get started with CGAL
  • Date: Mon, 28 Apr 2008 10:30:02 +0200

Hi Calvin,

You only can write

mylocation = Point_2(10, mylocation.y());

The reason is that we have reference counted and non-reference
counted objects, and the former then would need a copy on write
functionality.

andreas



wrote:
Hi all,
I am just getting started with knowing how to use CGAL, and I'm particularly puzzled about something. In the class Point_2 , or whichever class that defines the location/position of a geometric primitive, is it possible to change the position of the class?
Like for instance,
Point_2 myLocation(5,0);
myLocation.x = 10;
Can i do something like this in CGAL? Thanks if anyone can provide me with an answer on this.
regards
Calvin




Archive powered by MHonArc 2.6.16.

Top of Page