The intersection of three cylinders

5 次查看(过去 30 天)
Hirasawa Yui
Hirasawa Yui 2019-4-15
评论: darova 2021-3-18
Hi everyone. I want to plot and create the intersection of 3 perpendicular cylinders.
450px-Steinmetz-ccc.svg.png
Your help would be greatly appreciated!!
  3 个评论
sylvain jack
sylvain jack 2019-4-26
I still can't understand it..Would you be more specific about this? Much thanks..
Maria Aizaga
Maria Aizaga 2021-3-11
编辑:Maria Aizaga 2021-3-11
Hi, I have to graph the solid of the 3 cylinders, but I don't know how to do it. I need help, I was guiding myself with your code but the graph does not come out

请先登录,再进行评论。

回答(3 个)

darova
darova 2019-4-26
That result of intersection can be build with one simple element
Define boundaries of element:
phi = 0 .. 45 degree
% R - radius of cylinder
X = R*cos(phi);
Y = R*sin(phi);
im2.png
Z = 0 .. Y; % Z varies (because of 45 degree)
im1.png im3.png
Then just just changing data with rotating system coordinates:
img4.png img5.png img6.png
Then rotate around Z and Y
  1 个评论
Joseph Barreiro
Joseph Barreiro 2021-3-5
Could you pass me the code of your example?I am new to this and would like to know how to structure it.
Thanks

请先登录,再进行评论。


darova
darova 2021-3-6
Here is another example
  • start with usual meshgrid to create mesh
  • modify Y coordinate
  • calculate Z coordinate
  • copy object
  5 个评论
Joseph Barreiro
Joseph Barreiro 2021-3-17
@darova I almost forgot to thank you, you should share your knowledge on youtube, brilliant people like you should be on that kind of platform! Thanks for everything!

请先登录,再进行评论。


darova
darova 2021-3-6
Another example
  • create zigzag
  • refine it using interp1
  • convert it to cylindrical coordinates
  • add bottom part
  • use different combination (X,Y,Z), (Z,Y,X), (X,Z,Y)

类别

Help CenterFile Exchange 中查找有关 Surface and Mesh Plots 的更多信息

产品


版本

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by