Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Problem with types of Boolean Operations

Subject: CGAL users discussion list

List archive

[cgal-discuss] Problem with types of Boolean Operations


Chronological Thread 
  • From: "Rubén Martínez" <>
  • To:
  • Subject: [cgal-discuss] Problem with types of Boolean Operations
  • Date: Sat, 18 Aug 2007 13:56:24 +0200
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=q5shUQwX3axmlC7/IRrX85TBXunZJxYgquon1JiHlO506Ekre/zFsGx9AiCDUlzR6g8Y12Fwa9xXlQ1/EcObROZfZT/1n98tMQbvsS5FwQ7MaeLf4a2unR0bXg+XelmCspA/fPh6FYLkLiKOB1Qz0C5JboJLi+3edJT5vkcNjnk=

The kernel that I use for de 3d Boolean Operations is defined by this code:

typedef CGAL::Homogeneous<CGAL::Gmpz> Kernel;
typedef CGAL::Polyhedron_3<Kernel> Polyhedron;
typedef CGAL::Nef_polyhedron_3<Kernel> Nef_polyhedron;

but y have a problem, because I need to convert this code:

typedef Kernel::Point_3 Point_3;

to a point of doubles as there: double vector[3], but this conversion
not is valid_

Point_3 pto;
double vector[3]

vector[0] = pto[0]; .... --> NOT VALID

The error that provoke this code:

c:\Archivos de programa\Cgal-3.2\examples\Nef_3\interface_polyhedron.C(114):
error C2440: '=' : no se puede realizar la conversión de
'CGAL::Homogeneous_base_ref_count<RT_,FT_,Kernel>::FT' a 'HDdouble'
with
[
RT_=CGAL::Gmpz,
FT_=CGAL::Quotient<CGAL::Gmpz>,
Kernel=CGAL::Homogeneous<CGAL::Gmpz>
]


I need some help for convert a point of GMPZ Kernel to a Point of doubles.

Anyone can help me??????????????




Archive powered by MHonArc 2.6.16.

Top of Page