Subject: CGAL users discussion list
List archive
- From: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] Problem calculating the volume of alpha_shape_3_cells
- Date: Thu, 14 Dec 2017 09:43:42 +0100
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:QY8eyRevmQLnww0zBLruyNftlGMj4u6mDksu8pMizoh2WeGdxcS9ZB7h7PlgxGXEQZ/co6odzbaO6ua4ASQp2tWoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6nK94iQPFRrhKAF7Ovr6GpLIj8Swyuu+54Dfbx9HiTahfL9+Ngm6oRnMvcQKnIVuLbo8xAHUqXVSYeRWwm1oJVOXnxni48q74YBu/SdNtf8/7sBMSar1cbg2QrxeFzQmLns65Nb3uhnZTAuA/WUTX2MLmRdVGQfF7RX6XpDssivms+d2xSeXMdHqQb0yRD+t6LtmRRHqhSoJLjI17G7agdF0gK9bvB6tohpyyJPWbo6ILvpzZr7Tc80URWRBXchfWSJODYy+YIQTAOQMJvpYoovnqlcSsRezCwuhCeXywTFInH/22qg63vwvHQ/bwgMvBMgBsG/IrNX0KqgSV/2+wq/PzTXZbvNW3iv945XMfh4gv/6MWrdwftTNyUk1FwLLjk+fppD5PzOSzOQMs22X4+R9Xu+okG4nrwZxoiKuxscrlonFnIcVylTf+CV2xYY6P9y4SEphbdG4F5tQsjiXOo1rSc0sRGFovTw1yrwAuZOjeigF0o8oyAXba/OZaYSH/hXjVOOXLDxlh3xlYKqyihS9/ES61+HwSMm53ExJoyZbiNXBtmwB2wTR58WEUPdx4Eis1DeV2wzO7uxJL1o4mKjbJpMn37U+jIAcsV7ZES/zgEj2jLGZdkEj+uWw7uToeLTmppuFO456jwHyLr0imsK/DOgkKAQOUG+b+eOz1L3n40L1WqlFjvozkqXBsZDaI9oUprKhDgJX3Ysv8QuzAymm3dgCnnQLMkhJdRKbg4TxPlHBOvH4DfOxg1S2lzdrwujLPqblApXKNHjDkbDhfapn505ZzAo+1t9f55dOBbEAJPL/QFP+tNvdDhMhKQy73/7nCMlh1oMZQW+AHqCZP7nWsVOR++0vIvKMa5MIuDbmMPgo/OXujH88mV8FZ6alx5oXaHaiHvRnOUqVe3Tsgs1SWVsN6wExReivhFyZWiNIfF6zWbg973c1EtGIF4DGE8qWjbaIxzu6E5seQmdcC1eQWTfHeoKBVusWeQybKdNmiC1FH/D1UIsmzxCpqEn/z5JoK+PV/msTspe1h4s93PHaiRxnrW88NM+ayWzYEjl5
Try replacing Cell by Cell_handle and it by (*it) in the for loop.
Sebastien.
On 12/14/2017 09:33 AM, Acecross wrote:
I have tried the following approach to calculate the volume of my
alpha_shape_3:
double get_alpha_3_volume(const Alpha_shape3 &A,
Alpha_shape3::Classification_type c) {
std::vector<Alpha_shape3::Cell> cells;
A.get_alpha_shape_cells(std::back_inserter(cells), c);
double volume = 0;
for (std::vector<Alpha_shape3::Cell>::iterator it = cells.begin();
it != cells.end(); it++) {
Point3 p1 = it->vertex(0)->point();
Point3 p2 = it->vertex(1)->point();
Point3 p3 = it->vertex(2)->point();
Point3 p4 = it->vertex(3)->point();
Alpha_shape3::Tetrahedron t(p1,p2,p3,p4);
volume += t.volume();
}
return volume;
I constantly get a classification type error:
Severity Code Description Project File Line Suppression State
Error C2679 binary '=': no operator found which takes a right-hand operand
of type
'CGAL::internal::CC_iterator<CGAL::Compact_container<CGAL::Alpha_shape_cell_base_3<Gt,CGAL::Triangulation_cell_base_3<GT,CGAL::Triangulation_ds_cell_base_3<TDS2>>,ExactAlphaComparisonTag,Weighted_tag>,CGAL::Default,CGAL::Default,CGAL::Default>,false>'
(or there is no acceptable conversion) SebsAlphaPackage
c:\dev\cgal-4.11\include\cgal\alpha_shape_3.h 812
Does someone see my Error?
Thanking you in anticipation,
Acecross
--
Sent from: http://cgal-discuss.949826.n4.nabble.com/
- [cgal-discuss] Problem calculating the volume of alpha_shape_3_cells, Acecross, 12/14/2017
- Re: [cgal-discuss] Problem calculating the volume of alpha_shape_3_cells, Sebastien Loriot (GeometryFactory), 12/14/2017
- Re: [cgal-discuss] Problem calculating the volume of alpha_shape_3_cells, Acecross, 12/14/2017
- Re: [cgal-discuss] Problem calculating the volume of alpha_shape_3_cells, Sebastien Loriot (GeometryFactory), 12/14/2017
Archive powered by MHonArc 2.6.18.