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> | |
#include <CGAL/Mesh_triangulation_3.h> | |
#include <CGAL/Mesh_complex_3_in_triangulation_3.h> | |
#include <CGAL/Mesh_criteria_3.h> | |
#include <CGAL/Surface_mesh.h> | |
#include <CGAL/boost/graph/helpers.h> | |
#include <CGAL/Polyhedral_mesh_domain_3.h> | |
#include <CGAL/make_mesh_3.h> | |
#include <CGAL/IO/output_to_vtu.h> |
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/Constrained_Delaunay_triangulation_2.h> | |
#include <CGAL/Exact_predicates_exact_constructions_kernel.h> | |
#include <CGAL/Polyline_simplification_2/simplify.h> | |
#include <vector> | |
namespace PS = CGAL::Polyline_simplification_2; | |
typedef CGAL::Exact_predicates_exact_constructions_kernel K; | |
typedef PS::Vertex_base_2<K> Vb; | |
typedef CGAL::Constrained_triangulation_face_base_2<K> Fb; | |
typedef CGAL::Triangulation_data_structure_2<Vb, Fb> TDS; |
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 <stdio.h> | |
#include <stdarg.h> | |
#include <geos_c.h> | |
/* | |
* GEOS requires two message handlers to return | |
* error and notice message to the calling program. | |
* | |
* typedef void(* GEOSMessageHandler) (const char *fmt,...) |
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 <boost/multiprecision/cpp_int.hpp> | |
#include <boost/multiprecision/gmp.hpp> | |
#include <chrono> | |
#include <iostream> | |
#include <string> | |
template <typename Number> | |
void fct(const std::string& forth) | |
{ | |
const auto start{ std::chrono::steady_clock::now() }; |
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 <iostream> | |
#include <fstream> | |
#include <cassert> | |
#include <string> | |
// define the kernel | |
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h> | |
typedef CGAL::Exact_predicates_inexact_constructions_kernel Kernel; | |
typedef Kernel::Segment_2 Segment_2; |
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_exact_constructions_kernel.h> | |
#include <CGAL/Polyhedron_3.h> | |
#include <CGAL/boost/graph/IO/STL.h> | |
#include <CGAL/Polygon_mesh_processing/orientation.h> | |
typedef CGAL::Exact_predicates_inexact_constructions_kernel C_Kernel; | |
typedef CGAL::Polyhedron_3<C_Kernel> C_Polyhedron; | |
int main() | |
{ |
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
cmake_minimum_required(VERSION 3.1...3.23) | |
project(Stroman) | |
# CGAL and its components | |
find_package(CGAL REQUIRED) | |
create_single_source_cgal_program("readVTK.cpp") | |
find_package(VTK QUIET COMPONENTS vtkCommonCore vtkIOCore vtkIOLegacy vtkIOXML vtkFiltersCore vtkFiltersSources) | |
if (VTK_FOUND) |
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/Surface_mesh.h> | |
#include <CGAL/Simple_cartesian.h> | |
typedef CGAL::Simple_cartesian<double> K; | |
typedef K::Point_3 Point_3; | |
typedef CGAL::Surface_mesh<Point_3> Surface_mesh; | |
int main() | |
{ | |
Surface_mesh sm; |
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 <boost/operators.hpp> | |
#include <boost/multiprecision/cpp_int.hpp> | |
#include <Eigen/Dense> | |
// Quotient | |
template <class NT_> | |
class Toto | |
: boost::additive2 < Toto<NT_>, NT_ > | |
{ |
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 <boost/multiprecision/cpp_int.hpp> | |
typedef boost::multiprecision::cpp_rational Rat; | |
struct E { | |
Rat rat; | |
E(const Rat& rat) | |
: rat(rat) | |
{} | |
}; |
NewerOlder