Subject: CGAL users discussion list
List archive
- From: Acecross <>
- To:
- Subject: [cgal-discuss] Problem calculating the volume of alpha_shape_3_cells
- Date: Thu, 14 Dec 2017 01:33:55 -0700 (MST)
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Fail ; spf=Pass
- Ironport-phdr: 9a23:Ox3yoRTfc8HmOG6ul/wV60ddtdpsv+yvbD5Q0YIujvd0So/mwa68bReN2/xhgRfzUJnB7Loc0qyK6/mmATRIyK3CmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TW94jEIBxrwKxd+KPjrFY7OlcS30P2594HObwlSizexfa5+IA+qoQnNq8IbnZZsJqEtxxXTv3BGYf5WxWRmJVKSmxbz+MK994N9/ipTpvws6ddOXb31cKokQ7NYCi8mM30u683wqRbDVwqP6WACXWgQjxFFHhLK7BD+Xpf2ryv6qu9w0zSUMMHqUbw5Xymp4qF2QxHqlSgHLSY0/m/XhMJuj6xVvR2uqABwzYPPfIGYNuZycr/Bcd8GW2ZMWNtaWSxbAoO7aosCF/YMMvpGoIbhvVsOqgC+BRKxD+7o1zJIgmX53bA50+s7CwHJxhAgEskAsXvKt9r5LrodXv6swaTO0D7NYfRW2TLn54jJdBAsufeMUqhrfsXKzUkgCRnJgUmXqYzgOT6ey+cDs3CD4uZ9VO+jlXQrpx9xrzWh3Msgl4fEi4wPxl3G6yl0xps+K8eiR05he9GkFYNdtyGEOItyRcMvW2dotSkgxr0Ao5G0ZzMFyJA5yBLFd/OHdI2I7griVOaXPzh4mGpodK++ihqs60Ss1O3xW8eu3FpXoCdInMPAu3IT2xDL78iIUPp9/kOv2TaV0ADT7/lJLF0wlaXBNp4hwaQ/loAJvkTfBSL3llv5g7SMeko55Oek8/7nban+pp+AK490jRnzPbghmsOlBeQ0KxUBX2mA+eugyb3j5lb5Ta5Rjvw2l6nZqIrVKd4apq6/GQ9V05ws5wyxDze8g5wkmiwMI1tBPR6GlIP0IErmIfbiDP75jU7/vi1swqXvNbDqGJLWNTCXurPoYLV08UdA4BU+x5ZT6sQHWfk6PPvvVxqp55TjBRgjPlnszg==
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.