slicing a volume in desired direction
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
ver- 2018a
I have two matrices one with vertices (560 × 3) and faces (1112×3)
After using patch command i get cylinder figure (see atached image).
Since i dont have an equation for volume as shown in matlab document, inorder to use the vertices matrix with slice command i tried to reshape it to B= (56×3×10) .
>>[X,Y,Z] = meshgrid(-2 : 0.2 : 2);
>> slice(X, Y, Z, B, 0, [], [])
I get the following error .
Error using griddedInterpolant
The grid vectors do not define a grid of points that match the given values.
Error in interp3 (line 146)
F = griddedInterpolant(X, Y, Z, V, method,extrap);
Error in slice (line 103)
vi = interp3(x,y,z,v,xi,yi,zi,method);
Is there any alternative to this slice command ,any suggestion is helpful .
Thank you.
0 commentaires
Réponses (1)
LO
le 10 Juin 2019
I am not sure what you want to achieve
perhaps you could use the find function to determine vertices ranges, select them, and use them to render another cylinder (slicing the first one). Would this make sense ?
Voir également
Catégories
En savoir plus sur 3-D Volumetric Image Processing dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!