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

Can not find the 'app' folder within 'build' folder after cmake and make process #735

Closed
NINGYURICHARD opened this issue Feb 27, 2024 · 6 comments
Assignees
Labels
question Further information is requested

Comments

@NINGYURICHARD
Copy link

I followed the Installation method step by step on WSL, and finally there is no error output just a few warnings. However, when I wanted to run some examples, I could not find the 'app' folder and the remeshing_app or qslim_app file. The 'build' folder only contains these following files.
image

Could you please help me tackle this problem? Thank you very much!

@Zhouyuan-Chen
Copy link
Collaborator

Hey! I am not sure if I understand it correctly. Suppose you want to run the application, you may need to run the wmtk_app file.

For example, if you want to run isotropic_remeshing. You could run it this way:

./wmtk_app -j your_json_file.json

In the json file, you should specify the name of the component, the parameters and so on. Have a look at your interested component's file, there should be an example json file. If you still have trouble, please let me know. :)

@NINGYURICHARD
Copy link
Author

Thanks for your reply! Yes, I want to run the application especially the isotropic_remeshing. Because I am just a beginner of c++, I still have some problems. As for json file, I directly choose 'wildmeshing-toolkit/components/wmtk_components/isotropic_remeshing/wmtk/components/isotropic_remeshing/isotropic_remeshing_example.json'. I copy the json file to 'wildmeshing-toolkit/build', and download the '120628.stl' also in 'build' folder as my input file. Then I modify the json file as follow:
image

and run ' ./wmtk_app -j isotropic_remeshing_example.json' in 'build' folder on WSL. However, it outputs the following errors:
image

I have no idea how to tackle it. Could you please help me solve this problem? Thank you very much!

@Zhouyuan-Chen
Copy link
Collaborator

Zhouyuan-Chen commented Feb 28, 2024

you could put your model file into the build folder.
input should be a .hdf5 or .msh file. so you should have a .hdf5 or .msh file as an input.
the output is fine, just give any name you want. the output is .hdf file, and you need paraview to look at the result.
there is an example from unit tests

    "components": [
        {
            "input": {
                "file": "YOUR_INPUT_NAME",
                "name": "mesh"
            }
        },
        {
            "isotropic_remeshing": {
                "attributes": {
                    "position": "vertices"
                },
                "input": "mesh",
                "iterations": 2,
                "length_rel": 1,
                "lock_boundary": true,
                "output": "test"
            }
        },
        {
            "output": {
                "input": "test",
                "file": "YOUR_OUTPUT_NAME",
                "attributes": {
                    "position": "vertices"
                }
            }
        }

@NINGYURICHARD
Copy link
Author

Thank you very much! Your suggestion works for me. May I ask if there is any local remeshing example for 3D objects (tetrahedral mesh)? I found the examples in unit_test are mainly the triangle mesh. Thanks!

@Zhouyuan-Chen Zhouyuan-Chen added the question Further information is requested label Feb 29, 2024
@Zhouyuan-Chen
Copy link
Collaborator

Zhouyuan-Chen commented Feb 29, 2024

Yeah... The 3D remeshing component is still under construction and has not merged into the main branch. I believe we will publish it soon.

@NINGYURICHARD
Copy link
Author

Thank you very much!

@Zhouyuan-Chen Zhouyuan-Chen self-assigned this Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants