Commit Graph

2841 Commits

Author SHA1 Message Date
Laurent Rineau 5efb63bddd Merge pull request #998 from sloriot/Polyhedron_demo-enhance_intersection_plugin
Only create a polyline item if the intersection is not empty
2016-04-14 15:18:11 +02:00
Laurent Rineau 26af71e126 Merge pull request #883 from lrineau/Three-Scene_group_can_draw-GF
Change the semantic of the Scene_group_item
2016-04-14 15:17:07 +02:00
Laurent Rineau 481088f299 Merge pull request #989 from lrineau/Polyhedron-demo_speed_up_loading_of_c3t3_items-GF
Polyhedron demo: speed up loading of c3t3 items
2016-04-14 15:11:46 +02:00
Maxime Gimeno 524a8da107 Remove glu from all the CMakeLists 2016-04-14 09:29:50 +02:00
Maxime Gimeno d084cccd6b Removes GLU from the CMakeLists.txt 2016-04-14 08:38:39 +02:00
Maxime Gimeno b9dd2f314c Fix the point_set selection polylines. 2016-04-13 16:44:31 +02:00
Laurent Rineau 63dc460f42 Merge commit 'refs/pull/990/head' into Three-Scene_group_can_draw-GF
Conflicts:
	Polyhedron/demo/Polyhedron/Scene.cpp
	Polyhedron/demo/Polyhedron/Scene.h
	Three/include/CGAL/Three/Scene_draw_interface.h
2016-04-13 11:52:57 +02:00
Laurent Rineau 9cbae0394d Merge pull request #934 from maxGimeno/Polyhedron_demo-Clipping_polyhedron_plugin_enhancement-GF
Polyhedron_demo: Clip_polyhedron_plugin enhancement
2016-04-13 11:19:38 +02:00
Laurent Rineau 1e4d22549c Fix the text: remove empty lines 2016-04-13 11:04:48 +02:00
Laurent Rineau 202d2c2cf0 Merge pull request #893 from sgiraudot/Polyhedron_demo-Unify_off_io_plugins-GF
Polyhedron demo: unify OFF io plugins
2016-04-13 10:46:29 +02:00
Laurent Rineau cf961c3a2d Merge pull request #877 from maxGimeno/Polyhedron-demo-Trivial_fixes-GF
Polyhedron_demo:  Trivial fixes
2016-04-13 10:36:42 +02:00
Laurent Rineau 555f46e850 Merge pull request #928 from janetournois/Polyhedron_demo-fix_colors-GF
Polyhedron item : fix access in color map
2016-04-13 10:33:40 +02:00
Laurent Rineau 897085b418 Merge pull request #936 from maxGimeno/Polyhedron_demo-Selection_tool_enhancement-GF
Polyhedron_demo : selection tool enhancement
2016-04-13 10:32:29 +02:00
Sébastien Loriot 853006afb0 only create a polyline item if the intersection is not empty 2016-04-12 09:20:11 +02:00
Simon Giraudot 3dc74359ea Create point set from vertices of polygon soup 2016-04-11 15:56:30 +02:00
Simon Giraudot c579dd3e65 Add dependency to polygon soup in CMakeLists 2016-04-11 15:56:10 +02:00
Simon Giraudot 6d38c89203 Add method to access points of polygon soup 2016-04-11 15:55:49 +02:00
Laurent Rineau f8aabdcc36 Merge pull request #990 from maxGimeno/Polyhedorn_demo-New_picking-GF
Polyhedron_demo : New picking
2016-04-11 11:58:35 +02:00
Laurent Rineau e83bf2dc43 Merge pull request #977 from lrineau/Polyhedron-demo_fix_c3t3_item_again-GF
Polyhedron demo: fix c3t3 item, again
2016-04-11 11:45:49 +02:00
Laurent Rineau 9b49b2ff0b Merge pull request #982 from maxGimeno/P_Demo-Fix_for_Ctrl_Space-GF
Polyhedron_demo : Fix for the Ctrl+space shortcut
2016-04-08 15:16:30 +02:00
Maxime Gimeno 0ef8191fb7 Allow picking for edges and points. 2016-04-07 15:32:20 +02:00
Laurent Rineau dca86376bf Follow-up to "Do not depend on `Viewer.h`"
That commit was not complete:
> Author: Laurent Rineau <laurent.rineau@cgal.org>
> Date:   Fri Apr 1 16:11:52 2016 +0200
>
>     Do not depend on `Viewer.h`
>
>     Only `Viewer_interface.h` is needed.

