Subject: CGAL users discussion list
List archive
- From: Sylvain Pion <>
- To:
- Subject: Re: [cgal-discuss] volume center of a cell
- Date: Mon, 11 Jan 2010 00:01:10 +0100
- Organization: INRIA
Ramin H wrote:
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?
2 remarks :
- 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/
- [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.