This commit is contained in:
Marc Glisse 2011-05-12 13:15:40 +00:00
parent 76c16e45ee
commit 0e0374300f
1 changed files with 3 additions and 2 deletions

View File

@ -25,20 +25,21 @@ typedef K1::Segment S;
//typedef K1::Construct_point CP;
typedef K1::Construct<CGAL::Construct_point_tag>::type CP;
typedef K1::Construct<CGAL::Construct_vector_tag>::type CV;
typedef K1::Construct<CGAL::Construct_segment_tag>::type CS;
typedef K1::Construct<CGAL::Construct_cartesian_const_iterator_tag>::type CCI;
typedef K1::Predicate<CGAL::Orientation_tag>::type PO;
typedef K1::Cartesian_const_iterator CI;
typedef K1::Compute<CGAL::Compute_cartesian_coordinate_tag>::type CC;
int main(){
CP cp; CCI ci; CC cc; PO po;
CP cp; CCI ci; CC cc; PO po; CS cs;
P a=cp(3,4);
P b=cp(5,6,7);
int rr[]={3,5,2};
int* r=rr;
P c=cp(r,r+2);
P d=cp(r,r+3,CGAL::Homogeneous_tag());
S s(c,d);
S s=cs(c,d);
std::cout << cc(a,1) << std::endl;
std::cout << cc(b,1) << std::endl;
std::cout << cc(s[0],1) << std::endl;