Once `Viewer.h` is removed from a few `.h` file, then
`Viewer_interface.h` must be included in `.cpp` files that use the
`Viewer_interface` API.
2016-04-07 14:49:43 +02:00
Maxime Gimeno 24b16b4710 New picking finished. Far more efficient. 2016-04-07 10:13:20 +02:00
Laurent Rineau b9ea69e5c3 Do no always compute the AABB tree
- The c3t3 item has an option "Show tetrahedra".

- The AABB tree is built lazily, when needed.

- The AABB tree data member is moved in `Scene_c3t3_item_priv`.
2016-04-06 16:20:25 +02:00
Laurent Rineau 0cd5d8a6c4 Fix the look-at function 2016-04-06 16:06:46 +02:00
Laurent Rineau 535c5bb5b2 Speed-up Triangulation_3::read_cells...
... by a factor 5 for big triangulations! The old code was using:

    std::map<size_t, Vertex_handle> V;
    std::map<size_t, Cell_handle> C;

whereas the indices are contiguous: from 0 to n. `std::vector` is a lot
better for that use case!
2016-04-06 16:03:55 +02:00
Maxime Gimeno bc6d5aa574 Fix for the waitCursor 2016-04-05 15:10:44 +02:00
Maxime Gimeno 1aa34e060a Fix for missing combo-box 2016-04-05 11:36:26 +02:00
Jane Tournois f9fdd779f4 a bit more reorganization of the UI 2016-04-05 10:34:38 +02:00
Maxime Gimeno 386995bbdc Final fix for itemChanged calls 2016-04-04 16:53:17 +02:00
Laurent Rineau 6164c91227 Merge changes to PMP from branch 'releases/CGAL-4.8-branch'
Merges:
> 621e16ed Merge pull request #973 from janetournois/Polyhedron_demo-fix_isotropic_remeshing_plugin-jtournois
> 4d1ac46 Merge pull request #974 from janetournois/PMP-complete_remeshing_test-jtournois
2016-04-04 11:22:09 +02:00
Laurent Rineau 621e16ed41 Merge pull request #973 from janetournois/Polyhedron_demo-fix_isotropic_remeshing_plugin-jtournois
PMP : fix isotropic_remeshing plugin
2016-04-04 11:19:52 +02:00
Maxime Gimeno dfc2143b28 Fix for emit itemChanged() 2016-04-04 11:18:29 +02:00
Jane Tournois f0261b6a3c minor reorganization of the UI 2016-04-04 10:35:26 +02:00
Maxime Gimeno 56486dbadd Fix for the ctrl+space shortcut 2016-04-04 10:13:21 +02:00
Laurent Rineau 77a688530b Fix memory leak 2016-04-01 16:16:17 +02:00
Laurent Rineau f267cfb960 Do not depend on `Viewer.h`
Only `Viewer_interface.h` is needed.
2016-04-01 16:11:52 +02:00
Laurent Rineau 910f17cd51 Allow to pop the context menu with `Key_Menu`
As the item selection is rather slow, for the moment, that is a lot
faster than `Shift+Rightbutton`.
2016-04-01 16:10:58 +02:00
Laurent Rineau 5a9d82ebc7 Improve c3t3 loading and display
Followup to PR #962:

 - the display of spheres was no longer correct,
 - allow loading of c3t3 without any facets and cells (only vertices
   with weights),
 - fix the display of spheres, with better shaders,
 - `Scene_c3t3_item`: do not draw edges, in FlatPlusEdges, during a
   `drawWithNames()`, to optimize speed,
 - `Viewer`: do not use anti-aliasing during `drawWithNames()`
