Tesselation wrapper broken

Bug #1514477 reported by Kneib François
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Yade
Fix Released
Undecided
Bruno Chareyre

Bug Description

Ubuntu 14.04
Last yadedaily or trunk (9 november 2015) : Yade version: 1.20.0-1-b8083be~trusty
libcgal-dev 4.5-2~trusty1 (same for libcgal10)

When running the script : examples/tesselationWrapper/tesselationWrapper.py, we get :

francois@GRP3738:~/these/yade/trunk/examples/tesselationwrapper$ yadedaily tesselationWrapper.py
Welcome to Yade 1.20.0-1-b8083be~trusty
TCP python prompt on localhost:9000, auth cookie `ussykc'
XMLRPC info provider on http://localhost:21000
Running script tesselationWrapper.py
python: /build/yadedaily-1.20.0-1-b8083be~trusty/lib/triangulation/Tesselation.ipp :66 : CGT::_Tesselation<TT>::VertexHandle CGT::_Tesselation<TT>::insert(CGT::Real, CGT::Real, CGT::Real, CGT::Real, unsigned int, bool) [with TT = CGT::TriangulationTypes<CGT::SimpleVertexInfo, CGT::SimpleCellInfo>; CGT::_Tesselation<TT>::VertexHandle = CGAL::internal::CC_iterator<CGAL::Compact_container<CGAL::Triangulation_vertex_base_with_info_3<CGT::SimpleVertexInfo, CGAL::Regular_triangulation_euclidean_traits_3<CGAL::Epick>, CGAL::Triangulation_vertex_base_3<CGAL::Regular_triangulation_euclidean_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::Triangulation_vertex_base_with_info_3<CGT::SimpleVertexInfo, CGAL::Regular_triangulation_euclidean_traits_3<CGAL::Epick>, CGAL::Triangulation_vertex_base_3<CGAL::Regular_triangulation_euclidean_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_vertex_base_3<void> > >, CGAL::Triangulation_cell_base_with_info_3<CGT::SimpleCellInfo, CGAL::Regular_triangulation_euclidean_traits_3<CGAL::Epick>, CGAL::Triangulation_cell_base_3<CGAL::Regular_triangulation_euclidean_traits_3<CGAL::Epick>, CGAL::Triangulation_ds_cell_base_3<void> > >, CGAL::Sequential_tag> > > >, CGAL::Default, CGAL::Default, CGAL::Default>, false>; CGT::Real = double]: l'assertion « vertexHandles.size()>id » a échoué.
Abandon (core dumped)

Revision history for this message
Chareyre (bruno-chareyre-9) wrote : Re: [Yade-dev] [Bug 1514477] [NEW] Tesselation wrapper broken

Most likely another typo in some recent changes. Thanks for reporting.
Bruno

Revision history for this message
Bruno Chareyre (bruno-chareyre) wrote :

Fixed [1].
The problem was due to a change in gcc, it seems.

For years, the syntax "a+ t ? 1 : 0" has been returning "a+(t?1:0)".
But now it returns "(a+t)?1:0"

Bruno

[1] https://github.com/yade/trunk/commit/331661ba82953a2e16c2c09ef829d97a4441da26

Changed in yade:
assignee: nobody → Bruno Chareyre (bruno-chareyre)
status: New → Fix Released
Revision history for this message
Kneib François (francois-kneib) wrote :

Many thanks Bruno, it really helps me. See you.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers