Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

filter not applying, 'no additional memory available' #272

Closed
timothytai opened this issue Jan 25, 2018 · 6 comments
Closed

filter not applying, 'no additional memory available' #272

timothytai opened this issue Jan 25, 2018 · 6 comments
Labels

Comments

@timothytai
Copy link

timothytai commented Jan 25, 2018

Hi,

I encountered the problem that when I tried to apply "Turn into Quad-Dominant mesh" in MeshLab, everything works fine, but when I tried to apply a script simply containing this filter in MeshLabServer, the commandline returns the below:

Microsoft Windows [Version 10.0.16299.192]
(c) 2017 Microsoft Corporation. All rights reserved.

C:\Program Files\VCG\MeshLab>meshlabserver.exe -i C:\Test\TestExport1.obj -o C:\Test\TestExport2.obj -s C:\Users\user\Desktop\model_current\transfer\MeshLab_Filter_QuadDominant.mlx
Loading Plugins:
Current Plugins Dir is: C:/Program Files/VCG/MeshLab/plugins
Total 241 filtering actions
Total 12 io plugins
Opening a file with extention obj
Mesh C:/Test/TestExport1.obj loaded has 100 vn 146 fn
output mesh  C:/Test/TestExport2.obj
Apply FilterScript: 'C:/Users/user/Desktop/model_current/transfer/MeshLab_Filter_QuadDominant.mlx'
FilterScript
Reading filter with name Turn into Quad-Dominant mesh
    Reading Param with name level : RichEnum
Starting Script of 1 actionsfilter: Turn into Quad-Dominant mesh
no additional memory available!!! memory required: 4152
Mesh C:/Test/TestExport1.obj saved as C:/Test/TestExport2.obj (100 vn 146 fn)

In addition, when I tried to apply the 4-8 Subdivision after the Quad Dominant, MeshLab seems to be returning the wrong face counts. For instance, with an input triangular mesh (V:100 F:146), the Quad Dominant filter turns the mesh into all quads and MeshLab shows that the current mesh still has the same amount of V and F, while it seems like it should be (V:100 F:75), and after the 4-8 Subdivision filter, MeshLab shows the mesh as (V:207 F:324), while it seems like it should be (V:207 F:162).

Essentially, I would love to run MeshLabServer through commandline, and filter meshes with first Quad Dominant and then 4-8 Subdivision, and then outputs a separate file.
Any help or advice would be greatly appreciated.

Thanks a lot!

Tim

@granzuglia
Copy link
Contributor

Probably you can forget about the "no additional memory available!!! memory required: 4152". 99% of the times it is completely meaningless. My fault, sorry. I will take a look on the filter and i will let you know in the next week.

@timothytai
Copy link
Author

Hi granzuglia,

Thanks a lot for the response. I've gone through a few of the related threads, and read that most of the time it has no effect on the output, like you said. However, the command is actually not producing the desired/expected mesh as it does through MeshLab. Please find here the input triangular mesh in OBJ as described in the original post, the mesh after Quad Dominant filter is applied in MeshLab, and finally the mesh after 4-8 Subdivision after the first Quad conversion.
MeshLabServer is not producing either of the latter.

Thanks again!

@timothytai
Copy link
Author

timothytai commented Feb 26, 2018

Hi @granzuglia

Following up on this since it's been a while.

Thanks a lot!

@timothytai
Copy link
Author

perhaps @mcallieri ?

simply - i could not get "Turn into Quad-Dominant mesh" working on a simple triangular mesh through meshlabserver even though it works just fine on the actual mesh lab application.

thanks you!

@timothytai
Copy link
Author

timothytai commented Mar 4, 2018

I realized the filters do seem to be applying, as you suggested @granzuglia , but somehow the exporting is only outputing triangular faces, hence the Quad-Dominant filter alone is not visible. If you try Quad-Dominant and then 4-8 in MeshLabServer, and re-import the output into MeshLab, you will see that there are changes made, but the faces remain as triangles.

I believe, this is the actual problem:
https://sourceforge.net/p/meshlab/discussion/499533/thread/e1a2fdc5/

@stale
Copy link

stale bot commented Jun 19, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants