Created
May 17, 2021 20:11
-
-
Save afabri/e2d1e21b36ad71d4f320f5373ca0a74f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h> | |
typedef CGAL::Exact_predicates_inexact_constructions_kernel K; | |
typedef K::Point_3 Point_3; | |
typedef K::Segment_3 Segment_3; | |
typedef K::Triangle_3 Triangle_3; | |
#include <iostream> | |
int main() | |
{ | |
Triangle_3 t(Point_3(2.58437, -0.707107, -0.572062), | |
Point_3(2.52447, -0.809017, -0.345492), | |
Point_3(2.42794, -0.707107, -0.415627)); | |
Segment_3 s(Point_3(2.78149, -0.707107, -0.672499), | |
Point_3(2.65451, -0.809017, -0.475528)); | |
if(do_intersect(t,s)){ | |
std::cout << "intersect" << std::endl; | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment