Subject: CGAL users discussion list
List archive
- From: Kwok Jasper <>
- To: <>
- Subject: RE: [cgal-discuss] [HELP] about some advice related to the usage of
- Date: Sun, 8 Feb 2009 17:01:20 +0800
- Importance: Normal
Excuse me, after some further investigation, I found that I get the exception when I insert a Point object into a list (i.e.) the 2 lines of code below co_input.push_back(Point(tempX2 - tempX1 , tempY2 - tempY1, tempZ2 - tempZ1)); co_input.push_back(p); inside the following code. Point_3 * co_mean = NULL; list<Point> co_input; list<Point>::iterator co_itr; vector<Vertex_handle>::iterator nv_itr; double temp_fifth_nearest_dist; double tempX1; double tempY1; double tempZ1; double tempX2; double tempY2; double tempZ2; double dist; for(curr = start; curr != end; ++curr) { if (co_mean != NULL) { delete co_mean; co_mean = NULL; } if (co_input.size() != 0) { co_input.clear(); } x_total = 0; y_total = 0; z_total = 0; x_variance = 0; y_variance = 0; z_variance = 0; x_y_covariance = 0; y_z_covariance = 0; x_z_covariance = 0; temp_fifth_nearest_dist = curr -> fifth_nearest_dist; cout << temp_fifth_nearest_dist << endl; nv_itr = (curr -> neighbor_vertex_handle).begin(); while(1) { if (nv_itr == (curr -> neighbor_vertex_handle).end()) { break; } tempX1 = (curr -> point()).x(); tempY1 = (curr -> point()).y(); tempZ1 = (curr -> point()).z(); cout << "b0" << endl; tempX2 = ((*nv_itr) -> get_point()).x(); tempY2 = ((*nv_itr) -> get_point()).y(); tempZ2 = ((*nv_itr) -> get_point()).z(); cout << "b1" << endl; dist = pow((tempX1 - tempX2),2); dist += pow((tempY1 - tempY2),2); dist += pow((tempZ1 - tempZ2),2); dist = sqrt(dist); co_input.push_back(Point(tempX2 - tempX1 , tempY2 - tempY1, tempZ2 - tempZ1)); co_input.push_back(p); ++nv_itr; } May I ask if is possible the problem actually relates to the use of list<Point> co_input; list<Point>::iterator co_itr; i.e. the std::list object with the Point object in CGAL? And even I change the std::list into std::vector, the same exception still exist.. Thank you From: To: Date: Sun, 8 Feb 2009 16:06:38 +0800 Subject: RE: [cgal-discuss] [HELP] about some advice related to the usage of Thanks. Windows Live Gallery 讓才華綻放,讓全世界看見你的創造。 內在氣質才是致勝之道-您是哪一 最原始的溝通是用心的交流。 |
- [cgal-discuss] [HELP] about some advice related to the usage of the derived class of CGAL::Triangulation_vertex_base_3<GT>, Kwok Jasper, 02/04/2009
- Re: [cgal-discuss] [HELP] about some advice related to the usage, Monique Teillaud, 02/04/2009
- RE: [cgal-discuss] [HELP] about some advice related to the usage, Kwok Jasper, 02/05/2009
- RE: [cgal-discuss] [HELP] about some advice related to the usage of, Kwok Jasper, 02/07/2009
- Re: [cgal-discuss] [HELP] about some advice related to the usage of, Laurent Rineau (GeometryFactory), 02/07/2009
- RE: [cgal-discuss] [HELP] about some advice related to the usage of, Kwok Jasper, 02/08/2009
- RE: [cgal-discuss] [HELP] about some advice related to the usage of, Kwok Jasper, 02/08/2009
- RE: [cgal-discuss] [HELP] about some advice related to the usage of, Kwok Jasper, 02/09/2009
- RE: [cgal-discuss] [HELP] about some advice related to the usage of, Kwok Jasper, 02/10/2009
- RE: [cgal-discuss] [HELP] about some advice related to the usage of, Kwok Jasper, 02/10/2009
- RE: [cgal-discuss] [HELP] about some advice related to the usage of, Kwok Jasper, 02/10/2009
- RE: [cgal-discuss] [HELP] about some advice related to the usage of, Kwok Jasper, 02/10/2009
- RE: [cgal-discuss] [HELP] about some advice related to the usage of, Kwok Jasper, 02/09/2009
- RE: [cgal-discuss] [HELP] about some advice related to the usage of, Kwok Jasper, 02/08/2009
- RE: [cgal-discuss] [HELP] about some advice related to the usage of, Kwok Jasper, 02/08/2009
- Re: [cgal-discuss] [HELP] about some advice related to the usage of, Laurent Rineau (GeometryFactory), 02/07/2009
- Re: [cgal-discuss] [HELP] about some advice related to the usage of, Laurent Rineau (GeometryFactory), 02/10/2009
- RE: [cgal-discuss] [HELP] about some advice related to the usage of, Kwok Jasper, 02/11/2009
- Re: [cgal-discuss] [HELP] about some advice related to the usage, Monique Teillaud, 02/04/2009
Archive powered by MHonArc 2.6.16.