Commit Graph

70 Commits

Author SHA1 Message Date
Mael Rouxel-Labbé 89bd9ded97 Include file consistency with other packages 2017-05-12 10:34:56 +02:00
Maxime Gimeno fc68989e60 Use Simple_cartesian<double> to greatly enhance the performance. 2016-07-05 15:58:43 +02:00
Maxime Gimeno ec0928c044 Fix for AABB_demo
- The scene was not initialized when viewer->initializeGL() wwas called (still because OS X calls initialzeGL() during the setupUI instead of the first draw)
2016-01-19 17:13:06 +01:00
Maxime Gimeno 61072a8e75 Clean-up 2015-08-10 09:04:01 +02:00
Maxime Gimeno 71b0fd8d31 Replaced the OpenGL 3 3 Core context by a 2_1 context. 2015-08-10 08:46:09 +02:00
Maxime Gimeno fd38d1192b Plane manipulated secured
- Should resolve all the remaining problems about the manipulated frame, except for the wheels events.
- Added glEnable(GL_DEPTH_TEST) to the draw() function of the viewer to avoid errors in certain cases
2015-08-06 14:47:21 +02:00
Laurent Rineau 508b467203 Merge branch 'CGAL-Qt5_support-GF' 2015-08-05 11:23:40 +02:00
Maxime Gimeno 839d09e82a ManipulatedFrame fps fix
- I used the startTimer(0) to cadence the calls to cutting_plane()
- Now if the plane is spinning, the fast_distance is used.
2015-08-04 09:03:15 +02:00
Laurent Rineau 87a406ab81 Fix a warning with MSVC
> aabb_tree_demo\Scene.cpp(1313) : warning C4138: '*/' found outside of comment

Trivial bug-fix.
2015-07-30 13:04:29 +02:00
Sébastien Loriot 6dc5695989 remove unused variable warning 2015-07-22 15:47:23 +02:00
Jane Tournois 012110cfa5 fix warning for windows 2015-07-21 15:59:03 +02:00
Sébastien Loriot cffdb2ca5d fix unused variable warning 2015-07-17 13:56:04 +02:00
Maxime Gimeno f76bb19734 Windows fix
- add an attribute at the application in the main() function
- add a custom context to the viewer
2015-07-08 12:16:51 +02:00
Maxime Gimeno ce6e05e8bd WIP : forcing windows to use the right opengl context. 2015-07-07 15:12:41 +02:00
Maxime Gimeno 22dbcfaa2c Still on that SIGSEGV 2015-07-07 11:50:05 +02:00
Maxime Gimeno 870795d79d Add some info display 2015-07-07 11:22:01 +02:00
Maxime Gimeno 8b02b4f914 Still trying to fix that SIGSEGV with glGenTextures 2015-07-07 11:18:14 +02:00
Maxime Gimeno 9c501a57d4 Merge branch 'CGAL-Qt5_support-GF' of github.com:CGAL/cgal-public-dev into CGAL-Qt5_support-GF 2015-07-07 10:59:42 +02:00
Maxime Gimeno b0d87a9236 Fix for the SIGSEGV at runtime
- initializeOpenGLFunction and GglGenTextures() have been moved to draw to be sure they have a working context.
2015-07-07 10:58:30 +02:00
Andreas Fabri 1aa3ca438e Merge branch 'CGAL-Qt5_support-GF' of github.com:CGAL/cgal-public-dev into CGAL-Qt5_support-GF 2015-07-07 10:46:55 +02:00
Andreas Fabri 795a0bfafe static_casts 2015-07-07 10:46:43 +02:00
Maxime Gimeno d442644c8d Fix for the SIGSEGV at the runtime
- draw only if the vectors of vertices aren't empty.
2015-07-07 10:43:52 +02:00
Maxime Gimeno 2c8bb3f978 changed() fixed
-  are_buffers_initialized = true instead of ==true in initialize_buffers().
2015-07-07 08:36:17 +02:00
Maxime Gimeno 85afa81ebd Changed() fixed. 2015-07-07 08:33:47 +02:00
Maxime Gimeno 12501598bb Changed() fix and texture ID generation. 2015-07-07 08:21:56 +02:00
Maxime Gimeno 74ff5ae85c Clean-up
- Scene_item_with_display_list removed
- Program initializing functions being moved to scene_item to lighten-up the code of each object (Only polyhedron_item concerned at this stage)
2015-06-12 14:46:05 +02:00
Maxime Gimeno ba4ede5f50 Clean-up
- removed the unused functions and dependencies
- Replaced QGLBuffer by QOpenGLBuffer
2015-04-24 12:54:05 +02:00
Maxime Gimeno 965f2ab77b Upgrade of AABB_Tree_demo to OpenGL ES with Qt 5 wrappers.
- used qt wrapper for the gestion of the shaders.
- used OpenGL ES 3 for the gestion of the texture.
- the texture doesn't have the "FLAT" mode while moving anymore.
2015-04-08 11:13:16 +02:00
Maxime Gimeno 69a534ae37 WORK IN PROGRESS
- Added vao gestion, draws everything but the cutting plane.
2015-04-03 16:43:52 +02:00
Maxime Gimeno 0ce6f75bc4 WORK IN PROGRESS
- Added qt shader material
- only drawing a red triangle for now
2015-04-03 14:54:35 +02:00
Sébastien Loriot ff3ad95287 remove boost:: prefix 2014-07-01 13:24:02 +02:00
Andreas Fabri e95c3d452c Switch to new BGL API in package AABB_tree 2014-05-24 08:55:43 +02:00
Sébastien Loriot 0864336a66 remove compatibility with original polyhedron primitives
there is no need to maintain such an artificial compatibility, the old
primitives are still in CGAL.
2013-07-29 17:17:56 +02:00
Sébastien Loriot 9c0808cad1 fix name of classes that do not respect CGAL naming conventions
AABB_HalfedgeGraph_segment_primitive -> AABB_halfedge_graph_segment_primitive
AABB_FaceGraph_triangle_primitive -> AABB_face_graph_triangle_primitive
2013-07-23 17:46:50 +02:00
Sébastien Loriot 91dde8b2c0 use undirected_edges to have only one primitive per edge 2013-06-26 08:55:14 +02:00
Sébastien Loriot bb7c57af94 update AABB-tree demo to use the new primitives 2013-06-20 10:36:43 +02:00
Stéphane Tayeb 9c99fa19f8 AABB_demo. fix warnings: 'unsigned int' -> 'std::size_t'. 2010-07-05 07:56:40 +00:00
Stéphane Tayeb 3cfe38ec58 Fix warning. 2010-05-20 06:34:08 +00:00
Stéphane Tayeb 6b1e3d3091 + Use LF(Unix) end-of-line character and set svn:eol-style property to native.
+ Code is the same
2010-05-19 07:36:24 +00:00
Stéphane Tayeb 38ae830e13 + Bug fix: ensure that tree is not empty before computation related to cut plane. 2010-05-19 07:05:22 +00:00
Stéphane Tayeb d8e443c68e + AABB demo: use a moving plane for distance functions 2010-05-19 06:35:59 +00:00
Stéphane Tayeb 436504fad6 Cosmetic: fill cutting plane with a semi-transparent color. 2010-02-25 17:37:43 +00:00
Stéphane Tayeb a1fa2d18c9 Refining a polyhedron now resets previously computed data. 2010-02-25 12:11:22 +00:00
Stéphane Tayeb 3cd9690e34 Add cutting plane feature in AABB tree demo. 2010-02-25 10:36:04 +00:00
Pierre Alliez ee3be905cc AABB tree: bug fix (does not crash when no polyhedron is loaded) 2009-07-16 22:22:11 +00:00
Pierre Alliez 0e25638992 AABB tree: final polishing. 2009-07-13 18:58:28 +00:00
Pierre Alliez 53a898b22d AABB tree: my last update on the demo. 2009-07-10 15:19:24 +00:00
Pierre Alliez 6f797c4b8e AABB tree demo: replace QT timer by CGAL one. 2009-07-10 08:14:42 +00:00
Pierre Alliez 9772610e5f AABB tree: benchmark across kernels and updated intersection tests (more accurate).
need to fix compilation issue with EPIC kernel (I guess one include missing)
2009-07-05 13:58:00 +00:00
Pierre Alliez 291861ad99 AABB tree demo: slicer now uses scene bbox 2009-07-05 13:16:08 +00:00