Skip to content

How to increase speed/performance of boolean operations ? #8120

Answered by sloriot
AlbertDeTerre asked this question in Q&A
Discussion options

You must be logged in to vote

I implemented the Monte Carlo to see how well it performs and it's pretty fast.

#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Surface_mesh.h>

#include <CGAL/Octree.h>
#include <CGAL/Orthtree_traits_face_graph.h>
#include <CGAL/Side_of_triangle_mesh.h>
#include <CGAL/Random.h>
#include <CGAL/boost/graph/IO/polygon_mesh_io.h>

using K = CGAL::Exact_predicates_inexact_constructions_kernel;
using Mesh = CGAL::Surface_mesh<K::Point_3>;

using OTraits = CGAL::Orthtree_traits_face_graph<Mesh, Mesh::Property_map<Mesh::Vertex_index, K::Point_3>>;

namespace PMP = CGAL::Polygon_mesh_processing;

class Split_predicate_min_volume {

  double m_min_vol;
  std::shared…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@AlbertDeTerre
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by MaelRL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants