CGAL读取一个三维空间边的两个端点坐标

  Alpha_shape_3::Finite_edges_iterator editer;
  for (editer = A3.finite_edges_begin(); editer != A3.finite_edges_end(); editer++)
  {
   Point3 p1 = editer->first->vertex(CGAL::Triangulation_cw_ccw_2::ccw(editer->second))->point();
   Point3 p2 = editer->first->vertex(CGAL::Triangulation_cw_ccw_2::cw(editer->second))->point();

   double x0 =  p1[0];

   double y0 =  p1[1];

   double z0 =  p1[2];

   double x1 =  p2[0];

   double y1 =  p2[1];

   double z1 =  p2[2];

  }


 

你可能感兴趣的:(CGAL)