2016-04-01 16:07:56 +02:00
Laurent Rineau 4f599d5310 Merge pull request #959 from janetournois/PMP-isotropic_remeshing_made_verbose-jtournois
Polyhedron demo : add verbosity to isotropic_remeshing plugin
2016-04-01 11:17:49 +02:00
Laurent Rineau 7700b73176 Merge branch 'releases/CGAL-4.8-branch'
Merges:
> d53efdd - Merge pull request #964 from afabri/Mesh_2-BOOST_PARAMETER_MAX_ARITY-GF
2016-04-01 11:00:57 +02:00
Laurent Rineau d53efddbd8 Merge pull request #964 from afabri/Mesh_2-BOOST_PARAMETER_MAX_ARITY-GF
#define BOOST_PARAMETER_MAX_ARITY early enough
2016-04-01 11:00:06 +02:00
Jane Tournois 52b09a1e44 do not forget to reset face indices properly before remeshing 2016-03-31 15:43:07 +02:00
Jane Tournois 964e824750 make "preserve duplicates" not available on a selection_item 2016-03-31 15:17:14 +02:00
Jane Tournois 0804847e64 when remeshing a selection_item, use it instead of poly_item 2016-03-31 15:16:55 +02:00
Laurent Rineau ae33af9222 Merge branch 'releases/CGAL-4.8-branch'
Merges the following fixes:
> 4025913 Merge pull request #949 from janetournois/BGL-fix_conversion_of_boundary_halfedges-jtournois
> 9c62628 Merge pull request #948 from janetournois/PMP-fix_assertion_isotropic_remeshing-jtournois
> f61402d Merge pull request #929 from sloriot/Polyhedron_demo-Isotropic_remeshing_preserve_duplicates

See also:

* https://github.com/CGAL/cgal/pull/949
* https://github.com/CGAL/cgal/pull/948
* https://github.com/CGAL/cgal/pull/929
2016-03-31 10:55:12 +02:00
Laurent Rineau f61402d1d4 Merge pull request #929 from sloriot/Polyhedron_demo-Isotropic_remeshing_preserve_duplicates
Polyhedron demo: isotropic remeshing preserves duplicated edges
2016-03-31 10:53:12 +02:00
Laurent Rineau 0e68aca4ed Merge branch 'releases/CGAL-4.8-branch'
Merges:
  - a change of the release date of CGAL-4.8
  - a fix of a typo in `Polyhedron/demo/Polyhedron/GlSplat/GlSplat.cpp`
2016-03-30 17:11:36 +02:00
Andreas Fabri 920f1dba60 #define the arity, as some other file sets it too low 2016-03-30 12:22:13 +02:00
Laurent Rineau aff611cb3e Merge pull request #952 from lrineau/Mesh_3-better_binary_IO-lrineau
Fix issues in I/O of Mesh_complex_3_in_triangulation_3
2016-03-30 10:11:21 +02:00
Laurent Rineau c52758d590 Improve the draw of the intersection
I have tweaked the vertex and fragment shaders, to avoid the curious
color interpolation for triangles of the intersection with the cutting
plane.

The component `color.w` is set to the signed distance to the cutting
plane (no longer any conditional in the vertex shader).

Then in the fragment shader, the drawing color is composed as such:

    if(color.w<0)
    {
      vec4 my_color = vec4(color.xzy, 1.);
      // [...]
    }
    else
      discard;
