Filter löschen
Filter löschen

How to draw a generic cylinder with arbitrary orientation

6 Ansichten (letzte 30 Tage)
Mohammad Reza
Mohammad Reza am 4 Dez. 2023
Bearbeitet: Mohammad Reza am 24 Dez. 2023
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 Kommentar
Dyuman Joshi
Dyuman Joshi am 4 Dez. 2023
How does COM matter in making a graphical cylinder?
Check out cylinder and experiment with it.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Matt J
Matt J am 4 Dez. 2023
Bearbeitet: Matt J am 4 Dez. 2023
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 Kommentar
Mohammad Reza
Mohammad Reza am 24 Dez. 2023
Bearbeitet: Mohammad Reza am 24 Dez. 2023
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]

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Vibration Analysis finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by