Bbox bbox() const { if(isEmpty()) return Bbox(); else { CGAL::Bbox_3 result = c3t3().triangulation().finite_vertices_begin()->point().bbox(); for(Tr::Finite_vertices_iterator vit = ++c3t3().triangulation().finite_vertices_begin(), end = c3t3().triangulation().finite_vertices_end(); vit != end; ++vit) { result = result + vit->point().bbox(); } return Bbox(result.xmin(), result.ymin(), result.zmin(), result.xmax(), result.ymax(), result.zmax()); } }
void Scene_c3t3_item::compute_bbox() const { if (isEmpty()) _bbox = Bbox(); else { CGAL::Bbox_3 result; for (Tr::Finite_vertices_iterator vit = ++c3t3().triangulation().finite_vertices_begin(), end = c3t3().triangulation().finite_vertices_end(); vit != end; ++vit) { if(vit->in_dimension() == -1) continue; result = result + vit->point().bbox(); } _bbox = Bbox(result.xmin(), result.ymin(), result.zmin(), result.xmax(), result.ymax(), result.zmax()); } }