diff --git a/Packages/Alpha_shapes_3/demo/Alpha_shapes_3/demo_alpha.C b/Packages/Alpha_shapes_3/demo/Alpha_shapes_3/demo_alpha.C index 191b4122489..9b2533d30f6 100644 --- a/Packages/Alpha_shapes_3/demo/Alpha_shapes_3/demo_alpha.C +++ b/Packages/Alpha_shapes_3/demo/Alpha_shapes_3/demo_alpha.C @@ -25,7 +25,16 @@ to the Alpha Shape. #include #include + + +#if ! defined(__BORLANDC__) && ! defined(_MSC_VER) && ! defined(__MWERKS__) +#define GEOMVIEW_SUPPORT +#endif + +#if defined(GEOMSVIEW_SUPPORT) #include +#endif + //#include //Choose the better number type as possible @@ -147,12 +156,14 @@ void set_alpha(Alpha_shape_3& A, int alpha_index) int main() { - CGAL::Geomview_stream gv(CGAL::Bbox_3(0,0,0, 2, 2, 2)); Alpha_shape_3 A; +#if defined(GEOMVIEW_SUPPORT) + CGAL::Geomview_stream gv(CGAL::Bbox_3(0,0,0, 2, 2, 2)); gv.set_line_width(4); gv.set_trace(false); gv.set_bg_color(CGAL::Color(0, 200, 200)); +#endif std::list L; @@ -166,13 +177,19 @@ int main() while(n >= 0){ std::cout << "Enter an alpha index (a < 0 -> quit): "; std::cin >> n; +#if defined(GEOMVIEW_SUPPORT) gv.clear(); +#endif //gv << (Triangulation_3) A; if (n == 0) A.set_alpha(*A.find_optimal_alpha(2)); else - set_alpha(A,n); + set_alpha(A,n); +#if defined(GEOMVIEW_SUPPORT) gv << A; +#else + std::cout << A << std::endl; +#endif } return 0;