Commit Graph

3860 Commits

Author SHA1 Message Date
Laurent Rineau f56c77f7e5 Merge pull request #1951 from sgiraudot/Polyhedron_demo-Fix_duplicated_points_selection-GF
Polyhedron demo: fix duplicated points selection
2017-04-05 17:02:32 +02:00
Laurent Rineau 928805d911 Merge pull request #1972 from maxGimeno/Polyhedron_demo-delete_poly_at_real_time-GF
Polyhedron_demo: Enhance memory management in the demo
2017-04-05 17:02:24 +02:00
Laurent Rineau d2ed62a690 Merge pull request #1922 from maxGimeno/Polyhedron_demo-Export_surf_in_surface_mesh-GF
Polyhedron_demo: Surf_to_sm_io_plugin
2017-04-05 17:02:08 +02:00
Laurent Rineau 2cbd2532bb Merge pull request #1911 from lrineau/Mesh_3-manifold_TBB-lrineau
Mesh 3: fix the manifold code with TBB
2017-04-05 17:02:00 +02:00
Maxime Gimeno be04b737a2 Remove lonely typedef 2017-04-04 14:53:18 +02:00
Maxime Gimeno 3b41b1e9ef - Add a plugin to read a surf in surface_meshes
- Add a constructor to the Scene_surface_mesh_item that takes a SMesh.
2017-04-04 11:42:41 +02:00
Maxime Gimeno 2535fd3490 Add override declarations 2017-04-03 12:56:12 +02:00
Laurent Rineau d6c0396f04 Merge pull request #1981 from janetournois/Polyhedron_demo-fix_surf_reader_non_manifold-jtournois
Polyhedron demo : fix surf reader
2017-03-30 18:26:53 +02:00
Laurent Rineau d06ed1dee5 Merge pull request #1975 from maxGimeno/Polyhedron_demo-Fix_polylines_reading-GF
Fix polylines reading
2017-03-29 11:49:59 +02:00
Laurent Rineau ae6b2f2525 Merge pull request #1984 from maxGimeno/Polyhedron_demo-Fix_offset-GF
Fix offset bug in polyhedron_demo
2017-03-29 11:49:00 +02:00
Simon Giraudot a29c9a8d60 Fix identation 2017-03-27 07:45:14 +02:00
Jane Tournois a86708e35c add verbosity 2017-03-24 14:15:54 +01:00
Maxime Gimeno f0424b49bd clean up 2017-03-24 14:14:49 +01:00
Jane Tournois a0f4f90afc fix compilation for c++98 2017-03-24 13:04:36 +01:00
Jane Tournois 704dcf9cca do not allow Exterior material to have something else than Id 0 2017-03-24 13:02:04 +01:00
Jane Tournois e3a5dc0fbe remove isolated vertices in each surface patch
the vector of all vertices is first inserted in all patches
2017-03-24 12:59:14 +01:00
Maxime Gimeno a732bb3c66 Don't use signals/slots system but override itemAboutToBeDestroyed 2017-03-24 12:10:22 +01:00
Maxime Gimeno d5fc592135 clean the surface_mesh_item, point-set_item and c3t3_item as well 2017-03-24 12:10:01 +01:00
Maxime Gimeno d661b4a6ab Delete the polyhedron of an item at real time. 2017-03-24 12:09:30 +01:00
Jane Tournois 78a3dba576 .reserve(..) that big vector, to optimize memory allocations 2017-03-23 15:48:46 +01:00
Jane Tournois 927b988e16 remove assertion which is not always true 2017-03-23 15:44:02 +01:00
Andreas Fabri 1db870c8d2 Correct inclusion of code that was moved from PMP to Operations_on_polyhedra 2017-03-23 09:04:57 +01:00
Maxime Gimeno 93127758d9 Fix l_distance offset-center computing. 2017-03-22 11:57:04 +01:00
Jane Tournois 23b25c305b add missing include 2017-03-20 17:21:24 +01:00
Jane Tournois 5d3c5b5476 avoid all the useless string manipulations
and try to make the code easier to read
2017-03-20 16:52:10 +01:00
Jane Tournois ade5079c89 fix the non-manifold case
when a surface patch is non-manifold, use PMP::orient_polygon_soup
to duplicate vertices/edges to separate the surface into
subsurfaces that are manifold and hence valid as a Polyhedron_3
2017-03-20 16:00:28 +01:00
Maxime Gimeno eb59b55df8 Don't use polylines.resize(), which is linear. 2017-03-16 16:45:04 +01:00
Sebastien Loriot 26c6dac6fa Merge pull request #1919 from maxGimeno/Polyhedron_demo-Reduce_memory_consumption-GF
Polyhedron demo: OFF_plugin optimizations
2017-03-14 16:29:16 +01:00
Jane Tournois cc259c137f fix display of text in console
it was inserted wherever the user had clicked before. Now it is appended at the end
of the console messages
2017-03-10 15:56:29 +01:00
Laurent Rineau 38a064f582 Fix one_step() with TBB/manifold and mesh_3_plugin 2017-03-10 14:46:50 +01:00
Laurent Rineau a7cffb4238 Merge pull request #1937 from maxGimeno/Polyhedron_demo-Add_statistics_to_polyhedron-GF
Polyhedron_demo: Add faces statistics.
2017-03-09 19:05:55 +01:00
Maxime Gimeno b9b18778b8 Cast std::size_t in unsigned int to silence warnings 2017-03-08 11:48:17 +01:00
Laurent Rineau 140ea3ab9b Merge pull request #1930 from sgiraudot/Polyhedron_demo-PCA_plugin_for_point_sets-GF
Polyhedron demo: add point set support in PCA plugin
2017-03-07 17:55:08 +01:00
Simon Giraudot aab1cfade3 Fix duplicated points selection 2017-03-06 14:04:05 +01:00
Laurent Rineau f60275ff28 Merge pull request #1933 from janetournois/Polyhedron_demo-fix_warnings_msvc-jtournois
Polyhedron demo : fix warnings
2017-03-02 16:55:15 +01:00
Maxime Gimeno 3a940b429a Fix Segfault when trying to save an unsavable item 2017-03-02 14:50:02 +01:00
Maxime Gimeno a9046343f9 fixes 2017-03-01 14:36:24 +01:00
Maxime Gimeno 0ce8807a6a Add faces statistics. 2017-02-28 13:01:43 +01:00
Jane Tournois 2ef13ddf3d fix conversion warnings 2017-02-27 15:08:57 +01:00
Simon Giraudot 027a120728 Add point set support in PCA plugin 2017-02-27 10:21:38 +01:00
Maxime Gimeno 0632a86970 Factorize program declaration and use special shader for flat shading without pre computing the normals. 2017-02-21 15:20:33 +01:00
Maxime Gimeno 25989d1035 Add a toggle of the Flat Shading 2017-02-21 15:11:43 +01:00
Maxime Gimeno 369eef547e Fix the gouraud for non triangle facets. 2017-02-21 15:11:43 +01:00
Maxime Gimeno 7b8d11d388 Enhancements :
- Use indexed drawing for edges and gouraud in Polyhedron_item
- Use shrink_to_fit() in Surface_mesh_item.
- Remove useless edge_colors in Polyhedron_item
- Use only 3 coordinates for vertices in Polyhedron_item
2017-02-21 15:11:43 +01:00
Laurent Rineau 263a4fe1f0 Merge pull request #1902 from maxGimeno/Polyhedron_demo-Detect_degenerated_faces_in_polygon_soup_item-GF
Polyhedron_demo: Discard degenerated faces in elements computation
2017-02-15 19:48:15 +01:00
Maxime Gimeno cd4dded4c0 Discard degenerated faces from the item's elements computation. 2017-02-15 11:18:41 +01:00
Laurent Rineau a1f2a37705 Merge pull request #1885 from maxGimeno/Tet_soup_in_c3t3-GF
Add a .mesh reader
2017-02-14 15:59:03 +01:00
Jane Tournois a6a5837262 call add_to_complex(c, i, spi) with the right 3rd parameter
plus a little cleaning
2017-02-14 15:48:06 +01:00
Laurent Rineau 6ea415022b Merge pull request #1885 from maxGimeno/Tet_soup_in_c3t3-GF
Add a .mesh reader
2017-02-10 19:03:49 +01:00
Laurent Rineau 8f4e0cda65 Merge pull request #1896 from maxGimeno/Polyhedron_demo-Fix_path_selection-GF
Polyhedron_demo: Fix the highlighting in the selection_plugin
2017-02-10 19:03:34 +01:00