How to converet the format of figure (e.g. ***.fig) of two intersected spheres generated using matlab to obj format (e.g. ****.obj)?

조회 수: 1 (최근 30일)
Using this code, i created two intersected spheres. Now how to convert the figure generated using below coding to ***.obj format.? Thanks for all cooperation and guidance in advance.
[X, Y, Z]=sphere;
a = [1 1 1 1.2; 2.293,1,1,1.8];
%Draw sphere #1
s1=surf(X*a(1,4)+a(1,1), Y*a(1,4)+a(1,2), Z*a(1,4)+a(1,3),'FaceColor', [1 1 1],'edgecolor','none','FaceAlpha',0.6);
light
axis equal
set(gca,'Color','w')
hold on
% Draw sphere # 2
s2=surf(X*a(2,4)+a(2,1), Y*a(2,4)+a(2,2), Z*a(2,4)+a(2,3),'FaceColor', [0 1 0],'edgecolor','none','FaceAlpha',0.5);
daspect([1 1 1])
view(30,20)
xlabel('x')
ylabel('y')
zlabel('z')
x1range1 = -0.2;
x1range2 = 4.093;
y1range1 = -0.8;
y1range2 = 2.8;
z1range1 = -0.8;
z1range2 = 2.8;
  댓글 수: 2
Steven Lord
Steven Lord 2020년 2월 27일
Which of the different file formats using the .obj extension listed on this page are you trying to generate?
Do you have a reference / specification for the .obj file format to which you're trying to write?
M.S. Khan
M.S. Khan 2020년 2월 28일
Thanks for reply Steven for your reply.
Steven Lord, from the above code, i am receiving intersected spheres. sure its will be fig. is it possible to convert the same figure from **.fig to ***.obj format.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Modify Image Colors에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by