필터 지우기
필터 지우기

How to draw a generic cylinder with arbitrary orientation

조회 수: 6 (최근 30일)
Mohammad Reza
Mohammad Reza 2023년 12월 4일
편집: Mohammad Reza 2023년 12월 24일
Hi,
How to draw a generic cylinder, we have its radius, length, position of center of mass ( or bottom face center) and its orientation (using a unit vector, for example 0,0,1 for z-axis ). Any help would be appreciated.
Regards
Reza
  댓글 수: 1
Dyuman Joshi
Dyuman Joshi 2023년 12월 4일
How does COM matter in making a graphical cylinder?
Check out cylinder and experiment with it.

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

채택된 답변

Matt J
Matt J 2023년 12월 4일
편집: Matt J 2023년 12월 4일
See this File Exchange download,
[cCenter,cRadius,cHeight,cYawPitch]=...
deal([0 0 0], 2, 10, [45 -30]); %Cylinder parameters
gtCyl=cylindricalFit.groundtruth([],cCenter,cRadius,cHeight,cYawPitch); %Data-less ground truth objects
plot(gtCyl)
  댓글 수: 1
Mohammad Reza
Mohammad Reza 2023년 12월 24일
편집: Mohammad Reza 2023년 12월 24일
Thanks.
This is what I learned, in case somebody needs it as well:
Z_axis oriented cylinder: cYawPitch= [0 90]
Y_axis oriented cylinder: cYawPitch= [90 0]
X_axis oriented cylinder: cYawPitch= [0 0]

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Vibration Analysis에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by