mirror of https://github.com/CGAL/cgal
Some progress towards compilation of ARAP with a seam_mesh
Most of the issues come from the incomplete seam_mesh graph traits now.
This commit is contained in:
parent
4b0243d263
commit
e8d22d0f24
|
|
@ -8,6 +8,7 @@
|
|||
#include <CGAL/boost/graph/graph_traits_Polyhedron_3.h>
|
||||
|
||||
#include <CGAL/boost/graph/Seam_mesh.h>
|
||||
#include <CGAL/boost/graph/graph_traits_Seam_mesh.h>
|
||||
|
||||
#include <CGAL/ARAP_parameterizer_3.h>
|
||||
#include <CGAL/Barycentric_mapping_parameterizer_3.h>
|
||||
|
|
|
|||
|
|
@ -246,10 +246,16 @@ private:
|
|||
// This fixes two vertices that are far in the original geometry
|
||||
|
||||
// A local uvmap (that is then discarded) is passed to avoid changing
|
||||
// the values of the real uvmap
|
||||
CGAL::Unique_hash_map<vertex_descriptor, Point_2> useless_uvmap;
|
||||
// the values of the real uvmap. Since we can't get VertexUVMap::C,
|
||||
// we build a map with the same key and value type
|
||||
typedef boost::unordered_map<typename VertexUVMap::key_type,
|
||||
typename VertexUVMap::value_type> Useless_map;
|
||||
typedef boost::associative_property_map<Useless_map> Useless_pmap;
|
||||
|
||||
Useless_map useless_map;
|
||||
Useless_pmap useless_uvpmap(useless_map);
|
||||
status = get_border_parameterizer().parameterize_border(mesh, bhd,
|
||||
VertexUVMap(useless_uvmap),
|
||||
useless_uvpmap,
|
||||
vpmap);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue