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

Error implementing HierarchicalSmooth. m file #12

Open
Michaelsiqi opened this issue Nov 18, 2021 · 1 comment
Open

Error implementing HierarchicalSmooth. m file #12

Michaelsiqi opened this issue Nov 18, 2021 · 1 comment

Comments

@Michaelsiqi
Copy link

Hi siddharth,

Firstly, I would like to thank you for all the effort you commit to the code. Very good implementation for dream. 3d users to smooth out surface mesh of grain boundaries.

However, I ran into a trouble when I tried to go through the tutorial using the Matlab source code. I followed the “ Matlab usage “ on the code webpage to write an executive script to import the microstructure data (input) from the ex2 files and implement the central HierarchicalSmooth routine. The code always ran into an error when implementing the HierarchicalSmooth. m file (Error using triangualation (line 94). The input points must be 2D or 3D coordinates in numpoints-by-ndim format.) I have attached a picture below to better illustrate the issue. I was wondering if this issue has something to do with the Matlab version? I’m using Matlab R2019a.

Could you please advise me on this matter at your best convenience? Any help will be greatly appreciated!

Best Regards,
Siqi

1111

@siddharth-maddali
Copy link
Owner

Hi @Michaelsiqi ,
Sorry for the late reply; I haven't been on github for a while.
I also haven't looked at the Matlab implementation for a very long time, it's as good as deprecated. I've heard from others that it still works ok.

You seem to be having a problem with the input dimensions of xPoints, can you transpose it before line 94 and see if things work ok?

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

No branches or pull requests

2 participants