MEPP2 Project
|
#include <CGAL/Gmpq.h>
#include <CGAL/Lazy_exact_nt.h>
#include <chrono>
#include "boolops_enriched_polyhedron.hpp"
Go to the source code of this file.
Macros | |
#define | BOOLEAN_OPERATIONS_TIME |
Enables computation time measuring. More... | |
Typedefs | |
typedef EnrichedPolyhedron::Halfedge_handle | Halfedge_handle |
typedef EnrichedPolyhedron::Point_3 | Point3d |
typedef CGAL::Lazy_exact_nt< CGAL::Gmpq > | num_type |
exact number type More... | |
typedef CGAL::Simple_cartesian< num_type > | Exact_Kernel |
Kernel using exact number type. More... | |
typedef CGAL::Vector_3< Exact_Kernel > | Vector_exact |
3d vector using exact number type More... | |
typedef CGAL::Point_3< Exact_Kernel > | Point3d_exact |
3d point using exact number type More... | |
Enumerations | |
enum | Bool_Op { UNION, INTER, MINUS } |
The three Boolean operations. More... | |
Functions | |
Point3d_exact | point_to_exact (Point3d &p) |
Convertion from a Point3d (double) to a Point3d_exact (exact) More... | |
Point3d | point_to_double (Point3d_exact &pe) |
Convertion from a Point3d_exact (exact) to a Point3d (double) More... | |
Vector_exact | Compute_Normal_direction (Halfedge_handle he) |
double | tr (double &n) |
Truncate a number to 1/1000 (only if BOOLEAN_OPERATIONS_DEBUG is enable) More... | |
double | get_time_and_reset (std::chrono::time_point< std::chrono::steady_clock > &time_start) |
Measure time since starting time and reset starting time. More... | |
#define BOOLEAN_OPERATIONS_TIME |
Enables computation time measuring.
Definition at line 49 of file boolops_definitions.hpp.
Kernel using exact number type.
Definition at line 67 of file boolops_definitions.hpp.
typedef EnrichedPolyhedron::Halfedge_handle Halfedge_handle |
Definition at line 29 of file boolops_definitions.hpp.
exact number type
Definition at line 61 of file boolops_definitions.hpp.
typedef EnrichedPolyhedron::Point_3 Point3d |
Definition at line 30 of file boolops_definitions.hpp.
3d point using exact number type
Definition at line 79 of file boolops_definitions.hpp.
3d vector using exact number type
Definition at line 73 of file boolops_definitions.hpp.
enum Bool_Op |
The three Boolean operations.
Enumerator | |
---|---|
UNION | |
INTER | |
MINUS |
Definition at line 55 of file boolops_definitions.hpp.
|
inline |
Definition at line 111 of file boolops_definitions.hpp.
|
inline |
Measure time since starting time and reset starting time.
Starting | time |
Definition at line 140 of file boolops_definitions.hpp.
|
inline |
Convertion from a Point3d_exact (exact) to a Point3d (double)
pe | : The Point3d_exact |
Definition at line 99 of file boolops_definitions.hpp.
|
inline |
Convertion from a Point3d (double) to a Point3d_exact (exact)
p | : The Point3d |
Definition at line 87 of file boolops_definitions.hpp.
|
inline |
Truncate a number to 1/1000 (only if BOOLEAN_OPERATIONS_DEBUG is enable)
n | : The input number in double |
Definition at line 127 of file boolops_definitions.hpp.