How to remove or exclude the intersecting part from two intersecting or overlaping spheres using Matlab?

조회 수: 4 (최근 30일)
Hi everyone,
i have two spheres of radii R1 and R2 with centers C1 and C2 intersecting each others. i want to exclude the intersecting part. How to remove it to get new object like peanut. i used following code to get interseting spheres.
  댓글 수: 3

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

채택된 답변

darova 2020년 4월 1일
Here is what i invented
ix1 = (xc1-x2).^2+(yc1-y2).^2+(zc1-z2).^2 < R2^2;
ix2 = (xc2-x1).^2+(yc2-y1).^2+(zc2-z1).^2 < R1^2;
Of course i prepared explanations and result picture
  댓글 수: 10
M.S. Khan
M.S. Khan 2020년 4월 3일
Thanks sir. if you dont mind, i will keep in touch to learn from you Matlab skills. Regards and obliged for your kind guidance.

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

추가 답변 (0개)


Help CenterFile Exchange에서 Graphics Object Programming에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by