meshlab icon indicating copy to clipboard operation
meshlab copied to clipboard

cannot exit 'Points' mode when loaded files contain an empty mesh

Open chenzhaiyu opened this issue 4 years ago • 4 comments

Check all platforms you experienced the issue (change to [x])

  • [x] Windows
  • [ ] Mac OS
  • [ ] Linux
  • [ ] Every platform

What type of issue is?

  • [x] bug or unexpected behavior
  • [ ] crash
  • [ ] feature request
  • [ ] other (specify...)

Short description

When an empty mesh file (0 vertex, 0 face) is loaded together with other files, once Points mode is enabled (for all meshes), MeshLab cannot exit this mode.

Expected Behavior

Clicking the Points button should visualise the points on all meshes; clicking again should turn off the points visualisation for all loaded meshes. image

Actual Behavior

Clicking the Points button for the first time does visualise the points on all meshes, while doing it again (and 3rd, 4th, ... times) has no effect at all: all points stay on the scene; in the Layer Dialog only the Points mark for the empty mesh file is unchecked, leaving like this (train_16_9 is the empty one): image

The Bounding Box and the Wireframe function well for the experiment.

Env

  • Win10 64bit
  • MeshLab_64bit_fp v 2020.07

chenzhaiyu avatar Oct 24 '20 22:10 chenzhaiyu

Hi, from which file format is loaded the empty mesh? If the file is empty, the mesh should be not loaded at all and not visualized in the layer dialog.

alemuntoni avatar Oct 27 '20 16:10 alemuntoni

Hi, from which file format is loaded the empty mesh? If the file is empty, the mesh should be not loaded at all and not visualized in the layer dialog.

Hi, It was in PLY format. IMHO this (the empty one file causes trouble for all other files) is still unexpected.

chenzhaiyu avatar Oct 27 '20 16:10 chenzhaiyu

Sorry for the very late reply. Of course the behaviour is unexpected! Just to be sure, could you please share a couple of files that generate the issue (one should be with 0 verts and faces)?

alemuntoni avatar Dec 10 '20 13:12 alemuntoni

Sure, here they are: https://drive.google.com/drive/folders/1Rxw_sqVwG7cYULh9_h02tgySCU7Vxx2a?usp=sharing

0.ply is an empty mesh and 1.ply is a cube. You could also try to load both of them multiple times.

chenzhaiyu avatar Dec 10 '20 15:12 chenzhaiyu