The intersection of three cylinders
조회 수: 4 (최근 30일)
이전 댓글 표시
Hi everyone. I want to plot and create the intersection of 3 perpendicular cylinders.
Your help would be greatly appreciated!!
댓글 수: 3
sylvain jack
2019년 4월 26일
I still can't understand it..Would you be more specific about this? Much thanks..
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
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);
Z = 0 .. Y; % Z varies (because of 45 degree)
Then just just changing data with rotating system coordinates:
Then rotate around Z and Y
댓글 수: 1
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
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
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
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)
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Cartesian Coordinate System Conversion에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!