Subject: CGAL users discussion list
List archive
- From: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] unable to compile simplification with LinstromTurk cost
- Date: Tue, 02 Jul 2013 08:21:10 +0200
- Organization: GeometryFactory
Could you please provide a minimal example showing the pb?
An potential pb I see in the line you pasted:
... CGAL::vertex_external_index, m_oPolyhedron3 ) ).edge_index_map ...
^
this '.' is suspicious.
Sebastien.
On 06/30/2013 03:16 PM, pwr00 wrote:
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<CGAL::Simple_cartesian<float>,
CGAL::Polyhedron_items_3, HalfedgeDS_default, std::allocator<int>>,
CGAL::Surface_mesh_simplification::LindstromTurk_cost<CGAL::Polyhedron_3<CGAL::Simple_cartesian<float>,
CGAL::Polyhedron_items_3, HalfedgeDS_default, std::allocator<int>>>,
CGAL::Polyhedron_edge_index_map_external<CGAL::Simple_cartesian<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<CGAL::Simple_cartesian<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.
- Re: [cgal-discuss] unable to compile simplification with LinstromTurk cost, Sebastien Loriot (GeometryFactory), 07/02/2013
- Re: [cgal-discuss] unable to compile simplification with LinstromTurk cost, Pär Wrange, 07/02/2013
Archive powered by MHonArc 2.6.18.