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

Complete mesh2vol and mesh2mask #2

Open
fangq opened this issue Jun 11, 2015 · 2 comments
Open

Complete mesh2vol and mesh2mask #2

fangq opened this issue Jun 11, 2015 · 2 comments

Comments

@fangq
Copy link
Owner

fangq commented Jun 11, 2015

now these functions are partially working, but the results are not completely verified.

https://github.com/fangq/iso2mesh/blob/master/mesh2vol.m
https://github.com/fangq/iso2mesh/blob/master/mesh2mask.m

@alexpattyn
Copy link

Hey @fangq any luck on this? I was just about to open an issue with respect to mesh2vol. Or do you have a recommended tool for converting meshes to volumes?

@andreafarina
Copy link

Dear @fangq, I've tried to apply mesh2vol to a cylindrical mesh with long axis on y direction. By applying mesh2vol I get the error:

Unable to perform assignment because the size of the left side is 14-by-45 and the size of the right side is
45-by-14.

Error in mesh2vol (line 103)
mask(:,:,i)=maskz;

Probably adding a transpose operation in

maskz=mesh2mask(cutpos,facedata,xi,yi,hf);

or
(
mask(:,:,i)=maskz;
)
should fix the problem but I don't know the effect on the overall iso2mesh toolbox.
Regards!
Andrea

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

3 participants