Subject: CGAL users discussion list
List archive
- From: Scherrer Daniel <>
- To: "" <>
- Subject: RE: [cgal-discuss] Hyperplane_d
- Date: Wed, 16 Sep 2015 15:08:03 +0200
- Accept-language: en-US, de-CH
- Acceptlanguage: en-US, de-CH
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:dFHlHhCMqam7o13UhgCxUyQJP3N1i/DPJgcQr6AfoPdwSP/5o8bcNUDSrc9gkEXOFd2CrakU16yM4uu+ASQp2tWojjMrSNR0TRgLiMEbzUQLIfWuLgnFFsPsdDEwB89YVVVorDmROElRH9viNRWJ+iXhpQAbFhi3DwdpPOO9QteU1JTrkbrjsMOLKyxzxxODIppKZC2sqgvQssREyaBDEY0WjiXzn31TZu5NznlpL1/A1zz158O34YIxu38I46FppIZ9V77ndfE4UaBAF2ZhdHsk4dXi8xjFVwqGoHUGFX4HlwJBRAnD4ha9VZj4tm72t/F2xTKBbvHxGPo/Vj2mqqtqUxT1kzwvNjgj8WiRhNY6xPZQrxul4hB+2IXJe5q9Nfxkf6qbc8lMFkRbWcMEbCdBD5mmYpFHI+MHPOtc593Rrl0PoB/4PgKsCfn1xyVgnXTtm6Y6hbdyWTra1RAtSopd+E/fq8/4Yf8f
Thanks. It now works as expected.
Regards,
Daniel
-----Original Message-----
From:
[mailto:]
On Behalf Of Marc Glisse
Sent: Mittwoch, 16. September 2015 14:25
To:
Subject: Re: [cgal-discuss] Hyperplane_d
On Wed, 16 Sep 2015, Scherrer Daniel wrote:
> Is there any example on how to use CGAL::Hyperplane_d?
>
> I tried to compute the orthogonal vector, first with:
> typedef CGAL::Simple_cartesian<double> K;
> typedef K::Point_3 Point;
> typedef K::Vector_3 Vector;
> Vector v = CGAL::orthogonal_vector(Point(0,0,0), Point(1,0,2),
> Point(0,1,0)); This gives v = [-2,0,1], which seams OK.
> Then I tried the same using a Hyperplane:
> typedef CGAL::Epick_d<CGAL::Dimension_tag<3>> K;
> typedef K::Point_d Point;
> typedef K::Vector_d Vector;
> typedef K::Hyperplane_d Plane;
> std::vector<Point> points(3);
> ...
> Plane plane(points.begin(), points.end());
> Vector v = plane.orthogonal_vector(); This gives v = [0,1,0.5], which
> seams to be wrong.
There was a bug with hyperplanes containing the origin, I think it was
fixed:
https://github.com/CGAL/cgal/commit/b8503f3788c42b5938ae300d3c62251b666a278d
You could try version 4.7-beta1 which I hope has the fix.
Please let us know if it still fails.
--
Marc Glisse
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss
- [cgal-discuss] Hyperplane_d, Scherrer Daniel, 09/16/2015
- Re: [cgal-discuss] Hyperplane_d, Marc Glisse, 09/16/2015
- RE: [cgal-discuss] Hyperplane_d, Scherrer Daniel, 09/16/2015
- Re: [cgal-discuss] Hyperplane_d, Marc Glisse, 09/16/2015
Archive powered by MHonArc 2.6.18.