I am new to the Matlab and I have developed my own below 3D voxel function.
I want to export this function to the stl file and view it .I should use the programme already developed by Mathworks represents by below link for this task.
I should use the CONVERT_voxels_to_stl(STLname,gridDATA,gridX,gridY,gridZ,varargin) programme in this link.
I call my function to this programme(link) but there are some errors in INPUTS given by me(I believe the way I am giving the inputs are wrong) and I dont know where is the mistake. Bolded letters represents the lines written and editted by me. Appreciate your comments.

댓글 수: 8

darova
darova 2020년 7월 3일
편집: darova 2020년 7월 3일
I used isosurface to see the voxel
cla
isosurface(B,0.9)
isosurface(B,0.1)
axis vis3d
light
Is it correct?
Hege
Hege 2020년 7월 3일
Darova,
Actually bit closer to the model.But not correct.by the way what is mean by (0.9 and 0.1).
darova
darova 2020년 7월 3일
Can you show you model should look like?
isosurface interpolates values to 0.1 and 0.9 (you have 0 and 1)
Hege
Hege 2020년 7월 3일
Yes. model is like this. but how did you get the values for the x, y and z grids?
darova
darova 2020년 7월 4일
i use plot3
ix = B > 0;
[x,y,z] = meshgrid(1:10);
plot3(x(ix),y(ix),z(ix),'.r')
darova
darova 2020년 7월 4일
your code code can be simples by the way
[x1,x2,x3] = meshgrid([1 10],[1 10],1:10);
x1 = x1(:);
x2 = x2(:);
x3 = x3(:);
plot3(x1,x2,x3,'.b')
line(x1,x3,x2,'linestyle','none','marker','.')
line(x3,x1,x2,'linestyle','none','marker','.')
axis vis3d
Hege
Hege 2020년 7월 5일
Hi Darove, Thanks but I have to use above mathowork script
darova
darova 2020년 7월 5일
i understand. That's alright

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

제품

릴리스

R2017a

질문:

2020년 7월 2일

댓글:

2020년 7월 5일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by