#include #include #include #include #include #include typedef leda_integer RT; typedef CGAL::Homogeneous Kernel; typedef Kernel::Point_3 Point_3; typedef Kernel::Plane_3 Plane_3; typedef CGAL::Width_default_traits_3 Width_traits; typedef CGAL::Width_3 Width; int main() { // Create a simplex using homogeneous integer coordinates std::vector points; points.push_back( Point_3(2,0,0,1)); points.push_back( Point_3(0,1,0,1)); points.push_back( Point_3(0,0,1,1)); points.push_back( Point_3(0,0,0,1)); // Compute width of simplex Width simplex( points.begin(), points.end()); // Output of squared width, width-planes, and optimal direction RT wnum, wdenom; simplex.get_squared_width( wnum, wdenom); std::cout << "Squared Width: " << wnum << "/" << wdenom << std::endl; std::cout << "Direction: " << simplex.get_build_direction() << std::endl; Plane_3 e1, e2; std::cout << "Planes: E1: " << e1 << ". E2: " << e2 <