2016-03-29 18:38:20 +02:00
Laurent Rineau 1439796bf6 Do not draw the intersection while the plane is manipulated
... plus a fix in `draw_edges()`: missing call to
`compute_intersections()`, if the item was drawn in wireframe-only.
2016-03-29 18:37:18 +02:00
Laurent Rineau 3c7a5dd7b1 Fix a critical performance issue
As decided by `MainWindow`, the `Scene_c3t3_item::toolTip()` method is
called by `MainWindow::updateInfo()` for each `modified()` event of the
manipulated frame. While the frame is manipulated, that generates a lot
of events, and a lot of calls to `toolTip()`.

Before this commit, the call to `Scene_c3t3_item::toolTip()`
was `O(n)`. After this commit it is `O(1)`.

That speeds up a lot the drawing of the item while the frame is
manipulated!
2016-03-29 18:33:59 +02:00
Sébastien Loriot dfd943c8e2 fix typo 2016-03-29 17:08:51 +02:00
Jane Tournois dc3c2f9a8d add verbosity to isotropic_remeshing
when it's called on several polyhedra, possibly in parallel
2016-03-29 14:57:48 +02:00
Laurent Rineau 216b298652 Fix issues in I/O of Mesh_complex_3_in_triangulation_3
And restore the possibility for the Polyhedron demo to load two types of
C3t3 (with `Patch_id` being `int` or `std::pair<int, int>`).
2016-03-25 15:45:28 +01:00
Maxime Gimeno 8b361c957a Fix the bbox and clean-up 2016-03-25 12:39:55 +01:00
Sébastien Loriot f7848d686a remove unused type 2016-03-25 10:16:21 +01:00
Maxime Gimeno d6ea729758 Addition of a position memory for the planes
- When the user switch from an item to another, the planes are still in the same position as when he left.
- Addition of a label to indicate that the planes are connected to the selected image
- Fix for a segfault occuring when a plane was destroyed and the imag was selected afterwards.
2016-03-25 09:59:09 +01:00
Maxime Gimeno 52babc058f Addition of a dialog during the planes creation. 2016-03-25 09:59:07 +01:00
Maxime Gimeno 7e422d484f Adapt the controls
- When there are several segmented images with planes, the sliders adapt to the last selected one.
2016-03-25 09:59:02 +01:00
Maxime Gimeno 94f4b42bc6 Adds all planes + intersection in a group. 2016-03-25 09:58:59 +01:00
Sébastien Loriot 9e82d734c2 remove unused typedef and variable 2016-03-24 17:26:19 +01:00
Maxime Gimeno d106d60471 Segfault Fix
- When deleting the selection_item AND it's associated item, there is no more segfault.
2016-03-23 13:52:28 +01:00
Maxime Gimeno cae48d8147 Fix shrinking UI 2016-03-22 10:52:27 +01:00
Maxime Gimeno ba86f7ac69 Addition of a feature to inverse the current selection 2016-03-22 10:31:20 +01:00
Maxime Gimeno e174d9373d Addition of a clear_all_button 2016-03-22 10:01:12 +01:00
Maxime Gimeno c173419d61 Addition of a button to flip the plane and a selection color for the plane. 2016-03-22 09:17:11 +01:00
Maxime Gimeno 32a43ad3e0 Addition of a split feature 2016-03-21 15:59:30 +01:00
Jane Tournois fd98e1c5bd init() can't be fully done in the constructor with no parameter 2016-03-21 10:58:36 +01:00
Simon Giraudot bf8e8325d0 Bugfix: update shape detection plugin with new plane regularization API 2016-03-21 10:50:05 +01:00
Sébastien Loriot 7d1b315fab reduce the size of the color map of a polyhedron scene item ...
...  to  (max patch id - min patch id+1)

