Subject: CGAL users discussion list
List archive
- From: Ramin H <>
- To:
- Subject: Re: [cgal-discuss] volume center of a cell
- Date: Mon, 11 Jan 2010 12:15:50 -0500
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=i2LHjSqB9IBxtN6r13AR8JF1wDOndMCwswvwUr9ROdNHP/tDglEyRdNXGIBclghdAa jX4b/LZ7gHbILvmwFnXsRHy546D0uZtFHf0xl5FYAJ+kp/NdCPRdNWGz7HbIr8dWa/oL ZDdkkjefMZ8Vot5zeXPJSJ0rhOLMICk1sx7n4=
Thank you Sylvain. CGAL::centroid() did it.
What is the default weight for the points when CGAL creates Delaunay triangulation?
-Ramin
On Sun, Jan 10, 2010 at 6:01 PM, Sylvain Pion <> wrote:
Ramin H wrote:2 remarks :
Hi everyone,
I want to find volume center of a cell from it's four vertices. I am averaging the x, y, and x coordinates and making a new Point_3 object but the compilation fails on:
Point_3 vol_center(x, y, z);
The error message is humongous so I am attaching it as compile_error.txt
The code follows.
What am I doing wrong?
- there exists a function centroid() which already does this computation.
- be careful with the Weighted_point that you use, it requires a weight
in addition to the coordinates.
--
Sylvain Pion
INRIA Sophia-Antipolis
Geometrica Project-Team
CGAL, http://cgal.org/
--You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss
- [cgal-discuss] volume center of a cell, Ramin H, 01/10/2010
- Re: [cgal-discuss] volume center of a cell, Sylvain Pion, 01/11/2010
- Re: [cgal-discuss] volume center of a cell, Ramin H, 01/11/2010
- Re: [cgal-discuss] volume center of a cell, Sylvain Pion, 01/11/2010
- Re: [cgal-discuss] volume center of a cell, Ramin H, 01/11/2010
- Re: [cgal-discuss] volume center of a cell, Sylvain Pion, 01/11/2010
Archive powered by MHonArc 2.6.16.