Skip to Content.
Sympa Menu

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

Subject: CGAL users discussion list

List archive

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


Chronological Thread 
  • From: Pär Wrange <>
  • To: "" <>
  • Subject: Re: [cgal-discuss] unable to compile simplification with LinstromTurk cost
  • Date: Tue, 2 Jul 2013 09:41:17 +0200

Hm, I think that I missunderstood the documentation. LindstromTurk cost can't
be used in such a way. Sorry for the bad posting. Forgot to answer my own
question here.

But anyway, I found a post here were a member instead used a function to
stop the simplification when a specific cost was reached. Unfortunarely I'm
not at my computer so I can't paste a link.

On 2 jul 2013, at 08:21, "Sebastien Loriot (GeometryFactory)"
<>
wrote:

> 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&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.
>
>
> --
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
> https://sympa.inria.fr/sympa/info/cgal-discuss
>
>



Archive powered by MHonArc 2.6.18.

Top of Page