# Conflicts:
#	Polyhedron/demo/Polyhedron/Scene_polyhedron_item.cpp
#	Polyhedron/demo/Polyhedron/Scene_polyhedron_item.h
#	Polyhedron/demo/Polyhedron/include/CGAL/gl_render.h
2016-03-21 10:06:48 +01:00
Sébastien Loriot f2b3a4dd24 remeshing with duplicated constraints now splits the constrained edges
this ensures the remeshing will always work
2016-03-18 18:25:10 +01:00
Jane Tournois e4006a5499 fix access in color map, in case we have a single patch with index > 0 2016-03-18 17:44:48 +01:00
Sébastien Loriot 315a2e9184 connect constraining of duplicated edge to the protection of constraints 2016-03-17 17:57:34 +01:00
Laurent Rineau dee4739ecd Merge pull request #915 from janetournois/Polyhedron_demo-fix_deformation_plugin-jtournois
Polyhedron demo : fix deformation plugin
2016-03-17 16:46:10 +01:00
Andreas Fabri 716e1ea9a6 Detect duplicates also for a single connected component or a selection 2016-03-17 14:51:48 +01:00
Sébastien Loriot b64d0ee265 do not remesh in pivoting mode 2016-03-17 13:20:27 +01:00
Sébastien Loriot e5a5cdc3c8 do not update the roi after the remeshing
this also allows to compute border halfedges only when needed,
that is when estimating the target edge length
2016-03-17 13:17:11 +01:00
Sébastien Loriot 275e16d2e8 the region remesh was using the one-ring of the roi 2016-03-17 10:36:36 +01:00
Sébastien Loriot 6823336c17 add an option to constrain duplicated edges 2016-03-17 09:54:50 +01:00
Andreas Fabri 2468889c51 Also deal with TBB 2016-03-17 09:41:45 +01:00
Andreas Fabri 53d4328d36 Improve wording in UI 2016-03-17 08:29:28 +01:00
Andreas Fabri a4cb1c2a97 Add protection of identical edges in different polyhedra. WIP: with an #undef and std::cerr 2016-03-16 18:09:55 +01:00
Laurent Rineau 4fd24b6487 Merge pull request #913 from sloriot/Polyhedron_demo-rename_mesh_2_plugin_dir
Polyhedron demo: rename plugin directory
2016-03-16 15:01:03 +01:00
Maxime Gimeno 17061cd064 Adds edges to the self_selection item. 2016-03-15 12:46:43 +01:00
Maxime Gimeno 612e9ac411 Fixes
- Moved the shared code between loadPlugins and on_actionLoad_plugin_triggered in a separate function
- Fixed the segfault when menus and submenus have the same name
2016-03-15 11:38:57 +01:00
Jane Tournois b6f37a16ed add default constructor to ROI_border_pmap
and fix the list of roi_border edges collected before deformation
2016-03-15 11:30:33 +01:00
Simon Giraudot 7276c06c36 Merge branch 'Point_set_shape_detection_3-Plane_regularization-GF-old' into Point_set_shape_detection_3-Plane_regularization-GF 2016-03-15 10:37:02 +01:00
Sébastien Loriot c0b39954bf rename Mesh_2 plugin directory for consistency 2016-03-14 20:12:10 +01:00
Maxime Gimeno 6779574a2c Fix the scene bbox
- The Scene Bbox does not depend on the visibility of the items anymore.
2016-03-14 16:58:24 +01:00
Simon Giraudot 5852b1134f Remove OFF_to_xyz plugin 2016-03-09 11:21:45 +01:00
Simon Giraudot e009926859 New plugin to create point set from polyhedron vertices (to replace OFF_to_xyz plugin) 2016-03-09 11:21:10 +01:00
Simon Giraudot 8bbf01f9af OFF_io_plugin now saves point sets too 2016-03-09 10:03:38 +01:00
Simon Giraudot f6bb959bc4 OFF_io_plugin now also reads OFF point sets 2016-03-09 09:58:10 +01:00
Simon Giraudot 73617d0704 Remove OFF_to_xyz plugin from CMakeLists 2016-03-09 09:57:54 +01:00
Laurent Rineau 80d7a738e4 Change the semantic of the Scene_group_item
New feature: an object of class `Scene_group_item`, or derived, is
responsible for drawing its children items. That is the first
approximation of a scene graph.

