MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn moreOpportunities for recent engineering grads.

Apply Today
Asked by Lalit Patil on 31 Oct 2012

If i have a shere X^2 + Y^2 + Z^2 = R^2 and plane X + Y + Z + d = 0;

This plane cuts sphere, so circle is formed..

Then in MATLAB is it possible to find all possible intersecting 3D points of sphere and plane. Which function is used..?

*No products are associated with this question.*

Answer by Sachin on 31 Oct 2012

Refer link below:

http://www.csse.uwa.edu.au/~pk/research/MatlabFns/Projective/circleintersect.m

Hope it helps!!!

Lalit Patil on 31 Oct 2012

No,this is not the thing sachin that i want.. I have a single shere of unit radius, and so many planes.. If i take one plane and it cuts to sphere then there will be one circle, I know only the radius of circle and height of it from sphere origin.. So, i have to find all intersecting points of sphere and plane that forms circle..

## 2 Comments

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/52347#comment_108327

"all intersecting 3D points" could be an infinite number, such as the circle. Are you looking for the points of intersection or for a formula that describes the points ?

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/52347#comment_108328

Thanks for your interest.. I am looking for formula or matlab function that will give all infinite points of that intersecting circle..