Subject: CGAL users discussion list
List archive
- From: Ge Zhang <>
- To: "" <>
- Subject: RE: [cgal-discuss] CGAL dD Delaunay Problem
- Date: Tue, 25 Mar 2014 19:25:33 +0000
- Accept-language: en-US
Hi Alex,
Thank you very much for your answer. Changing Point p(3, coord+i*3, coord+i*3+3); to Point p(coord[i*3], coord[i*3+1], coord[i*3+2]); worked.
However, since I need to work in any dimensions later, I want to have a way to create Points in any dimensions. I read the webpage: http://doc.cgal.org/latest/Kernel_d/classCGAL_1_1Point__d.html
and thought Point p(dim, coord+i*dim, coord+i*dim+dim); should be the dimension-independent way to do this. Could you tell me why it is not working for dim=3?
Best, Ge From: [mailto:]
On Behalf Of Alex Vergara Gil
Mainly because you have commited several bugs -------------------------------------- instead of Point p(3, coord+i*3, coord+i*3+3); put Point p(coord+i*3, coord+i*3+1, coord+i*3+2); --------------------------------------- or you can redefine double coord[] = { as Point coord[] = { {15.987446522913068, 27.202164077804600, -1.7503256142623180}, ... and so on and instead of Point p(3, coord+i*3, coord+i*3+3); simply Point p = coord[i]
The two ways are equivalent Regards
Alex
|
- [cgal-discuss] CGAL dD Delaunay Problem, Ge Zhang, 03/25/2014
- Re: [cgal-discuss] CGAL dD Delaunay Problem, Alex Vergara Gil, 03/25/2014
- RE: [cgal-discuss] CGAL dD Delaunay Problem, Ge Zhang, 03/25/2014
- Re: [cgal-discuss] CGAL dD Delaunay Problem, Alex Vergara Gil, 03/25/2014
Archive powered by MHonArc 2.6.18.