How to fill the surface in 3D..?
3 次查看(过去 30 天)
显示 更早的评论
I have this 3D data file, and i am creating a 3D of it using,
.................................................
fileID = fopen('N3d.txt');
C = textscan(fileID, '%f %f %f');
fclose(fileID);
x=cell2mat(C(:,1));
y=cell2mat(C(:,2));
z=cell2mat(C(:,3));
patch(x,z,y,'R')
view(3)
axis equal off tight vis3d; camzoom(1.2)
colormap(spring)
rotate3d on
...............................................
And it gives 3D image, now i want to see what the actual object it is..?
So, for this i will require to fill that surface,
so, how to do.?
1 个评论
回答(1 个)
Jan
2012-12-7
编辑:Jan
2012-12-7
Filling a surface plot means using non-transparent and colored patch faces. See the properties of patch(), especially the 'FaceColor'.
Reading the documentation of a command is usually more efficient to ask in the forum and get the answer, that the documentation contains enough information and rephrasing them would be less efficient.
4 个评论
Jan
2012-12-9
@Lalit Patil: 1. The linked picture contains three different views of one object. 2. patch() is a built-in function. Why do you think, that it uses an isosurface function, what does this detail mean and how is this connected to the question? 3. Please do not post "it shows an error" with out showing the code and a copy of the error message. How could we suggest an improvement without knowing any detail? 4. "not a satisfactory result" does not explain anything also: Can I guess what is satisfying for you? 5. Did you consider to use surf instead of patch? Look at the examples in doc surf.
Why do you decide not to format the code in your question or in the comments?
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Lighting, Transparency, and Shading 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!