Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] unable to compile simplification with LinstromTurk cost

Subject: CGAL users discussion list

List archive

[cgal-discuss] unable to compile simplification with LinstromTurk cost


Chronological Thread 
  • From: pwr00 <>
  • To:
  • Subject: [cgal-discuss] unable to compile simplification with LinstromTurk cost
  • Date: Sun, 30 Jun 2013 06:16:06 -0700 (PDT)

Hi!
I am trying to do a polygon reduction with LindstromTurk cost but am unable
to compile the code. It looks like this:

CGAL::Surface_mesh_simplification::LindstromTurk_cost< Polyhedron3 >
oStop;

wlib::Int nNumRemovedEdges =
CGAL::Surface_mesh_simplification::edge_collapse(
m_oPolyhedron3,
oStop,
CGAL::vertex_index_map( boost::get( CGAL::vertex_external_index,
m_oPolyhedron3 ) ).edge_index_map( boost::get( CGAL::edge_external_index,
m_oPolyhedron3 ) ) );


where m_oPolyhedron3 is
typedef CGAL::Simple_cartesian< float > Kernel;
typedef CGAL::Polyhedron_3< Kernel > Polyhedron3;


The compilation error that I get is:

Impl/CGALWrapperImpl.cpp:72:33: note: in instantiation of function template
specialization
'CGAL::Surface_mesh_simplification::edge_collapse<CGAL::Polyhedron_3&lt;CGAL::Simple_cartesian&lt;float>,
CGAL::Polyhedron_items_3, HalfedgeDS_default, std::allocator<int>>,
CGAL::Surface_mesh_simplification::LindstromTurk_cost<CGAL::Polyhedron_3&lt;CGAL::Simple_cartesian&lt;float>,
CGAL::Polyhedron_items_3, HalfedgeDS_default, std::allocator<int>>>,
CGAL::Polyhedron_edge_index_map_external<CGAL::Simple_cartesian&lt;float>,
CGAL::Polyhedron_items_3, HalfedgeDS_default, std::allocator<int>>,
boost::edge_index_t,
CGAL::cgal_bgl_named_params<CGAL::Polyhedron_vertex_index_map_external&lt;CGAL::Simple_cartesian&lt;float>,
CGAL::Polyhedron_items_3, HalfedgeDS_default, std::allocator<int>>,
boost::vertex_index_t, boost::no_property> >' requested here
wlib::Int nNumRemovedEdges =
CGAL::Surface_mesh_simplification::edge_collapse(
^
/usr/local/include/CGAL/Surface_mesh_simplification/Policies/Edge_collapse/LindstromTurk_cost.h:49:15:
note: candidate function not viable: requires 2 arguments, but 4 were
provided
result_type operator()( Profile const& aProfile, optional<Point> const&
aPlacement ) const
^
9 warnings and 1 error generated.
make: ***
[../../../../build/intermediate-debug/CGALWrapper/Impl/CGALWrapperImpl.o]
Error 1



--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/unable-to-compile-simplification-with-LinstromTurk-cost-tp4657735.html
Sent from the cgal-discuss mailing list archive at Nabble.com.


  • [cgal-discuss] unable to compile simplification with LinstromTurk cost, pwr00, 06/30/2013

Archive powered by MHonArc 2.6.18.

Top of Page