Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Use Polyhedron_3 with isotropic_remeshing

Subject: CGAL users discussion list

List archive

[cgal-discuss] Use Polyhedron_3 with isotropic_remeshing


Chronological Thread 
  • From: Tritium <>
  • To:
  • Subject: [cgal-discuss] Use Polyhedron_3 with isotropic_remeshing
  • Date: Sun, 6 May 2018 14:52:58 -0700 (MST)
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=None ; spf=Pass
  • Ironport-phdr: 9a23:t5gr8R1MEqBG8wVIsmDT+DRfVm0co7zxezQtwd8Zse0WKvad9pjvdHbS+e9qxAeQG9mDsLQc06L/iOPJYSQ4+5GPsXQPItRndiQuroEopTEmG9OPEkbhLfTnPGQQFcVGU0J5rTngaRAGUMnxaEfPrXKs8DUcBgvwNRZvJuTyB4Xek9m72/q99pHPbQhEniaxba9vJxiqsAvdsdUbj5F/Iagr0BvJpXVIe+VSxWx2IF+Yggjx6MSt8pN96ipco/0u+dJOXqX8ZKQ4UKdXDC86PGAv5c3krgfMQA2S7XYBSGoWkx5IAw/Y7BHmW5r6ryX3uvZh1CScIMb7S60/Vza/4KdxUBLmhicJOSA6/m/KhcN/kK1VrQm9pxxm34LYfJ2ZOOZ8c67bYNgURXBBXsFUVyFZHI28dYoPD/YAPeZFqon2ulwDrR+jBQmvHuzv0SVEiWTt0KIk3eUuDx3G0xIkH94UtnTbssn1Ob4UXOuowqfIyjDDYOlX2Tf78IXIdAouruqXUrJ0b8Xd01UgFwTAjliWtIfrPCuV2/wQv2Wa8eZsT/yjhm4ppg1rvzSiyMkhhpPLi44LzF3P6D93z5wvJdKiTU52ed6kH4VUtyGdL4Z2RMwvT3tuuCkg0bIJopq7czYQxJs7wB7fbuSLc4mO4h39SOacOSp0iXN7dL6lmRq/8UatxvfhWsS63ltGtChInsfUunAIzRPT68yHSvVn/kem3DaCzwTT6vxHIU8ujqrXMYUuz6UumZsdr0vDAjH5mEHsgK+QaEok5vCk6/77bbX+up+cK4h0hxniPaQhgMO/Bf00PRUPX2iA5eu8yabj/VbiTbVRjvw2l7HZv4rAKcQaoK65GQ5V3Zw55xaxFTf1mOgfyHIIJVYAdBOchJXyIHnPJur5BLGxmQeCijBukszcP6HgH5CFenzek776O7xV5lFR1Ac3i9ZS+8QHWfk6PPvvVxqp55TjBRgjPlnsmre1OJBGzoobHFm3LOqcOaLWv0WP47t1ceSTaZMYvHD7JuR3v6ey3098okcUeOyS5bVScGqxR640LlqUfXfoxNEMDTVS51dsfKnRkFSHFAVrSTOyUqY7v2xpDt7gC47JTISgxreG2XXiEw==

I recently switched from using Surface_mesh to using Polyhedron_3.
Now a call of isotropic_remeshing throws a compiler error.
A basic example is:

#include <iostream>
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Polyhedron_3.h>
#include <CGAL/Polygon_mesh_processing/remesh.h>
#include <CGAL/Polygon_mesh_processing/triangulate_faces.h>

typedef CGAL::Simple_cartesian<double> Kernel;
typedef Kernel::Point_3 Point_3;
typedef CGAL::Polyhedron_3<Kernel> Meshtype;
typedef Meshtype::Halfedge_handle Halfedge_handle;


int main()
{
Meshtype* plane = new Meshtype;
Halfedge_handle h = plane->make_triangle(Point_3(0.0, 0.0, 0.0),
Point_3(1.0, 1.0, 0.0),
Point_3(0.0, 1.0, 0.0));

//split triangle at (p1, p3) edge and insert p2.
Halfedge_handle h_new = plane->split_edge(h->next());
h_new->vertex()->point() = Point_3(1.0, 0.0, 0.0);

CGAL::Polygon_mesh_processing::triangulate_faces(*plane);
CGAL::Polygon_mesh_processing::isotropic_remeshing (
faces(*plane),
0.3,
*plane);

std::cout << plane->size_of_vertices();
delete plane;

}



The compiler error is:
[....]
/usr/include/boost/property_map/shared_array_property_map.hpp:23:56: error:
no type named ‘key_type’ in ‘struct boost::property_traits<bool>’
typedef typename property_traits<IndexMap>::key_type key_type;

I think it has something to do with the property map mechanism, but i have
no clue why it is working with surface_mesh and not with Polyhedron_3.
Any help would be appreciated.



--
Sent from: http://cgal-discuss.949826.n4.nabble.com/


  • [cgal-discuss] Use Polyhedron_3 with isotropic_remeshing, Tritium, 05/06/2018

Archive powered by MHonArc 2.6.18.

Top of Page