For that goal, several steps were needed.

- Remove the overload of `Scene::draw()` and `Scene::drawWithNames()`
  that does not have the viewer as parameter. Remove then from
  `Scene_draw_interface` as well.

- Add `Viewer::inDrawWithNames()` so that items, including the
  `Scene_group_item`, can now if a draw function is called for the
  picking or not.

- Add the draw function in `Scene_group_item`:
```
  virtual void draw(CGAL::Three::Viewer_interface*) const;
  virtual void draw_edges(CGAL::Three::Viewer_interface*) const;
  virtual void draw_points(CGAL::Three::Viewer_interface*) const;
  virtual void draw_splats(CGAL::Three::Viewer_interface*) const;
```
  Those draw functions actually call the draw functions of all the
  visible children, depending on their rendering mode. If
  `viewer->inDrawWithNames()`, draw nothing, and let the children be
  drawn with their own names. Another solution could be that the draw
  functions of `Scene_group_item` use `glPushName/glPopName`. That API
  seems to be usable with a scene graph.

- Add in `Scene_item` two functions:
```
  void moveToGroup(Scene_group_item* group);
  Scene_group_item* parentGroup() const;
```
  That is one first step to allow the `has_group` data member to become
  a private member, instead a public one (ugly!!).

Then the big change is in the scene:

- The scene will not call the draw function of items with a parent
  group, if the group itself is visible. If the group is not visible but
  the children are set to visible, then they are drawn anyway. That
  means that a group can "steal" the drawing of its children when it is
  visible. That behavior is really convenient for the use case I have in
  mind, but it may be strange.

- In the picking, in `drawWithName()`, the draw function of all items
  are called, even if they have a parent group.

Cosmetic:

  - Move the definition of the constructor `Scene_item::Scene_item` in
    the cpp file.
2016-03-04 14:37:53 +01:00
Sébastien Loriot 96c4dc60de Merge pull request #879 from maxGimeno/Polyhedron_demo-c3t3_color_fix-GF
Polyhedron demo : c3t3 color fix
2016-03-04 13:31:00 +01:00
Sebastien Loriot 60c29f4b8f Merge pull request #882 from janetournois/Polyhedron_demo-fix_colors_only-jtournois
Polyhedron_item : fix "colors_only'
2016-03-04 13:26:16 +01:00
Sebastien Loriot 8e6c92b738 Merge pull request #859 from sloriot/Polyhedron_demo-add_cdt2_mesher
Polyhedron demo: add cdt2 mesher
2016-03-04 13:08:52 +01:00
Sebastien Loriot 717ec22664 Merge pull request #874 from janetournois/PMP-isotropic_remeshing_improvements-jtournois
PMP::isotropic_remeshing() - improve management of constraints
2016-03-03 17:00:34 +01:00
Sebastien Loriot 26c17db3e8 Merge pull request #865 from lrineau/Polyhedron-demo_fix_c3t3_item-lrineau
Fix the c3t3 item
2016-03-03 16:56:35 +01:00
Sébastien Loriot 81d1603ce7 Merge pull request #844 from maxGimeno/Polyhedron_demo-Mesh_3-Fixes-GF
Polyhedron demo: Fixes for Mesh_3 plugin
2016-03-03 14:31:22 +01:00
Sebastien Loriot 8a55728cae Merge pull request #787 from maxGimeno/Polyhedron_demo-Fix_for_773-GF
Polyhedron_demo : Fix for 773
2016-03-03 14:19:44 +01:00
Jane Tournois 2536c17655 fix "colors_only'
when colors_only is false, it does not mean that colors are not computed!

this commit fixes commit 0661c21ac0
2016-03-03 12:57:24 +01:00
Maxime Gimeno cc5f50605e Fix for the intersection that wasn't cleared when the color changed. 2016-03-03 11:38:20 +01:00
Maxime Gimeno 892dee0a99 Fix for the colors 2016-03-03 10:41:24 +01:00
Maxime Gimeno fe20de7ef3 Statistics fix
- An item must overload has_stats to return true if it has statistics, or else the action will not be displayed in the menu.
2016-03-03 09:19:04 +01:00
Sébastien Loriot d7e9261d58 hide the filtered projection traits behind the projection traits
the selection of the base class is done using Kernel::Has_filtered_predicates
2016-03-02 21:57:54 +01:00
Sébastien Loriot 03f86b3673 handle seeds and other domain definition options 2016-03-02 20:46:15 +01:00
Sébastien Loriot a045576b45 add a plugin to run mesh_2 on polylines in the xy, yz or xz plane 2016-03-02 20:46:15 +01:00
Sebastien Loriot 6c85bc17d0 Merge pull request #845 from maxGimeno/Polyhedron_demo-Fix_reload_item-GF
Polyhedron demo :  Fix reload item
2016-03-02 20:20:44 +01:00
Sebastien Loriot 823a65a4ae Merge pull request #848 from maxGimeno/Polyhedron_demo-Fix_segmentation_plugin-GF
Polyhedron_demo : Fix for the polyhedron_item's colors
2016-03-02 20:20:07 +01:00
Sebastien Loriot 9fa7cc3d00 Merge pull request #763 from janetournois/Polyhedron_demo-improve_vtk_plugin-GF
Polyhedron demo : vtk_io_plugin can save
2016-03-02 17:20:29 +01:00
Sebastien Loriot d51b9cbb27 Merge pull request #840 from afabri/Polyhedon-isolated-vertices-GF
Deal with isolated vertices when turning a polygon soup in a polyedral surface
2016-03-02 17:19:22 +01:00
Sebastien Loriot 3019854153 Merge pull request #850 from sgiraudot/Polyhedron_demo-Bugfix_polygon_soup_segfault-GF
Bugfix: check if polygon soup is not empty before attempting BBox computation
2016-03-02 17:16:31 +01:00
Jane Tournois bf63963830 add constrained vertices to isotropic remeshing
those vertices cannot be modified
2016-03-02 17:08:38 +01:00
Jane Tournois 906f6360ea restore ROI after deformation 2016-03-02 13:24:12 +01:00
Laurent Rineau 7814cb20c7 Fix the c3t3 item
- The `isEmpty()` function was wrong: if the domain contains 2D surfaces
  it cannot be considered as empty, even if the 3D volume is empty.

- The computation of the bbox was wrong too.
2016-03-02 12:35:09 +01:00
Jane Tournois dc0090e9b8 remove duplicate function split_long_edges
by exploiting the edge_is_constrained_map as read-write pmap
this is not documented, and only for demo purposes (at least for now)
2016-03-01 16:28:06 +01:00
Jane Tournois 63884d0033 update the constraints property map after the end of remeshing 2016-03-01 15:30:52 +01:00
Maxime Gimeno 5403ae1f37 Addition of a call to c3t3_changed() in the end of the loading function, so the c3t3 is updated before the computation of the colors. 2016-03-01 09:03:29 +01:00
Simon Giraudot 181b9325b1 Fix max precision for ofstream: digits10 + 2 instead of digits10 + 1 2016-02-29 17:46:25 +01:00
Simon Giraudot cc9890a308 Check if polygon soup is not empty before attempting bbox computation 2016-02-29 11:13:35 +01:00
Maxime Gimeno ac862e37a9 Fix a bug when reloadking an item
the item was disappearing from the object list
2016-02-29 11:11:57 +01:00
Maxime Gimeno d1e8741675 fix functions signature 2016-02-29 11:11:13 +01:00
Andreas Fabri 8663b3ccbe deal with isolated vertices when turning a polygon soup in a polyedral surface 2016-02-29 11:04:33 +01:00
Sebastien Loriot 7e48843690 Merge pull request #841 from afabri/patch-4
Capitalize words
2016-02-29 10:50:43 +01:00
Maxime Gimeno 67fa51de62 Fix for the polyhedorn_item's colors
- The color calculation when the item is not monochrome was not done correctly.
2016-02-29 10:23:59 +01:00
Sebastien Loriot cf3c372b57 Merge pull request #823 from sgiraudot/Polyhedron_demo-Increase_precision_ofstream-GF
Polyhedron demo : Use maximum precision when writing files
2016-02-29 10:15:26 +01:00
Sebastien Loriot e4dd2dd002 Merge pull request #816 from maxGimeno/Polyhedorn_demo-Fix_applicable-GF
Polyhedron_demo : Fix applicable
2016-02-29 10:14:21 +01:00
Maxime Gimeno 12a819bb79 Fix the waitcursor
- Removed the waitcursor in the dialog for selecting the precision when loading an segmented image.
2016-02-29 08:37:09 +01:00
Maxime Gimeno 91b7f7c3a7 Renaming the Mesh_3 plugin directory 2016-02-29 08:36:26 +01:00
Andreas Fabri 01a1deebd5 Capitalize words 2016-02-27 10:56:10 +01:00
Sébastien Loriot 542d6cf9fb fix applicable 2016-02-26 15:55:00 +01:00
Sebastien Loriot 27fe675b08 Merge pull request #812 from sloriot/Mesh_3-fix_default_behavior
Mesh_3: do not enable manifold by default
2016-02-26 15:41:59 +01:00
Sébastien Loriot 4e2ea7295a vtk plugin can now load segments 2016-02-26 15:39:55 +01:00
Sébastien Loriot e4f1f2f9b4 allow reading of unstructuredGrid from non-XML files 2016-02-26 13:22:33 +01:00
Sébastien Loriot 0f39879ced allow reading vtu
simplify the conversion function as well
2016-02-26 12:47:03 +01:00
Sébastien Loriot c574c78e66 plug error handler to the reader 2016-02-26 11:02:42 +01:00
Sebastien Loriot 80654639c2 Merge pull request #824 from afabri/Polyhedron-fix_drawing_of_non_triangle_face-GF
Fix drawing a polyhedron with non-triangular faces
2016-02-25 10:47:18 +01:00
Andreas Fabri b592865752 3 -> 2 2016-02-25 08:55:38 +01:00
Simon Giraudot 4728805f31 Use maximum precision when writing files to avoid loss of information 2016-02-25 08:47:12 +01:00
Sebastien Loriot cb650d896d Merge pull request #809 from afabri/Polyhedron-complete_basename-GF
Use completeBaseName() as name of items (for some file name extensions)
2016-02-24 18:39:47 +01:00
Maxime Gimeno bd5d1646d7 Fix applicable
- For create_bbox
- For triangulate_facets
2016-02-23 16:04:17 +01:00
Jane Tournois b6cd6ea5c1 activate protection of feature polylines in labeled images
when needed or requested
2016-02-23 16:00:06 +01:00
Laurent Rineau 154ad4c29f Do not enable manifold by default!!
(cherry picked from commit 2a0b90cff1cd0abb5cde7182f7c57a21ee19a23b)
2016-02-22 19:20:48 +01:00
Andreas Fabri 8982373981 Use completeBaseName() as name of items (for some file name extensions) 2016-02-22 15:19:37 +01:00
Sebastien Loriot c1b3b784a7 Merge pull request #777 from janetournois/Polyhedron_demo-polyhedron_item_for_quads-GF
Polyhedron item : improve computation of normals
2016-02-22 08:24:11 +01:00
Sebastien Loriot 95a03739c4 Merge pull request #798 from afabri/Polyhedron-Unify_capital_letters-GF
Capitalize words in the menus
2016-02-19 09:22:58 +01:00