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

Meshes are not reproduced across Linux/Windows platforms #46

Open
fangq opened this issue Apr 1, 2020 · 1 comment
Open

Meshes are not reproduced across Linux/Windows platforms #46

fangq opened this issue Apr 1, 2020 · 1 comment

Comments

@fangq
Copy link
Owner

fangq commented Apr 1, 2020

Reported by

Kevin G. McIver
Graduate Assistant, Honors College of Engineering
Sloan Indigenous Graduate Scholar
Mechanical Engineering


Dr. Fang,

The error documented here is an inconsistency between the surfaces generated with CGAL using the meshresample tool when aggressively resampling a surface from an image. If the isosurface command is used to make the surface, the resample command is almost always inconsistent Windows to Linux. If you use a value of around .7 for the keepratio MATLAB to Linux consistency is possible using the v2s command and the ‘simplify’ subroutine.

Using the ‘cgalmesh’ method results in random numbers of faces and vertices based on the image every time, I saw a forum post of you from ~2015 attempting to solve that, I find myself wondering if you were ever able to solve it?

The surfboolean command, given the same input also still results in a slightly different surface mesh.

Another note, is that the surface smoothing function is also guilty of causing small differences given the same input Linux to Windows.

Thank you for this codebase, it’s exceptionally helpful, and provides great functionality for creating STLs from image geometry.

Best,
Kevin G. McIver


Testing data
ExampleError.zip

@fangq
Copy link
Owner Author

fangq commented Apr 1, 2020

Issue can be reproduced. issue is related to #4. Need to re-investigate.

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

1 participant