cnr-isti-vclab / meshlab

The open source mesh processing system
http://www.meshlab.net
GNU General Public License v3.0
4.7k stars 821 forks source link

[Win] Wrong Default directory for drag drop files on icon (was: Filter > Apply Filters not working ?) #1111

Open DaveOB3d opened 2 years ago

DaveOB3d commented 2 years ago

Laptop crashed last week and had to download and reinstall all apps. So can't say for certain what version of MeshLab was used previously. I can only say that I had it on my PC for a few years ( ~4 years ) Now using win10 64bit. Now installed Meshlab_64bit_fp v2021.07 My primary use for Meshlab is to reduce meshes that have been created on a 3D scanner.

My workflow is : drag and drop the STL on to the Meshlab desktop icon. Mesh opens in Meshlab Filters > remeshing > Simplification: Quad edge collapse decimation. The default screen that opens had the 'target number of faces' at 50% of the original. I set quality to 0.98, tick 'Preserve Boundary' and 'Preserve Topology' Apply Process runs as expected. I then use File > Export Mesh As, and save as same name with 'LR1' appended to the name. ( LR = low resolution level 1 )

At this point, things are different

  1. in the older version, the default 'export to' folder would be the same as the source folder of the original file - in the new version, it defaults to : C:\Program Files\VCG\MeshLab. I can not find any way to change the default behavior.

  2. I usually create more lower resolution versions of the file ( which I use in different applications ). To do this, in the old version, I would go to : Filters > Apply Filter ( ctrl-P ). This would ( previous version ) refresh the 'Simplification: quad. edge' dialog, and would again automatically set the 'Target number of faces' to 50% of the latest size. So every time I use Filters > Apply Filter ( ctrl-P ), it would reduce the number of faces by half.

In this new version, the Filters > Apply Filter ( ctrl-P ) does not work. It does not refresh the dialog, if I close the dialog and try Filters > Apply Filter ( ctrl-P ), it does nothing. Is this a bug in the new version, a bug in the old version, or was the functionality changed for a reason ?

alemuntoni commented 2 years ago

I cannot replicate the first issue: when going to "Export Mesh As", the base directory of the dialog is the same where the last loaded file is placed... Is the file you are opening placed in some particular directory (e.g. other disks, path with special characters)..

I can confirm that Ctrl+P is not working, since a year at least. I'll investigate on this.

alemuntoni commented 2 years ago

I just checked, the CTRL+P issue actually has been already solved and it will be available in the next meshlab version. You can try it by downloading the last nightly version.

DaveOB3d commented 2 years ago

I cannot replicate the first issue: when going to "Export Mesh As", the base directory of the dialog is the same where the last loaded file is placed...>

I agree this is the result if you already have previously saved a file, then the default is the last path used.

But if you close Meshlab, then drag an stl file ( from normal c:\ folder in file explorer ) and drop on the desktop Meshlab icon, then the default 'export to' path is c:\Program Files...'. In the older version, MeshLab would detect the source folder of the file that was dropped on the icon, and would set the 'export to' path as that same folder.

Thank You for the feedback about the ctrl+p

alemuntoni commented 2 years ago

Ok, now I get it.

It is actually very strange, because it works as expected if:

But it does not work when you drag and drop a mesh file into the MeshLab executable (or a link to it)...

DaveOB3d commented 2 years ago

Ok, now I get it.

It is actually very strange, because it works as expected if:

* you open a mesh from MeshLab by going in File -> Import Mesh

* you drag and drop a file in an already opened MeshLab

* you double click on a mesh file from the explorer

But it does not work when you drag and drop a mesh file into the MeshLab executable (or a link to it)...

Yes. I confirm your findings are the same here. For now I can use the 'drop in already opened MeshLab' as a work around.

Thank You

DaveOB3d commented 2 years ago

I just checked, the CTRL+P issue actually has been already solved and it will be available in the next meshlab version. You can try it by downloading the last nightly version.

Thanks. Installed the nightly build and can confirm the ctrl+P working as expected.